emacs-lsp / lsp-pyright

lsp-mode :heart: pyright
https://emacs-lsp.github.io/lsp-pyright
GNU General Public License v3.0
284 stars 24 forks source link

How to unimport or remove an imported folder? #70

Open spookylukey opened 2 years ago

spookylukey commented 2 years ago

When prompted by pyright, I pressed "i" to import a folder X containing source code and many directories, which I didn't mean to. Now, whenever I run lsp-pyright (in a completely different project, with its own pyrightconfig.json), I get: "Watching all the files in X would require adding watches to 2554 directories, so watching the repo may slow Emacs down. Do you want to watch all the files in X (y or n)"

I have to type "n" every time. Somehow this is being cached somewhere, but I can't figure out where. How can I clear things out or remove this? I don't just want to customize a variable, I want to get back to a clean slate.

Thanks.

matzebond commented 2 years ago

Does lsp-workspace-folders-remove help?