Skip to content

Initializing JS/TS language features BUT NEVER STOPS! #124561

Closed
@RVFET

Description

@RVFET

I even tried to disable the JS/TS extension but it doesn't work neither.
resim
resim

  • 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) :
resim
resim
resim

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

bartenra commented on May 25, 2021

@bartenra

I am having the same problem after updating to 1.56.2

I'm seeing this in the Typescript debug log:

[Trace  - 09:03:15.563] <syntax> Canceled request with sequence number 2
[Trace  - 09:03:46.39] <semantic> Canceled request with sequence number 5
[Trace  - 09:03:48.183] <semantic> Canceled request with sequence number 6
bartenra

bartenra commented on May 25, 2021

@bartenra

Actually, my issue is an interaction between Volar and @headlessui/vue.

mjbvz

mjbvz commented on May 25, 2021

@mjbvz
Collaborator

Does this reproduce in the latest VS Code insiders build with all extensions disabled?

/needsMoreInfo

johnsoncodehk

johnsoncodehk commented on May 25, 2021

@johnsoncodehk
johnsoncodehk

johnsoncodehk commented on May 26, 2021

@johnsoncodehk
Contributor

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

Seefer commented on May 26, 2021

@Seefer

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 a package.json, I briefly get the JS/TS language initializing message before it completes and vanishes. However, if I then delete the node_modules folder and the package.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:

{
  "compilerOptions": {
    "module": "es2020",
    "target": "es6"
  }
} 

VS Code version: Code 1.56.2 (054a929, 2021-05-12T17:13:13.157Z)
OS version: Windows_NT x64 10.0.19042

System Info
Item Value
CPUs Intel(R) Core(TM) i9-10900K CPU @ 3.70GHz (20 x 3696)
GPU Status 2d_canvas: enabled
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
Load (avg) undefined
Memory (System) 31.89GB (20.68GB free)
Process Argv F:\01-Projects\5-NodeJS\roman-numeral --crash-reporter-id 39706a1d-47ad-4451-8289-40dab0b1bf44
Screen Reader no
VM 0%
Extensions (59)
Extension Author (truncated) Version
html-snippets abu 0.2.1
armview ben 0.4.5
htmltagwrap bra 0.0.7
path-intellisense chr 2.3.0
vscode-eslint dba 2.1.20
docs-authoring-pack doc 0.1.13
githistory don 0.6.16
es7-react-js-snippets dsz 3.1.1
gitlens eam 11.4.1
EditorConfig Edi 0.16.4
vscode-npm-script eg2 0.3.21
prettier-vscode esb 6.4.0
vscode-language-babel mgm 0.0.31
git-graph mhu 1.30.0
file-downloader min 1.0.11
azure-pipelines ms- 1.183.0
vscode-azureappservice ms- 0.22.0
vscode-azureresourcegroups ms- 0.4.0
vscode-azurestorage ms- 0.12.0
vscode-azurevirtualmachines ms- 0.4.0
vscode-bicep ms- 0.3.539
vscode-cosmosdb ms- 0.16.0
vscode-docker ms- 1.13.0
csharp ms- 1.23.11
vscode-dotnet-runtime ms- 1.1.0
vscode-edge-devtools ms- 1.1.9
python ms- 2021.5.842923320
vscode-pylance ms- 2021.5.3
jupyter ms- 2021.6.832593372
remote-containers ms- 0.177.2
remote-ssh ms- 0.65.4
remote-ssh-edit ms- 0.65.6
remote-ssh-explorer ms- 0.55.0
remote-wsl ms- 0.56.3
vscode-remote-extensionpack ms- 0.21.0
azure-account ms- 0.9.8
azurecli ms- 0.5.0
cpptools ms- 1.3.1
powershell ms- 2021.2.2
typescript-javascript-grammar ms- 0.0.55
vs-keybindings ms- 0.2.1
vscode-node-azure-pack ms- 0.2.1
vsliveshare ms- 1.0.4272
vsliveshare-audio ms- 0.1.91
vsliveshare-pack ms- 0.4.0
azurerm-vscode-tools msa 0.15.1
debugger-for-chrome msj 4.12.12
debugger-for-edge msj 1.0.15
advanced-new-file pat 1.2.2
material-icon-theme PKi 4.7.0
vscode-yaml red 0.19.2
live-sass rit 3.0.0
LiveServer rit 5.6.1
vscode-fileutils sle 3.4.5
ms-teams-vscode-extension Tea 2.0.1
windows-terminal Tyr 0.6.1
vscodeintellicode Vis 1.2.14
vscode-icons vsc 11.4.0
JavaScriptSnippets xab 1.8.0

(1 theme extensions excluded)

A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
pythonvspyt700cf:30270857
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
pythonvspyt639:30300192
pythontb:30283811
pythonvspyt943:30300582
vspre833cf:30267465
pythonptprofiler:30281270
vshan820:30294714
pythondataviewer:30285071
vscus158:30286553
vscgsv2ct:30307505
vscorehov:30302759
bridgeflight:30302069
vscod805:30301674

bartenra

bartenra commented on May 27, 2021

@bartenra

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.)

@mjbvz Reproduction above. Is that enough info? :)

RVFET

RVFET commented on Jun 16, 2021

@RVFET
Author

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).

locked and limited conversation to collaborators on Jul 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

info-neededIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Initializing JS/TS language features BUT NEVER STOPS! · Issue #124561 · microsoft/vscode