-
Notifications
You must be signed in to change notification settings - Fork 29.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JS/Ts language service keeps crashing when opening plain JS files #178447
Comments
This issue could be caused by a variety of factors, such as outdated extensions, conflicting extensions.
You can try any of these, hopefully it works |
Does this reproduce in the latest VS Code insiders build with all extensions disabled? |
Yeah it should reproduce in the insiders build 🤔 |
My extensions are up to date. It's definitely not a system specs or resources issue either. Is there a way to enable verbose logging or something so we can see the reason it's crashing? |
Open the VS Code settings |
Sharing this hoping it provides some additional info; we had a similar problem, at the end we figured including those js files in any of the tsconfig.json files in the project fixed this issue. However, we are still running into this language server crash->reinitialize loop and we are unable to find the cause of this now. There still are many js files in the repo that are not included by any of the tsconfig.json files because they are our build artifacts. And although we open any js files, sometimes we still get into that loop on vscode. I have opened an issue about this microsoft/TypeScript#53574 |
@gfraser-solink Did you test in the latest VS Code insiders build with all extensions disabled? |
I'm not on the insiders build. This is the build I'm on currently and the issue is still occurring. It hasn't been a big enough issue for me to try a different build though since most of my work is in TS and those files work fine. Version: 1.76.2 (Universal) |
Sorry but we really need you to test on insiders with extensions disabled. I'll close this if it's not a big issue |
Type: Bug
Most files in our projects are TS but opening certain JS files causes the JS/TS language service to keep crashing, causing VS Code to consume signficant battery power consistently. The only way to stop the service from crashing is to restart VS Code and refrain from opening any JS files and only stick to TS files.
VS Code version: Code 1.76.2 (Universal) (ee2b180, 2023-03-14T17:54:09.061Z)
OS version: Darwin arm64 22.3.0
Modes:
Sandboxed: No
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Extensions (8)
A/B Experiments
The text was updated successfully, but these errors were encountered: