From 0ef78954f9a6fba8e7d42f9f35250eb35b8a86b5 Mon Sep 17 00:00:00 2001 From: Remi Thebault Date: Tue, 23 May 2023 15:25:44 +0200 Subject: [PATCH 1/2] add config d.enableCcdbLinting --- package.json | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ffa193e..d9f860b 100644 --- a/package.json +++ b/package.json @@ -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, @@ -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": { From 7960e5ac9332634c6d742d50047a32ae6a267915 Mon Sep 17 00:00:00 2001 From: Remi Thebault Date: Mon, 5 Jun 2023 21:44:50 +0200 Subject: [PATCH 2/2] update settings description for CCDB --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d9f860b..8d01cc5 100644 --- a/package.json +++ b/package.json @@ -680,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",