diff options
| author | arsdragonfly <arsdragonfly@gmail.com> | 2019-09-27 17:33:14 -0400 |
|---|---|---|
| committer | arsdragonfly <arsdragonfly@gmail.com> | 2019-09-27 17:33:14 -0400 |
| commit | 945679e42fbefe565cb37456d3cf9cc3b0da6df5 (patch) | |
| tree | 24be462aff4959fb7b6adb1b1577e85237119fd5 /editors/code/src/utils/diagnostics | |
| parent | 84340db87aed477f61bf46ba5e4a75f3eb672237 (diff) | |
| download | rust-945679e42fbefe565cb37456d3cf9cc3b0da6df5.tar.gz rust-945679e42fbefe565cb37456d3cf9cc3b0da6df5.zip | |
Fix tests
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 a66b52313e9..cd02ee46c9e 100644 --- a/editors/code/src/utils/diagnostics/rust.ts +++ b/editors/code/src/utils/diagnostics/rust.ts @@ -213,6 +213,7 @@ export function mapRustDiagnosticToVsCode( vd.source = source; vd.code = code; vd.relatedInformation = []; + vd.tags = []; for (const secondarySpan of secondarySpans) { const related = mapSecondarySpanToRelated(secondarySpan); @@ -246,8 +247,6 @@ export function mapRustDiagnosticToVsCode( vd.message += `\n${primarySpanLabel}`; } - vd.tags = [] - if (isUnusedOrUnnecessary(rd)) { vd.tags.push(vscode.DiagnosticTag.Unnecessary); } |
