Skip to content

Commit 989f687

Browse files
committed
ensure dispose
1 parent 681a38f commit 989f687

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/platform/notebooks/deepnote/sqlIntegrationEnvironmentVariablesProvider.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ export class SqlIntegrationEnvironmentVariablesProvider {
7878
@inject(IDisposableRegistry) disposables: IDisposableRegistry
7979
) {
8080
logger.info('SqlIntegrationEnvironmentVariablesProvider: Constructor called - provider is being instantiated');
81+
// Dispose emitter when extension deactivates
82+
disposables.push(this._onDidChangeEnvironmentVariables);
8183
// Listen for changes to integration storage and fire change event
8284
disposables.push(
8385
this.integrationStorage.onDidChangeIntegrations(() => {

0 commit comments

Comments
 (0)