Closed
Description
Our extension fails to work on code-server (rust-lang/rust-analyzer#5892).
The problem is that we use globalState
. We expect the contents of globalState
to persist across the extension version updates. Even though this is not mentioned in vscode
API docs, but original vscode
does persist it, but code-server
doesn't.
For example we check for new nightly extension release and record it in globalState
like this.
But when we programmatically install the extension from VSIX and reload the window, code-server clears the persistent storage.
Meta
- Web Browser:
Google Chrome Version 84.0.4147.125 (Official Build) (64-bit)
- Local OS:
Ubuntu 20.04.1 LTS
- Remote OS: (idk, just running
code-server
on my local PC, so probably same as Local OS) - Remote Architecture:
x86_64
my PC code-server --version
:3.4.1
48f7c27