Skip to content

Commit 835233e

Browse files
rtboWebFreak001
authored andcommitted
config key d.ccdbPath for compile_commands.json
1 parent 91861e6 commit 835233e

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

package.json

+6
Original file line numberDiff line numberDiff line change
@@ -918,6 +918,12 @@
918918
"order": 1,
919919
"markdownDescription": "Array of workspace-relative (or absolute) folders to force start a project instance in."
920920
},
921+
"d.ccdbPath": {
922+
"type": "string",
923+
"scope": "resource",
924+
"default": null,
925+
"description": "Path to a Clang compilation database (aka. CCDB, aka. `compile_commands.json`) to use to lint this project"
926+
},
921927
"d.dmdPath": {
922928
"type": "string",
923929
"scope": "machine-overridable",

src/extension.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,8 @@ async function startClient(context: vscode.ExtensionContext) {
222222
vscode.workspace.createFileSystemWatcher("**/*.d"),
223223
vscode.workspace.createFileSystemWatcher("**/dub.json"),
224224
vscode.workspace.createFileSystemWatcher("**/dub.sdl"),
225-
vscode.workspace.createFileSystemWatcher("**/profilegc.log")
225+
vscode.workspace.createFileSystemWatcher("**/profilegc.log"),
226+
vscode.workspace.createFileSystemWatcher("**/compile_commands.json"),
226227
]
227228
},
228229
revealOutputChannelOn: RevealOutputChannelOn.Never,

0 commit comments

Comments
 (0)