diff --git a/CHANGELOG.md b/CHANGELOG.md index 353e9a5..1ed7316 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## next +- Also check for root `meson.build` files which are symlinks + ## 1.19.1 - Fix extension not calling Meson correctly in some circumstances like Cygwin diff --git a/src/utils.ts b/src/utils.ts index 7620a0e..d8159fe 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -198,7 +198,7 @@ export async function mesonRootDirs(): Promise { let hasMesonFile: boolean = false; let subdirs: vscode.Uri[] = []; for (const [name, type] of await vscode.workspace.fs.readDirectory(d)) { - if (type === vscode.FileType.File && name == "meson.build") { + if ((type === vscode.FileType.File || type === vscode.FileType.SymbolicLink) && name == "meson.build") { rootDirs.push(d.fsPath); hasMesonFile = true; break;