Skip to content

TSServer Reference requests taking a long time #17385

Closed
@mjbvz

Description

@mjbvz

From microsoft/vscode#31344

TypeScript Version: 2.4.2

While working in the VSCode codebase, @kieferrm noticed some major slow downs while working in a TS file. It seem the references requests against TSServer are taking up to a second.

Here are his repo steps:

  1. open a VS Code workspace on master, no open editors
  2. search for from 'electron' in all *.ts files
  3. click on the first search result and wait until TS is properly initialized
  4. click on the second search result and select ipcMain in the editor
    -> caret stops blinking, it takes several seconds until the underlying word is highlighted and occurrences are shown in the scrollbar (only happens after the reference code lenses are shown)

And the TSServer log:

https://github.com/Microsoft/vscode/files/1171339/tsserver-log.txt

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issueVS Code TrackedThere is a VS Code equivalent to this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions