I was curious when (if ever) the workspace arg would be undefined, so I started poking through some VSCode docs. While trying to look up information about vscode.ExtensionContext I found some docs that state (emphasis mine):
ExtensionContext.globalState: A global storage where you can write key/value pairs. VS Code manages the storage and will restore it for each extension activation. You can selectively synchronize key/value pairs in global storage by setting the keys for sync using setKeysForSync method on globalState.
On the surface this seems like it would be preferable to use this over manually reading/writing our own files on the user's filesystem.
Originally posted by @dotproto in #41 (comment)
Originally posted by @dotproto in #41 (comment)