ctx.subscriptions usage
Danp2 opened this issue · comments
Dan Pollak commented
Two items related to ctx.subscriptions
--
- This code isn't working as expected and yields errors when the extension is unloaded --
AutoIt-VSCode/src/extension.js
Lines 53 to 61 in 2c3c041
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
- Shouldn't registered commands be "subscribed"? See https://stackoverflow.com/questions/55554018/purpose-for-subscribing-a-command-in-vscode-extension