소스 검색

Support diagnostics of type unnecessary

Sebastian Pahnke 5 년 전
부모
커밋
933c7faef2
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/languageFeatures.ts

+ 2 - 1
src/languageFeatures.ts

@@ -200,7 +200,8 @@ export class DiagnosticsAdapter extends Adapter {
 			endLineNumber,
 			endColumn,
 			message: flattenDiagnosticMessageText(diag.messageText, '\n'),
-			code: diag.code.toString()
+			code: diag.code.toString(),
+			tags: diag.reportsUnnecessary ? [monaco.MarkerTag.Unnecessary] : []
 		};
 	}