Skip to content

Commit 502eb84

Browse files
authored
Undo bad fix for check in getVcpkgRoot (#5116)
1 parent 1c8b8f4 commit 502eb84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Extension/src/common.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,9 @@ export function getVcpkgPathDescriptorFile(): string {
172172
}
173173
}
174174

175-
let vcpkgRoot: string;
175+
let vcpkgRoot: string | undefined;
176176
export function getVcpkgRoot(): string {
177-
if (!vcpkgRoot) {
177+
if (!vcpkgRoot && vcpkgRoot !== "") {
178178
vcpkgRoot = "";
179179
// Check for vcpkg instance.
180180
if (fs.existsSync(getVcpkgPathDescriptorFile())) {

0 commit comments

Comments
 (0)