MaskRay / vscode-ccls

ccls plugin for Visual Studio Code
122 stars 36 forks source link

CCLS index is rebuilt everytime I reopen project in visual studio #127

Open DBGilles opened 2 years ago

DBGilles commented 2 years ago

Observed behavior

When I open a remote project in VIsual Studio the ccls server starts indexing the source code despite having a cached index in .ccls-cache. I can see that the ccls server is using a lot of memory, and the counters shown in the ccls info tooltip in the bottom right corner are steadily increasing.

Expected behavior

The index should not be rebuilt, the index stored in .ccls-cache should be used.

Steps to reproduce

  1. create the ccls-cache ccls --index=.
  2. configure ccls in visual studio
  3. close project
  4. reopen project

the cache will be rebuilt again

moulicm111 commented 2 years ago

+1