loganch / AutoIt-VSCode

AutoIt Extension for Visual Studio Code

Home Page:https://marketplace.visualstudio.com/items?itemName=Damien.autoit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ctx.subscriptions usage

Danp2 opened this issue · comments

Two items related to ctx.subscriptions --

  • This code isn't working as expected and yields errors when the extension is unloaded --
    const features = [
    hoverFeature,
    completionFeature,
    symbolsFeature,
    signaturesFeature,
    workspaceSymbolsFeature,
    goToDefinitionFeature,
    ];
    ctx.subscriptions.push(...features);

This is a snippet of the runtime error --

2023-01-09 13:26:13.361 [info] Extension host terminating: received terminate message from renderer
2023-01-09 13:26:13.375 [error] An error occurred when deactivating the subscriptions for extension 'Damien.autoit':
2023-01-09 13:26:13.376 [error] AggregateError: Encountered errors while disposing of store
	at y (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:10:12197)
	at d.X (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:106:11533)
	at c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:106:9301
	at Array.map (<anonymous>)

Same issue has been described in microsoft/vscode#136150