feat(lsp): add redirect diagnostic and quick fix (#13580)

Ref: #12864
This commit is contained in:
Kitson Kelly 2022-02-04 18:14:57 +11:00 committed by GitHub
parent 681c3be18d
commit af5a373e00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 384 additions and 140 deletions

View file

@ -1145,15 +1145,7 @@ impl Inner {
_ => false,
},
"deno-lint" => matches!(&d.code, Some(_)),
"deno" => match &d.code {
Some(NumberOrString::String(code)) => {
matches!(
code.as_str(),
"no-cache" | "no-cache-data" | "no-assert-type"
)
}
_ => false,
},
"deno" => diagnostics::DenoDiagnostic::is_fixable(&d.code),
_ => false,
},
None => false,