microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.19k stars 28.85k forks source link

[api] memento onDidChange api #131182

Open akosyakov opened 3 years ago

akosyakov commented 3 years ago

I would like to know when some values are changed by other windows. But currently I could not find onDidChange even on env.globalState. Is there another way to be notified?

jrieken commented 3 years ago

fyi @bpasero

thegecko commented 1 year ago

I would love to see this feature added and aligned with the secrets API.

We are currently mimicking a window broadcast event by setting a fake secret and using the ExtensionContext.secrets.onDidChange event.