Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Always analyzing in background on start up #848

Closed
marpala opened this issue Mar 29, 2019 · 3 comments
Closed

Always analyzing in background on start up #848

marpala opened this issue Mar 29, 2019 · 3 comments
Labels
performance question A question about the LS

Comments

@marpala
Copy link

marpala commented Mar 29, 2019

Is the language server supposed to analyze in background for several minutes every time I open VS Code?
Every time I open a project it starts analyzing thousands of items for several minutes. I have only recently noticed this behavior and was wondering if it was normal.

image

@jakebailey
Copy link
Member

It depends heavily on what you have imported and what is installed in your environment. The old version of the language server likely also was running in the background, the difference is that the new language server reports progress (so this is more visible). See also #832 (particularly #832 (comment)).

Regarding "every time I open VS Code", yes, the LS does not persist its analysis (that's #472).

@jakebailey
Copy link
Member

There are some other performance bugs we're working on as well, particularly one that for some libraries makes the LS enter essentially a busy loop for a good amount of time. But, a few minutes isn't unexpected at this point.

@MikhailArkhipov
Copy link

MikhailArkhipov commented Apr 11, 2019

Analysis at startup is expected, there is no persistent database or anything along these lines yet. We have several items open related to caching, so closing this one.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
performance question A question about the LS
Projects
None yet
Development

No branches or pull requests

3 participants