Skip to content

TS Completion is slow when opening another large file #31452

Closed
@octref

Description

@octref

Version: 1.34.20-insider
Commit: 57b550c559b945eb9d871dbf2b2e4cb9e31e2551
Date: 2019-05-10T17:35:18.558Z
Electron: 3.1.8
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Darwin x64 18.5.0


Try to trigger completion on this file:

const ts = require('typescript')

ts.|

If I only have this file open, completion will be fast.
If I have another large JS file open, completion will be slow.

Repro:

  • mkdir test && cd test
  • yarn add typescript
  • Have the above code, do a completion. 🐇
  • Open node_modules/typescript/lib/typescript.js, do a completion. 🐌

Metadata

Metadata

Assignees

Labels

Fix AvailableA PR has been opened for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions