rust-analyzer previously did not recognize code outside of the source and cargo build directories as there was no mechanism for populating its VFS after construction, and
include!()s and other source analysis didn't occur until after the VFS was populated. In our case this prevented rust-analyzer from recognizing XPCOM and Glean generated code which are located outside of crate build directories, and windows-rs which is downloaded separately from source.
With
this PR rust-analyzer was extended with the config
rust-analyzer.vfs.extraIncludes which allows explicitly extending the list of directories added to the VFS. With
this revision support for the config was added for both the build and windows-rs directories with
mach ide vscode.