mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 20:29:11 +00:00
docs(lsp): correct header name in comments (#14897)
This commit is contained in:
parent
367e006e06
commit
96821057dc
1 changed files with 2 additions and 2 deletions
|
@ -574,7 +574,7 @@ struct DiagnosticDataRedirect {
|
||||||
|
|
||||||
/// An enum which represents diagnostic errors which originate from Deno itself.
|
/// An enum which represents diagnostic errors which originate from Deno itself.
|
||||||
pub enum DenoDiagnostic {
|
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.
|
/// as a warning to the user.
|
||||||
DenoWarn(String),
|
DenoWarn(String),
|
||||||
/// The import assertion type is incorrect.
|
/// The import assertion type is incorrect.
|
||||||
|
@ -763,7 +763,7 @@ fn diagnose_dependency(
|
||||||
specifier, range, ..
|
specifier, range, ..
|
||||||
} => {
|
} => {
|
||||||
let range = documents::to_lsp_range(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.
|
// want a warning diagnostic with that message.
|
||||||
if let Some(metadata) = cache_metadata.get(specifier) {
|
if let Some(metadata) = cache_metadata.get(specifier) {
|
||||||
if let Some(message) =
|
if let Some(message) =
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue