Skip to content

Commit

Permalink
config key d.ccdbPath for compile_commands.json
Browse files Browse the repository at this point in the history
  • Loading branch information
rtbo authored and WebFreak001 committed Jan 21, 2023
1 parent 91861e6 commit 6c123f7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -918,6 +918,12 @@
"order": 1,
"markdownDescription": "Array of workspace-relative (or absolute) folders to force start a project instance in."
},
"d.ccdbPath": {
"type": "string",
"scope": "resource",
"default": null,
"description": "Path to a Clang compilation database (aka. CCDB, aka. `compile_commands.json`) to use to lint this project"
},
"d.dmdPath": {
"type": "string",
"scope": "machine-overridable",
Expand Down
3 changes: 2 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@ async function startClient(context: vscode.ExtensionContext) {
vscode.workspace.createFileSystemWatcher("**/*.d"),
vscode.workspace.createFileSystemWatcher("**/dub.json"),
vscode.workspace.createFileSystemWatcher("**/dub.sdl"),
vscode.workspace.createFileSystemWatcher("**/profilegc.log")
vscode.workspace.createFileSystemWatcher("**/profilegc.log"),
vscode.workspace.createFileSystemWatcher("**/compile_commands.json"),
]
},
revealOutputChannelOn: RevealOutputChannelOn.Never,
Expand Down

0 comments on commit 6c123f7

Please sign in to comment.