diff options
Diffstat (limited to 'editors/code/src/utils/diagnostics')
-rw-r--r-- | editors/code/src/utils/diagnostics/rust.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/editors/code/src/utils/diagnostics/rust.ts b/editors/code/src/utils/diagnostics/rust.ts index a66b52313..cd02ee46c 100644 --- a/editors/code/src/utils/diagnostics/rust.ts +++ b/editors/code/src/utils/diagnostics/rust.ts | |||
@@ -213,6 +213,7 @@ export function mapRustDiagnosticToVsCode( | |||
213 | vd.source = source; | 213 | vd.source = source; |
214 | vd.code = code; | 214 | vd.code = code; |
215 | vd.relatedInformation = []; | 215 | vd.relatedInformation = []; |
216 | vd.tags = []; | ||
216 | 217 | ||
217 | for (const secondarySpan of secondarySpans) { | 218 | for (const secondarySpan of secondarySpans) { |
218 | const related = mapSecondarySpanToRelated(secondarySpan); | 219 | const related = mapSecondarySpanToRelated(secondarySpan); |
@@ -246,8 +247,6 @@ export function mapRustDiagnosticToVsCode( | |||
246 | vd.message += `\n${primarySpanLabel}`; | 247 | vd.message += `\n${primarySpanLabel}`; |
247 | } | 248 | } |
248 | 249 | ||
249 | vd.tags = [] | ||
250 | |||
251 | if (isUnusedOrUnnecessary(rd)) { | 250 | if (isUnusedOrUnnecessary(rd)) { |
252 | vd.tags.push(vscode.DiagnosticTag.Unnecessary); | 251 | vd.tags.push(vscode.DiagnosticTag.Unnecessary); |
253 | } | 252 | } |