diff --git a/package.json b/package.json index 44de9f4..1c5b520 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "properties": { "iwyu.compile_commands": { "type": "string", - "default": "${workspaceFolder}/compile_commands.json", + "default": "${workspaceFolder}/build/compile_commands.json", "markdownDescription": "Path to `compile_commands.json` file (supports `${workspaceFolder}` and `${workspaceRoot}`)." }, "iwyu.filter_iwyu_output": { diff --git a/src/extension.ts b/src/extension.ts index c6862a1..0b3cc77 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -287,7 +287,7 @@ class ConfigData { compileCommandsJson(): string { return this.config - .get("compile_commands", "${workspaceFolder}/XXX/compile_commands.json") + .get("compile_commands", "${workspaceFolder}/build/compile_commands.json") .replace("${workspaceRoot}", this.workspacefolder) .replace("${workspaceFolder}", this.workspacefolder); }