From d74dab725a450837a671f52d7283a09db37eb42a Mon Sep 17 00:00:00 2001 From: Leonard Hecker Date: Thu, 25 May 2023 18:16:29 +0200 Subject: [PATCH] Fix VS profile command generation --- src/cascadia/TerminalSettingsModel/VsDevCmdGenerator.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/cascadia/TerminalSettingsModel/VsDevCmdGenerator.cpp b/src/cascadia/TerminalSettingsModel/VsDevCmdGenerator.cpp index f4e5dd0298a..19d6f50cc88 100644 --- a/src/cascadia/TerminalSettingsModel/VsDevCmdGenerator.cpp +++ b/src/cascadia/TerminalSettingsModel/VsDevCmdGenerator.cpp @@ -44,11 +44,12 @@ std::wstring VsDevCmdGenerator::GetProfileCommandLine(const VsSetupConfiguration commandLine.append(GetDevCmdScriptPath(instance)); // The "-startdir" parameter will prevent "vsdevcmd" from automatically // setting the shell path so the path in the profile will be used instead. - commandLine.append(LR"(" -startdir=none)"); #if defined(_M_ARM64) - commandLine.append(LR"(" -arch=arm64 -host_arch=x64)"); + commandLine.append(LR"(" -startdir=none -arch=arm64 -host_arch=x64)"); #elif defined(_M_AMD64) - commandLine.append(LR"(" -arch=x64 -host_arch=x64)"); + commandLine.append(LR"(" -startdir=none -arch=x64 -host_arch=x64)"); +#else + commandLine.append(LR"(" -startdir=none)"); #endif return commandLine; }