Right now, to reduce memory overhead, we destroy state when the webview unloads (when the editor pane goes out of view).
While the extention is fast enough to rebuild the state on loads without much noticable impact, it would be nice to use the vscode builtin mechanisms of state serialization with getState and setState as is mentioned here Vscode Webview Serialization
Right now, to reduce memory overhead, we destroy state when the webview unloads (when the editor pane goes out of view).
While the extention is fast enough to rebuild the state on loads without much noticable impact, it would be nice to use the vscode builtin mechanisms of state serialization with
getStateandsetStateas is mentioned here Vscode Webview Serialization