mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Include buildfiles in vfs
This commit is contained in:
parent
af9a658864
commit
85ca217765
2 changed files with 16 additions and 0 deletions
|
@ -265,6 +265,11 @@ impl ProjectFolders {
|
|||
entries.push(manifest.to_owned());
|
||||
}
|
||||
|
||||
for buildfile in ws.buildfiles() {
|
||||
file_set_roots.push(VfsPath::from(buildfile.to_owned()));
|
||||
entries.push(buildfile.to_owned());
|
||||
}
|
||||
|
||||
// In case of detached files we do **not** look for a rust-analyzer.toml.
|
||||
if !matches!(ws.kind, ProjectWorkspaceKind::DetachedFile { .. }) {
|
||||
let ws_root = ws.workspace_root();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue