From 9fcad829807a0306fbf4eb2ebc1603a11a6df182 Mon Sep 17 00:00:00 2001 From: James Leitch Date: Tue, 20 Apr 2021 20:03:35 -0700 Subject: Diagnostic Remap Path Prefixes added. --- docs/user/generated_config.adoc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'docs') diff --git a/docs/user/generated_config.adoc b/docs/user/generated_config.adoc index e0ee35b4e..cb6fe5850 100644 --- a/docs/user/generated_config.adoc +++ b/docs/user/generated_config.adoc @@ -147,6 +147,12 @@ have more false positives than usual. -- List of rust-analyzer diagnostics to disable. -- +[[rust-analyzer.diagnostics.remapPathPrefixes]]rust-analyzer.diagnostics.remapPathPrefixes (default: `{}`):: ++ +-- +Map of path prefixes to be substituted when parsing diagnostic file paths. +This should be the reverse mapping of what is passed to `rustc` as `--remap-path-prefix`. +-- [[rust-analyzer.diagnostics.warningsAsHint]]rust-analyzer.diagnostics.warningsAsHint (default: `[]`):: + -- -- cgit v1.2.3 From 72718bc2d7113874536b8bcd486aa5bd7dacafe6 Mon Sep 17 00:00:00 2001 From: James Leitch Date: Wed, 21 Apr 2021 15:09:37 -0700 Subject: Code review feedback. --- docs/user/generated_config.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/user/generated_config.adoc b/docs/user/generated_config.adoc index cb6fe5850..e28423e99 100644 --- a/docs/user/generated_config.adoc +++ b/docs/user/generated_config.adoc @@ -147,10 +147,10 @@ have more false positives than usual. -- List of rust-analyzer diagnostics to disable. -- -[[rust-analyzer.diagnostics.remapPathPrefixes]]rust-analyzer.diagnostics.remapPathPrefixes (default: `{}`):: +[[rust-analyzer.diagnostics.remapPrefix]]rust-analyzer.diagnostics.remapPrefix (default: `{}`):: + -- -Map of path prefixes to be substituted when parsing diagnostic file paths. +Map of prefixes to be substituted when parsing diagnostic file paths. This should be the reverse mapping of what is passed to `rustc` as `--remap-path-prefix`. -- [[rust-analyzer.diagnostics.warningsAsHint]]rust-analyzer.diagnostics.warningsAsHint (default: `[]`):: -- cgit v1.2.3