I followed the document of when clause context and added a custom when clause context.
I set a boolean context:
let start = vscode.commands.registerCommand('myExt.start', () => {
vscode.commands.executeCommand('setContext', 'myExt.activated', true);
});
But after the VSCode restarts, even if myExt.activated is true. VSCode forget it...
"explorer/context": [
{
"command": "myExt.filter",
"when": "myExt.activated"
}
]
Not showing after VSCode restarts even if myExt.activated was true in the last time...
Also, when debugging the context with the Developer: Inspect Context Keys command, the myExt.activated is not there.
Is there any way to persist when-clause context between VSCode restarts?