From 502eb8411691f07fa5e618ad83ae7a37dc638cdf Mon Sep 17 00:00:00 2001 From: Colen Garoutte-Carson <49173979+Colengms@users.noreply.github.com> Date: Fri, 13 Mar 2020 16:58:26 -0700 Subject: [PATCH] Undo bad fix for check in getVcpkgRoot (#5116) --- Extension/src/common.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Extension/src/common.ts b/Extension/src/common.ts index 0095ce9348..d5e53ed39b 100644 --- a/Extension/src/common.ts +++ b/Extension/src/common.ts @@ -172,9 +172,9 @@ export function getVcpkgPathDescriptorFile(): string { } } -let vcpkgRoot: string; +let vcpkgRoot: string | undefined; export function getVcpkgRoot(): string { - if (!vcpkgRoot) { + if (!vcpkgRoot && vcpkgRoot !== "") { vcpkgRoot = ""; // Check for vcpkg instance. if (fs.existsSync(getVcpkgPathDescriptorFile())) {