From da55c11b9fa8346591010d01bccfa8fc2d948483 Mon Sep 17 00:00:00 2001 From: chemzqm Date: Sat, 20 Jul 2019 03:08:11 +0800 Subject: [PATCH] fix showUnused not work --- src/server/features/diagnostics.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/features/diagnostics.ts b/src/server/features/diagnostics.ts index ad08046..57c63ca 100644 --- a/src/server/features/diagnostics.ts +++ b/src/server/features/diagnostics.ts @@ -145,7 +145,7 @@ export class DiagnosticsManager { .filter(x => { if (!enabled) { // Still show unused - return x.tags && x.tags.includes(1) + return x.code == 6133 } return enabled })