1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 23:34:47 -05:00

fix(lsp): complete list of unused diagnostics (#9274)

This commit is contained in:
Kitson Kelly 2021-01-26 21:55:59 +11:00 committed by GitHub
parent 2828690fc7
commit 8b6893438a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -218,7 +218,7 @@ fn ts_json_to_diagnostics(
),
tags: match d.code {
// These are codes that indicate the variable is unused.
6133 | 6192 | 6196 => {
2695 | 6133 | 6138 | 6192 | 6196 | 6198 | 6199 | 7027 | 7028 => {
Some(vec![lsp_types::DiagnosticTag::Unnecessary])
}
_ => None,