commit | 546339a7be357b3e95fc4b79a8816dce540d477b | [log] [tgz] |
---|---|---|
author | bors <bors@rust-lang.org> | Fri Sep 27 19:39:35 2024 +0000 |
committer | bors <bors@rust-lang.org> | Fri Sep 27 19:39:35 2024 +0000 |
tree | 503e91e78c8ffd0e7aafc9b1c873ac71a6b9ac82 | |
parent | 68f3e4d636242777c81adeb53581a8de35638bc7 [diff] | |
parent | 85ca217765a61db7d72783a18f77db6ef7022637 [diff] |
Auto merge of #18192 - darichey:read-buildfile-into-vfs, r=Veykril Include buildfiles in VFS We subscribe to `textDocument/didSave` for `filesToWatch`, but the VFS doesn't contain those files. Before https://github.com/rust-lang/rust-analyzer/pull/18105, this would bring down the server. Now, it's only a benign error logged: ``` ERROR notification handler failed handler=textDocument/didSave error=file not found: /foo/bar/TARGETS ``` It's benign, because we will also receive a `workspace/didChangeWatchedFiles` for the file which will invalidate and load it. Explicitly include the buildfiles in the VFS to prevent the handler from erroring.
rust-analyzer is a modular compiler frontend for the Rust language. It is a part of a larger rls-2.0 effort to create excellent IDE support for Rust.
https://rust-analyzer.github.io/manual.html#installation
If you want to contribute to rust-analyzer check out the CONTRIBUTING.md or if you are just curious about how things work under the hood, check the ./docs/dev folder.
If you want to use rust-analyzer's language server with your editor of choice, check the manual folder. It also contains some tips & tricks to help you be more productive when using rust-analyzer.
See the corresponding sections of the manual.
For usage and troubleshooting requests, please use “IDEs and Editors” category of the Rust forum:
https://users.rust-lang.org/c/ide/14
For questions about development and implementation, join rust-analyzer working group on Zulip:
https://rust-lang.zulipchat.com/#narrow/stream/185405-t-compiler.2Frust-analyzer
rust-analyzer is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0).
See LICENSE-APACHE and LICENSE-MIT for details.