summaryrefslogtreecommitdiff
path: root/cli/lsp/diagnostics.rs
diff options
context:
space:
mode:
authorMatt Kane <m@mk.gg>2022-06-17 16:41:28 +0100
committerGitHub <noreply@github.com>2022-06-17 11:41:28 -0400
commit96821057dc0e81537c4fb2a93b092ebbef4ac92c (patch)
treef3f0f2e48d929cd4ff3db7fd6dbdf01ff8296def /cli/lsp/diagnostics.rs
parent367e006e06b0275ac1ac06669ce19f6192735c34 (diff)
docs(lsp): correct header name in comments (#14897)
Diffstat (limited to 'cli/lsp/diagnostics.rs')
-rw-r--r--cli/lsp/diagnostics.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/lsp/diagnostics.rs b/cli/lsp/diagnostics.rs
index db613c9fd..fe3b5ee45 100644
--- a/cli/lsp/diagnostics.rs
+++ b/cli/lsp/diagnostics.rs
@@ -574,7 +574,7 @@ struct DiagnosticDataRedirect {
/// An enum which represents diagnostic errors which originate from Deno itself.
pub enum DenoDiagnostic {
- /// A `x-deno-warn` is associated with the specifier and should be displayed
+ /// A `x-deno-warning` is associated with the specifier and should be displayed
/// as a warning to the user.
DenoWarn(String),
/// The import assertion type is incorrect.
@@ -763,7 +763,7 @@ fn diagnose_dependency(
specifier, range, ..
} => {
let range = documents::to_lsp_range(range);
- // If the module is a remote module and has a `X-Deno-Warn` header, we
+ // If the module is a remote module and has a `X-Deno-Warning` header, we
// want a warning diagnostic with that message.
if let Some(metadata) = cache_metadata.get(specifier) {
if let Some(message) =