Closed
Description
I even tried to disable the JS/TS extension but it doesn't work neither.
- Issue Type:
Bug
- Extension Name:
typescript-language-features
- Extension Version:
1.0.0
- OS Version:
Windows_NT x64 10.0.18363
- VS Code version:
1.56.2
================ EDIT ================
First of all Im not using "Volar" or any other Vue releated plugin.
All the plugins that I have are (see the images below) :
The problem not happens everytime I open vscode but most of the time.
By the way I'm pretty sure once I tried disabling all extensions including JS/TS extension which causes the problem but it doesn't helped (When I click disable JS/TS it didn't worked but others were disabled).
{
"messages": [],
"activationTimes": {
"codeLoadingTime": 26,
"activateCallTime": 3,
"activateResolvedTime": 1,
"activationReason": {
"startup": false,
"extensionId": {
"value": "vscode.typescript-language-features",
"_lower": "vscode.typescript-language-features"
},
"activationEvent": "onLanguage:jsonc"
}
},
"runtimeErrors": []
}
Activity
bartenra commentedon May 25, 2021
I am having the same problem after updating to 1.56.2
I'm seeing this in the Typescript debug log:
bartenra commentedon May 25, 2021
Actually, my issue is an interaction between Volar and @headlessui/vue.
mjbvz commentedon May 25, 2021
Does this reproduce in the latest VS Code insiders build with all extensions disabled?
/needsMoreInfo
johnsoncodehk commentedon May 25, 2021
johnsoncodehk commentedon May 26, 2021
The problem is TS server freeze by special invalid content. And that is valid Vue content, but add to TS server by
getExternalFiles
api.Repro (Note here no any vue file): https://github.com/johnsoncodehk/ts-extension-freeze-repro
(Also added a patching for this problem in volar 0.25.13.)
Seefer commentedon May 26, 2021
I'm a web-dev newcomer and can reproduce this problem. It only seems to happen if I'm using VS Code in a project for simply learning Javascript that does not have any NPM packages, just one HTML file that links to a javascript file. In another project with just these two files but also using NPM packages and containing
node_modules
and apackage.json
, I briefly get the JS/TS language initializing message before it completes and vanishes. However, if I then delete thenode_modules
folder and thepackage.json
in that folder and open the folder in VS Code again, the JS/TS initializing message just spins and spins and does not complete. Is this expected behaviour?I've since discovered adding a
jsconfig.json
to the project root prevents the initializing message from constantly appearing. If the initialization does start it's too quick for me to see before it vanishes from the status bar.I used the following in the
jsconfig.json
file:VS Code version: Code 1.56.2 (054a929, 2021-05-12T17:13:13.157Z)
OS version: Windows_NT x64 10.0.19042
System Info
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Extensions (59)
(1 theme extensions excluded)
A/B Experiments
bartenra commentedon May 27, 2021
@mjbvz Reproduction above. Is that enough info? :)
ref
sugar in multi-tabs may not working vuejs/language-tools#162RVFET commentedon Jun 16, 2021
I really don't know what to add more than all above informations, so Im closing the issue (although it is not completely fixed, it still jums up sometimes randomly).