emacs-lsp / emacs-ccls

Emacs client for ccls, a C/C++ language server
200 stars 29 forks source link

How to reset the project root #40

Closed ghost closed 5 years ago

ghost commented 5 years ago

I want to change or reset the project root, since the location of compile_commands.json is moved.

I've tried looking at M-x customize-group ccls or removed .ccls-cache from the project root directory, however I couldn't find a way to reset the project root of the file.

How can I set a new project root?

ghost commented 5 years ago

I managed to reset the project root by deleting .emacs.d/lsp-session-v1. However, this seems to be an overkill. Does ccls provide any efficient way for doing this?

MaskRay commented 5 years ago

It is ~/.emacs.d/.lsp-session-v1, not lsp-session-v1. There seems no support to delete a session. You may send a feature request to lsp-mode.