language-tools: VSCode crash in devcontainers since volar 3.0.0
Vue - Official extension or vue-tsc version
3.0.1
VSCode version
1.101.2
Vue version
3.4.21
TypeScript version
N/A
System Info
System:
OS: Linux 6.6 Debian GNU/Linux 12 (bookworm) 12 (bookworm)
CPU: (16) x64 AMD Ryzen 9 5950X 16-Core Processor
Memory: 18.32 GB / 23.47 GB
Container: Yes
Shell: 5.2.15 - /bin/bash
Binaries:
Node: 16.20.2 - /usr/bin/node
Yarn: 3.2.2 - /usr/bin/yarn
npm: 8.19.4 - /usr/bin/npm
package.json dependencies
{
"dependencies": {
"@fullcalendar/bootstrap5": "6.1.11",
"@fullcalendar/core": "6.1.11",
"@fullcalendar/daygrid": "6.1.11",
"@fullcalendar/icalendar": "6.1.11",
"@fullcalendar/interaction": "6.1.11",
"@fullcalendar/list": "6.1.11",
"@fullcalendar/luxon3": "6.1.11",
"@fullcalendar/timegrid": "6.1.11",
"@fullcalendar/vue3": "6.1.11",
"@popperjs/core": "2.11.8",
"@twuni/emojify": "1.0.2",
"bootstrap": "5.3.3",
"bootstrap-icons": "1.11.3",
"browser-fs-access": "0.35.0",
"caniuse-lite": "1.0.30001603",
"d3": "7.9.0",
"file-saver": "2.0.5",
"highcharts": "11.4.0",
"ical.js": "1.5.0",
"jquery": "3.7.1",
"js-cookie": "3.0.5",
"list.js": "2.3.1",
"lodash": "4.17.21",
"lodash-es": "4.17.21",
"luxon": "3.4.4",
"moment": "2.30.1",
"moment-timezone": "0.5.45",
"ms": "2.1.3",
"murmurhash-js": "1.0.0",
"naive-ui": "2.38.1",
"pinia": "2.1.7",
"pinia-plugin-persist": "1.0.0",
"select2": "4.1.0-rc.0",
"select2-bootstrap-5-theme": "1.3.0",
"send": "0.18.0",
"shepherd.js": "11.2.0",
"slugify": "1.6.6",
"sortablejs": "1.15.2",
"vanillajs-datepicker": "1.3.4",
"vue": "3.4.21",
"vue-router": "4.3.0",
"zxcvbn": "4.4.2"
},
"devDependencies": {
"@parcel/optimizer-data-url": "2.12.0",
"@parcel/transformer-inline-string": "2.12.0",
"@parcel/transformer-sass": "2.12.0",
"@rollup/pluginutils": "5.1.0",
"@vitejs/plugin-vue": "4.6.2",
"@vue/language-plugin-pug": "2.0.7",
"browserlist": "latest",
"c8": "9.1.0",
"eslint": "8.57.0",
"eslint-config-standard": "17.1.0",
"eslint-plugin-cypress": "2.15.1",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-n": "16.6.2",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-promise": "6.1.1",
"eslint-plugin-vue": "9.24.0",
"html-validate": "8.18.1",
"jquery-migrate": "3.4.1",
"parcel": "2.12.0",
"pug": "3.0.2",
"sass": "1.72.0",
"seedrandom": "3.0.5",
"vite": "4.5.3"
}
}
Steps to reproduce
Open vscode project in devcontainers with the vue.volar extension defined into the devcontainer.json config. After a few seconds, vscode crashes with error “Cannot reconnect. Please reload the window.”.
Pinning vue.volar to the older 2.2.10 resolves the issue.
What is expected?
No crash.
What is actually happening?
After a few seconds after running inside the container (as Volar gets loaded), vscode crashes with error “Cannot reconnect. Please reload the window.”. Reloading the vscode window works but you now lost any previous context. The bug was reproducible by 2 other users on macOS and Windows.
Link to minimal reproduction
https://github.com/ietf-tools/datatracker/tree/06a4182e0287769673106d5d0c415f0ec92cdb46
Any additional comments?
No response
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 10
- Comments: 24 (9 by maintainers)
We found that this is caused by executing the “Developer: Restart Extension Host” command inside the Vue extension, and it can be reproduced by the user manually executing the “Developer: Restart Extension Host” command.
https://github.com/vuejs/language-tools/blob/945a6cd90266499d924f81cfa8826299a4ff7905/extensions/vscode/index.ts#L222
I have the same issue when using WSL, rolling back to v2 solves it in the same way.
My debug logs are similarly unhelpful.
To reproduce (with 3.0.0 and 3.0.1), I use an empty directory with some minimal typescript file, located on the WSL file system.
The file should be opened in the editor.
System version info
VS Code version: Code 1.102.0 (cb0c47c0cfaad0757385834bd89d410c78a856c0, 2025-07-09T22:10:34.600Z) OS version: Windows_NT x64 10.0.26100 WSL version: Linux x64 6.6.87.2-microsoft-standard-WSL2Boilerplate example.tsx
Relatedly, there is a small discussion here: https://github.com/microsoft/vscode-remote-release/issues/11091
And it seems that other extensions might be hitting a similar bug: https://github.com/continuedev/continue/issues/6612
I have the same problem, which can easily be replicated just by using the devcontainer file without any package.json or node_modules.
After the first build, the container hangs and must be reloaded. If I remove the extension or force version 2.2.10 and do a new build, the container does not crash.
Vscode version: 1.101.2 (Universal) Commit: 2901c5ac6db8a986a5666c3af51ff804d05af0d4 Date: 2025-06-24T20:27:15.391Z (1 wk ago) Electron: 35.5.1 ElectronBuildId: 11727614 Chromium: 134.0.6998.205 Node.js: 22.15.1 V8: 13.4.114.21-electron.0 OS: Darwin arm64 24.5.0
extensions installed: [“ms-vscode-remote.remote-containers@0.417.0”]
This issue is not related to language-tools, please track https://github.com/microsoft/vscode-remote-release/issues/11091.
I have a similar crash but from when connecting via remote SSH. It has been an odd and inconsistent experience for me.
Things I’ve noticed:
@KazariEX should I report this issue separately since it’s not directly related to devcontainers?
But to everyone else, if you can provide additional information. If you weren’t aware VSCode is just an Electron instance (Chrome) and you can see the Dev Tools. We might get better info if you can provide the console errors that are occurring.
Here are some of mine
No Crash Console Output
Crashing Console Output
And it repeats
EDIT: I got into a state where enabling the Vue (Official) extension on the SSH environment crashes VSCode.
And it repeats. When I reload, the Vue extension is enabled and it doesn’t crash
I can confirm the same issue without a devcontainer scenario.
v3.0.1simply crashed on opening anyvuefile. After manually downgrading to v2.2.10, and then updating back to v3.0.1, there is no crash any longerUnfortunately, this means I am not of much help with debugging the current issue but it figured I’d mention it as it may work as temporary workaround also for others.
I’m experiencing the same issue, but with a slightly different scenario. VS Code rarely crashes when working on an actual Vue project. However, the crash consistently occurs when I open a Python project that doesn’t contain a
package.jsonfile — this seems to be the common trigger.A few additional observations:
This issue does not occur when using an Ubuntu client — it only happens on Windows 11 in my case.
The remote target is a Debian server with the following specs:
VS Code Info (Windows client):
I did the usual remove .vscode-server folder reinstalled etc, and the issue still persist.
Let me know if there’s anything I can provide (logs, traces, etc.) to help debug this further.