Skip to content

Commit

Permalink
fix: dispose CommandManager on extension deactivation
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Golovin <[email protected]>
  • Loading branch information
dgolovin committed Aug 12, 2024
1 parent e3937e3 commit ac3f324
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,11 @@ async function _activate(extensionContext: extensionApi.ExtensionContext): Promi
presetChangedEvent(() => {
presetChanged(provider, extensionContext, telemetryLogger);
}),
);

extensionContext.subscriptions.push(
crcStatus.onStatusChange(e => {
updateProviderVersionWithPreset(provider, e.Preset as Preset);
provider.updateStatus(crcStatus.getProviderStatus());
}),
commandManager,
);
}

Expand Down

0 comments on commit ac3f324

Please sign in to comment.