-
Notifications
You must be signed in to change notification settings - Fork 73
Description
Describe the bug
When starting VSCode, the Extension Host becomes absolutely lousy with unhandled exceptions roughly every 500ms until I activate the GistPad view, at which point they stop. It seems to be a similar exception to that described in issue #381 with the following errors seen:
- ExtensionError: Error in extension vsls-contrib.gistfs: FAILED to handle event
- TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
I can open and edit gists fine, so it doesn't appear to be interfering with the extension usability (at least in my testing, albeit I'm not a super-heavy user of it), but it certainly fills up the Extension Host and Window logs for some reason.
To Reproduce
Steps to reproduce the behavior:
- Start VSCode
- Look at Extension Host and Window output
- Open the GistPad view
- Look at Extension Host and Window output again. At least one type of error should have stopped.
Expected behavior
Perhaps have an output channel for extension logging messages and exceptions. At the very least, I wouldn't be seeing oodles of exceptions in the Extension Host output channel.
Screenshots
N/A - See logs under Additional Context
Desktop
- VS Code Version: 1.104.0 (x64, System install)
- GistPad Version: vsls-contrib.gistfs@0.9.5
Additional context
Extension Host Type 1
This came up right after installing the Markdown Lint extension and stopped after the extension host restarted:
2025-09-15 10:29:02.054 [info] ExtensionService#_doActivateExtension DavidAnson.vscode-markdownlint, startup: false, activationEvent: 'onLanguage:markdown'
2025-09-15 10:29:02.886 [error] ExtensionError: Error in extension vsls-contrib.gistfs: FAILED to handle event
at od.value (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:199:101685)
at $.C (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:27:2373)
at $.D (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:27:2443)
at $.fire (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:27:2660)
at FV.$acceptModelChanged (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:140:108211)
at j4.S (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:120180)
at j4.Q (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:119960)
at j4.M (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:119049)
at j4.L (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:118154)
at od.value (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:116951)
at $.C (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:27:2373)
at $.fire (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:27:2591)
at vo.fire (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:9458)
at od.value (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:391:8617)
at $.C (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:27:2373)
at $.fire (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:27:2591)
at vo.fire (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:9458)
at MessagePortMain.<anonymous> (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:391:6909)
at MessagePortMain.emit (node:events:518:28)
at Object.MessagePortMain._internalPort.emit (node:electron/js2c/utility_init:2:2949)
<...more errors...>
2025-09-15 10:33:43.982 [info] Extension host with pid 11688 exiting with code 0
2025-09-15 10:33:45.497 [info] Extension host with pid 13544 started
<...other extension activation events...>
2025-09-15 10:33:48.935 [info] ExtensionService#_doActivateExtension vsls-contrib.gistfs, startup: false, activationEvent: 'onView:gistpad.gists'
<...other extension activation events...>
2025-09-15 10:33:58.302 [error] Error: Not Found
at l (c:\Users\tma2\.vscode\extensions\vsls-contrib.gistfs-0.9.5\dist\extension.js:2:768273)
at c:\Users\tma2\.vscode\extensions\vsls-contrib.gistfs-0.9.5\dist\extension.js:2:769295
at processTicksAndRejections (node:internal/process/task_queues:105:5)
at g (c:\Users\tma2\.vscode\extensions\vsls-contrib.gistfs-0.9.5\dist\extension.js:2:499062)
at async Promise.all (index 2)
at c:\Users\tma2\.vscode\extensions\vsls-contrib.gistfs-0.9.5\dist\extension.js:2:63946
at async Promise.all (index 3)
<...errors stop>
Extension Host Type 2
This typically shows right after the extension first activates.
2025-09-15 10:19:10.504 [info] ExtensionService#_doActivateExtension vsls-contrib.gistfs, startup: false, activationEvent: 'api', root cause: vscode.markdown-language-features
<...other extension activation events...>
2025-09-15 10:19:11.012 [error] [vsls-contrib.gistfs] provider FAILED
2025-09-15 10:19:11.013 [error] TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
at u.provideDocumentLinks (c:\Users\tma2\.vscode\extensions\vsls-contrib.gistfs-0.9.5\dist\extension.js:2:1118451)
at n1.provideLinks (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:140:151139)
at file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:140:168163
at Kt.G (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:140:156654)
at Kt.$provideDocumentLinks (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:140:168151)
at j4.S (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:120180)
at j4.Q (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:119960)
at j4.M (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:119011)
at j4.L (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:118154)
at od.value (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:116951)
at $.C (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:27:2373)
at $.fire (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:27:2591)
at vo.fire (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:9458)
at od.value (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:391:8617)
at $.C (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:27:2373)
at $.fire (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:27:2591)
at vo.fire (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:9458)
at MessagePortMain.<anonymous> (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:391:6909)
at MessagePortMain.emit (node:events:518:28)
at Object.MessagePortMain._internalPort.emit (node:electron/js2c/utility_init:2:2949)
Window Exception
2025-09-15 10:19:10.930 [error] [Window] Collection or definition not found for vsls-contrib.gistfs/gistpad and vsls-contrib.gistfs/GistPad: Error: Collection or definition not found for vsls-contrib.gistfs/gistpad and vsls-contrib.gistfs/GistPad
at lht.resolveConnection (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2160:2100)
at vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2160:11387
at vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:30:73168
2025-09-15 10:19:11.022 [error] [Window] undefined is not iterable (cannot read property Symbol(Symbol.iterator)): TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
at u.provideDocumentLinks (c:\Users\tma2\.vscode\extensions\vsls-contrib.gistfs-0.9.5\dist\extension.js:2:1118451)
at n1.provideLinks (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:140:151139)
at file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:140:168163
at Kt.G (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:140:156654)
at Kt.$provideDocumentLinks (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:140:168151)
at j4.S (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:120180)
at j4.Q (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:119960)
at j4.M (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:119011)
at j4.L (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:118154)
at od.value (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:116951)
at $.C (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:27:2373)
at $.fire (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:27:2591)
at vo.fire (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:9458)
at od.value (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:391:8617)
at $.C (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:27:2373)
at $.fire (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:27:2591)
at vo.fire (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:9458)
at MessagePortMain.<anonymous> (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:391:6909)
at MessagePortMain.emit (node:events:518:28)
at Object.MessagePortMain._internalPort.emit (node:electron/js2c/utility_init:2:2949)
Then, after the extension host restarted, I noticed this as well:
2025-09-15 10:33:49.677 [warning] [Window] UNRESPONSIVE extension host: 'vsls-contrib.gistfs' took 54.92464457868082% of 45.008ms, saved PROFILE here: 'file:///c%3A/Users/tma2/AppData/Local/Temp/exthost-c0b7d4.cpuprofile'
I've attached the referenced CPUProfile here: Gistpad-exthost-c0b7d4.cpuprofile