Repository: vscode
Issue: `getTokenInformationAtPosition` API causes too much traffic and blocks the renderer process
Labels: bug,api,tokenization,under-discussion

* Install `GitHub Pull Request Nightly BuildPreview`
* Open the following file:
```
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
// #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555 #91555
function hello() {
    //
}
function hello2() {
}
function hello3() {
}
```

Try to work in the file and observe how the window is not really responsive.
Add a console log statement here -- https://github.com/microsoft/vscode/blob/353e8f4fbadc048125593c8e34723bc667f373ce/src/vs/workbench/api/browser/mainThreadLanguages.ts#L47

Observe how after each keystroke there are thousands of requests going from the extension host to the renderer process.

![Kapture 2020-06-04 at 12 43 07](https://user-images.githubusercontent.com/5047891/83747499-012d3580-a661-11ea-98d6-7ce7dac20817.gif)