Closed
Description
- VSCode Version: 1.43 (UX regression from 1.42)
- OS Version: Windows 10
Steps to Reproduce:
- Open Microsoft/typescript src/compiler/checker.ts (~36,000 lines)
- Request completion somewhere in the file after a little warm-up
- Observe delay: ~8 seconds on a middle-of-the-road machine
- Turn off semantic highlighting
- Try again: Delay is more like ~3 seconds
The root cause seems to be VS Code sending repeated commands on edit for
Info 250 [10:51:9.601] request:
{"seq":27,"type":"request","command":"encodedSemanticClassifications-full","arguments":{"file":"d:/github/TypeScript/src/compiler/checker.ts","start":0,"length":2188700}}
specifically
"start":0,"length":2188700 <- too much!
which in turn causes TS Server to perform a ton of work highlighting nonvisible parts of the file
Does this issue occur when all extensions are disabled?: Yes
It seems like this was being discussed at #86415 but raising this for clarity of impact