Skip to content

Commit a0f3391

Browse files
Yanpasjacobdufault
authored andcommitted
diagnostics configuration extended
1 parent 27947e7 commit a0f3391

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,16 @@
769769
"default": true,
770770
"description": "If true, document links (an underline) will be rendered on includes. Goto definition (control click) will still work on includes even if this is false."
771771
},
772+
"cquery.diagnostics.blacklist": {
773+
"type": "array",
774+
"default": [],
775+
"description": "Files that match these patterns won't be displayed in diagnostics view."
776+
},
777+
"cquery.diagnostics.whitelist": {
778+
"type": "array",
779+
"default": [],
780+
"description": "Files that match these patterns will be displayed in diagnostics view."
781+
},
772782
"cquery.diagnostics.onParse": {
773783
"type": "boolean",
774784
"default": true,

src/extension.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ function getClientConfig(context: ExtensionContext) {
127127
['completion.includeWhitelist', 'completion.include.whitelist'],
128128
['completion.includeBlacklist', 'completion.include.blacklist'],
129129
['showDocumentLinksOnIncludes', 'showDocumentLinksOnIncludes'],
130+
['diagnostics.blacklist', 'diagnostics.blacklist'],
131+
['diagnostics.whitelist', 'diagnostics.whitelist'],
130132
['diagnostics.onParse', 'diagnostics.onParse'],
131133
['diagnostics.onType', 'diagnostics.onType'],
132134
['codeLens.localVariables', 'codeLens.onLocalVariables'],

0 commit comments

Comments
 (0)