mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 11:59:49 +00:00
fix: Improve hover text in unlinked file diagnostics
Use full sentences, and mention how to disable the diagnostic if users are intentionally working on unowned files.
This commit is contained in:
parent
67f7eb505e
commit
e62bc2d1f5
2 changed files with 6 additions and 3 deletions
|
@ -76,7 +76,8 @@ export async function createClient(
|
|||
// value === "unlinked-file" &&
|
||||
value === "temporary-disabled" &&
|
||||
!unlinkedFiles.includes(uri) &&
|
||||
diag.message !== "file not included in module tree"
|
||||
(diag.message === "file not included in crate hierarchy" ||
|
||||
diag.message.startsWith("This file is not included in any crates"))
|
||||
) {
|
||||
const config = vscode.workspace.getConfiguration("rust-analyzer");
|
||||
if (config.get("showUnlinkedFileNotification")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue