Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature request] Pause indexing #737

Open
dnsampaio opened this issue Nov 22, 2024 · 4 comments
Open

[feature request] Pause indexing #737

dnsampaio opened this issue Nov 22, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@dnsampaio
Copy link

Hi,
while performing huge changes (e.g. merging llvm-project from upstream that changes 3k files) frequently I get to compile while clangd is indexing the project it self. It would be most useful to be able to pause (or kill) / resume (or restart) clangd's indexing from vscode.

@dnsampaio dnsampaio added the enhancement New feature or request label Nov 22, 2024
@dnsampaio
Copy link
Author

From a quick test, in linux just doing a sigstop (19) / sigcont(18) seems to do the work very well.
Killing the process will make it spawn a new one.

@HighCommander4
Copy link
Contributor

Are you looking to pause the clangd server process altogether, or just the background indexer? Sigstop has the effect of the former, which means e.g. hover or go-to-definition in an open file will also not work during the pause.

@dnsampaio
Copy link
Author

dnsampaio commented Nov 24, 2024 via email

@Lev275568
Copy link

I wish stop cpu & memory consuming if some build task (compilation) is running.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants