Skip to content

Commit

Permalink
fix our depth search for CMakeLists.txt (#3904)
Browse files Browse the repository at this point in the history
  • Loading branch information
gcampbell-msft authored Jul 15, 2024
1 parent 15ad707 commit e263ecd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Bug Fixes:
- Fix debug variables being overriden [#3806](https://github.com/microsoft/vscode-cmake-tools/issues/3806)
- Fix issue in Quick Start where a C file was generated in place of a C++ file. [#3856](https://github.com/microsoft/vscode-cmake-tools/issues/3856)
- Fix custom build tasks not showing up [#3622](https://github.com/microsoft/vscode-cmake-tools/issues/3622)
- Fix issue with CMakeLists.txt depth search [#3901](https://github.com/microsoft/vscode-cmake-tools/issues/3901)

## 1.18.43

Expand Down
4 changes: 2 additions & 2 deletions src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -976,8 +976,8 @@ export function runCommand(key: keyof ExtensionManager, ...args: any[]) {
}

export async function globForFileName(fileName: string, depth: number, cwd: string): Promise<boolean> {
let starString = "*";
for (let i = 1; i <= depth; i++) {
let starString = ".";
for (let i = 0; i <= depth; i++) {
if (await globWrapper(`${starString}/${fileName}`, cwd)) {
return true;
}
Expand Down

0 comments on commit e263ecd

Please sign in to comment.