From 43c57593119fb6e586f9a5041acdb98ccfa18983 Mon Sep 17 00:00:00 2001 From: Greg Thornton Date: Sun, 26 May 2024 06:23:21 -0500 Subject: [PATCH 1/2] Update default compile_commands.json path Signed-off-by: Greg Thornton --- src/extension.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } From 2af493718ffe4ca00766e3ed88d8d5d2b33844f1 Mon Sep 17 00:00:00 2001 From: Greg Thornton Date: Sun, 26 May 2024 07:05:32 -0500 Subject: [PATCH 2/2] Update default compile_commands.json path in package.json Signed-off-by: Greg Thornton --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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": {