diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-07-11 17:10:43 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-11 17:10:43 -0400 |
commit | 80331d1fe5b85b829ac009fdc201c128b3427e11 (patch) | |
tree | e3737ead77a8f800108107c3b89577c0bd0044b3 /cli/lsp/analysis.rs | |
parent | 830d10b1717273909c4aff8c704124c0415d7d21 (diff) |
fix(lsp): stop diagnostics flickering (#19803)
Closes https://github.com/denoland/vscode_deno/issues/835
Diffstat (limited to 'cli/lsp/analysis.rs')
-rw-r--r-- | cli/lsp/analysis.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/lsp/analysis.rs b/cli/lsp/analysis.rs index ce1d1c296..e5cd9d028 100644 --- a/cli/lsp/analysis.rs +++ b/cli/lsp/analysis.rs @@ -1,6 +1,7 @@ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. use super::diagnostics::DenoDiagnostic; +use super::diagnostics::DiagnosticSource; use super::documents::Documents; use super::language_server; use super::tsc; @@ -96,7 +97,7 @@ impl Reference { severity: Some(lsp::DiagnosticSeverity::WARNING), code: Some(lsp::NumberOrString::String(code.to_string())), code_description: None, - source: Some("deno-lint".to_string()), + source: Some(DiagnosticSource::Lint.as_lsp_source().to_string()), message: { let mut msg = message.to_string(); if let Some(hint) = hint { |