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

Intellisense just work on root src folder #8618

Closed
0xDones opened this issue Apr 22, 2021 · 1 comment
Closed

Intellisense just work on root src folder #8618

0xDones opened this issue Apr 22, 2021 · 1 comment

Comments

@0xDones
Copy link

0xDones commented Apr 22, 2021

I'm trying to setup intellisense on VSCode but it is not working as expected, I will explain. I have all this directories opened in my vscode:

image

1- Initially I had all the projects inside the rust folder, intellisense worked poorly with the rust extension.
2- I installed rust-analyzer and disabled the official extension, after reloading vscode I started getting the error rust-analyzer failed to discover workspace.
3- Then I copied the projects rust/guessing-game and rust/grrs to the parent directory, which is also the root dir, and renamed them. So now rust-analyzer worked fine for both src/main.rs files, but is not working at all for any other file created in src or child directories.

@matklad
Copy link
Member

matklad commented Apr 22, 2021

Yeah, agree that this is a problem, thanks for the report. You can use linkedProjects settings to make rust-analyzer work with the current structure: https://rust-analyzer.github.io/manual.html#rust-analyzer.linkedProjects

I've filed #8622 which desrcribes the underlying issue in some more details.

@matklad matklad closed this as completed Apr 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants