Skip to content

Commit 1a6d96a

Browse files
Support finding compile_commands.json in non root project directories (#1484)
Support finding compile_commands.json in non root project directories
1 parent 330e595 commit 1a6d96a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/utilities/workspace.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ export async function isValidWorkspaceFolder(
5858
(!disableSwiftPMIntegration && (await pathExists(folder, "Package.swift"))) ||
5959
(await pathExists(folder, "compile_commands.json")) ||
6060
(await pathExists(folder, "compile_flags.txt")) ||
61-
(await pathExists(folder, "buildServer.json"))
61+
(await pathExists(folder, "buildServer.json")) ||
62+
(await pathExists(folder, "build")) ||
63+
(await pathExists(folder, "out"))
6264
);
6365
}

0 commit comments

Comments
 (0)