feat: suggest adding a "node:" prefix for bare specifiers that look like built-in Node modules (#17519)

This commit is contained in:
David Sherret 2023-01-24 21:14:49 +01:00 committed by GitHub
parent e1c51f3c0d
commit f14ea3d4d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 254 additions and 97 deletions

View file

@ -1368,7 +1368,7 @@ impl Inner {
_ => false,
},
"deno-lint" => matches!(&d.code, Some(_)),
"deno" => diagnostics::DenoDiagnostic::is_fixable(&d.code),
"deno" => diagnostics::DenoDiagnostic::is_fixable(d),
_ => false,
},
None => false,