Skip to content

Provide access to VS Code API in extension uninstall lifecycle hook #45474

@GabrielBB

Description

@GabrielBB
  • VSCode Version: 1.20.1
  • OS Version: Windows 10

Steps to Reproduce: Add this events to an extension code:

export function activate(context: vscode.ExtensionContext) {
vscode.workspace.getConfiguration().update('test', 'some text', ConfigurationTarget.Workspace);
}

export function deactivate(context: vscode.ExtensionContext) {
    vscode.workspace.getConfiguration().update('test', '', ConfigurationTarget.Workspace);
}

When it activates it updates but on deactivation it doesn't work. Im debugging and the code is running but with no effect. I also tried with ConfigurationTarget.Global.

Metadata

Metadata

Assignees

Labels

*out-of-scopePosted issue is not in scope of VS CodeextensionsIssues concerning extensionsfeature-requestRequest for new features or functionality

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions