rust-lang/rust-analyzer

Extension activates in empty directories

lnicola opened this issue · 3 comments

I was going to try your suggestion of copying files into a new directory until the extension was triggered and found out that it is triggering immediately, even when opening an empty directory. I tried this a couple of different ways (see below) with the same results.

In all test cases I followed these steps:

  1. Close the current workspace or folder from the File menu.
  2. Close VS Code application.

Then either, Right-click the empty folder and select Open with Code, or,

  1. Launch Code form the Start menu.
  2. Open the empty directory from File | Open Folder... menu.

Originally posted by @damianpowell in rust-analyzer/rust-analyzer.github.io#204 (comment)

Would be good to know if this happens with no other extensions enabled.

I tried loading code in an empty directory using the --disable-extensions switch but then I could not re-enable the rust-analyzer extension to perform the test. Could you give me a pointer on how to load just that one extension, please?

I don't think you can disable every extension in bulk.