Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

Typescript autocompletion is laggy in VSCode #849

Closed
kratico opened this issue Apr 5, 2023 · 2 comments · Fixed by #867
Closed

Typescript autocompletion is laggy in VSCode #849

kratico opened this issue Apr 5, 2023 · 2 comments · Fixed by #867
Labels
bug Something is broken

Comments

@kratico
Copy link
Contributor

kratico commented Apr 5, 2023

This is probably related to an update in the last 2 weeks

@kratico kratico added the bug Something is broken label Apr 5, 2023
@kratico kratico changed the title Typescript autocompletion is laggy Typescript autocompletion is laggy in VSCode Apr 5, 2023
@robocapi robocapi added this to Capi Apr 5, 2023
@harrysolovay
Copy link
Contributor

harrysolovay commented Apr 8, 2023

I'm also experiencing this problem.

Screen.Recording.2023-04-08.at.11.44.11.AM.mov

There are two related open issues:

I'd also imagine that this has something to do with LSP erroring out with the following mish mash on repeat:

Unable to send result to client.
successfully cancelled request with ID: 155
client asked to cancel request 153, but no such pending request exists, ignoring

These logs appear in denoland/deno#18494, which ultimately doesn't address editor responsiveness issues.

Things attempted

  • disabling shiki
  • emptying the Deno cache
  • setting a new loc for the Deno cache
  • loading old versions of Capi

EDIT:

Got a fun new log:

Hit the language server document preload limit of 1000 file system entries. You may want to use the "deno.enablePaths" configuration setting to only have Deno partially enable a workspace.

@harrysolovay
Copy link
Contributor

Explicitly setting all enablePaths––except for examples––in .vscode/settings.json solves it. This ofc is a bad solution for us, as we frequently develop against / debug via examples.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something is broken
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants