Skip to content

Commit a371128

Browse files
committed
remove tracker dispose in activation
1 parent 9cdb6f5 commit a371128

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/core/src/codewhisperer/nextEditPrediction/activation.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { PredictionTracker } from './PredictionTracker'
88
import { PredictionKeyStrokeHandler } from './PredictionKeyStrokeHandler'
99
import { getLogger } from '../../shared/logger/logger'
1010
import { ExtContext } from '../../shared/extensions'
11+
import { SnapshotVisualizer } from './SnapshotVisualizer'
1112

1213
export let predictionTracker: PredictionTracker | undefined
1314
let keyStrokeHandler: PredictionKeyStrokeHandler | undefined
@@ -21,14 +22,10 @@ export function activateNextEditPrediction(context: ExtContext): void {
2122

2223
// Initialize the keystroke handler
2324
keyStrokeHandler = new PredictionKeyStrokeHandler(predictionTracker)
24-
25-
// Register for disposal
2625
context.extensionContext.subscriptions.push(
2726
vscode.Disposable.from({
2827
dispose: () => {
29-
getLogger().info('Disposing Next Edit Prediction resources')
3028
keyStrokeHandler?.dispose()
31-
predictionTracker?.dispose()
3229
},
3330
})
3431
)

0 commit comments

Comments
 (0)