Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add config d.enableCcdbLinting #452

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@
"type": "boolean",
"scope": "resource",
"default": true,
"markdownDescription": "Enable errors and warnings (squiggly lines) while editing source code.\n\nTurning this off disables all diagnostics coming from code-d.You can toggle\n\n- `#d.enableSDLLinting#`\n- `#d.enableDubLinting#`\n- `#d.enableStaticLinting#`\n\nfor finer control instead."
"markdownDescription": "Enable errors and warnings (squiggly lines) while editing source code.\n\nTurning this off disables all diagnostics coming from code-d.You can toggle\n\n- `#d.enableSDLLinting#`\n- `#d.enableDubLinting#`\n- `\n- `#d.enableCcdbLinting#`\n- `#d.enableStaticLinting#`\n\nfor finer control instead."
},
"d.enableStaticLinting": {
"order": 1,
Expand All @@ -652,11 +652,18 @@
"default": true,
"markdownDescription": "Compile DUB projects on save to check for compile errors.\n\nThis is very similar to running `dub build` on the command line to see what actual errors occur, but does not output any executable or library.\n\nOnly has an effect if `#d.enableLinting#` is also turned on."
},
"d.enableSDLLinting": {
"d.enableCcdbLinting": {
"order": 3,
"type": "boolean",
"scope": "resource",
"default": true,
"markdownDescription": "Compile file with `compile_commands.json` on save to check for compile errors.\n\nOnly has an effect if `#d.ccdbPath` is set and `#d.enableLinting#` is also turned on."
},
"d.enableSDLLinting": {
"order": 4,
"type": "boolean",
"scope": "resource",
"default": true,
"markdownDescription": "Check `dub.sdl` files for errors and warnings.\n\nOnly has an effect if `#d.enableLinting#` is also turned on."
},
"d.lintOnFileOpen": {
Expand All @@ -673,7 +680,7 @@
"Opened files in the current project will be linted immediately. Other files will be linted when editing.",
"Opening files will not lint and only start when editing them."
],
"markdownDescription": "Performs static linting already when opening a file, and not just when editing it. Needs `#d.enableStaticLinting#` to be enabled."
"markdownDescription": "Performs static (DScanner) and/or CCDB (compile_commands.json) linting already when opening a file, and not just when editing it."
},
"dscanner.ignoredKeys": {
"type": "array",
Expand Down