You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"c_cpp.configuration.debugShortcut.description": "Show the \"Run and Debug\" play button and \"Add Debug Configuration\" gear in the editor title bar for C++ files.",
848
-
"c_cpp.configuration.persistDevEnvironment.markdownDescription": "Remember the last used Visual Studio developer environment for the current workspace. This setting is only applicable for Windows.",
848
+
"c_cpp.configuration.persistVSDeveloperEnvironment.markdownDescription": "Remember the last used Visual Studio developer environment for the current workspace. This setting is only applicable for Windows.",
849
849
"c_cpp.debuggers.pipeTransport.description": "When present, this tells the debugger to connect to a remote computer using another executable as a pipe that will relay standard input/output between VS Code and the MI-enabled debugger backend executable (such as gdb).",
850
850
"c_cpp.debuggers.pipeTransport.default.pipeProgram": "enter the fully qualified path for the pipe program name, for example '/usr/bin/ssh'.",
851
851
"c_cpp.debuggers.pipeTransport.default.debuggerPath": "The full path to the debugger on the target machine, for example /usr/bin/gdb.",
@@ -1034,9 +1034,9 @@
1034
1034
]
1035
1035
},
1036
1036
"c_cpp.walkthrough.command.prompt.description": {
1037
-
"message": "When using the Microsoft Visual Studio C++ compiler, the Visual Studio Developer Environment must be present.\n\nFollow the instructions on the right to relaunch or click the button below.\n[Set Developer Environment](command:C_Cpp.SetDevEnvironment?%22walkthrough%22)",
1037
+
"message": "When using the Microsoft Visual Studio C++ compiler, the Visual Studio Developer Environment must be present.\n\nFollow the instructions on the right to relaunch or click the button below.\n[Set Developer Environment](command:C_Cpp.SetVSDevEnvironment?%22walkthrough%22)",
Copy file name to clipboardExpand all lines: Extension/src/Debugger/configurationProvider.ts
+28-22Lines changed: 28 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -586,31 +586,37 @@ export class DebugConfigurationProvider implements vscode.DebugConfigurationProv
586
586
* @returns `true` if the Developer Environment is not available and an error was shown to the user, `false` if the Developer Environment is available or the user chose to apply it.
// Ignore the error, the user will be prompted to apply the environment manually.
608
607
}
609
-
voidvscode.window.showErrorMessage(
610
-
localize('dev.env.not.applied','The Visual Studio Developer Environment was not applied. Please try again or run VS Code from the Developer Command Prompt for VS.'));
608
+
}
609
+
if(response===cancel){
610
+
// A message was already shown, so exit early noting that the environment is not available. We don't need to show another error message.
611
611
returntrue;
612
612
}
613
-
returnfalse;
613
+
614
+
if(util.hasMsvcEnvironment()){
615
+
returnfalse;
616
+
}
617
+
voidvscode.window.showErrorMessage(
618
+
localize('dev.env.not.applied','The Visual Studio Developer Environment was not applied. Please try again or run VS Code from the Developer Command Prompt for VS.'));
// Returns the value of a setting as a string with proper type validation and checks for valid enum values while returning an undefined value if necessary.
equal(false,true,"Should not be able to set developer environment on non-Windows platform.");
27
28
}
28
29
catch(e){
29
-
equal((easError).message,'This command is only available on Windows',"Should throw error when trying to set developer environment on non-Windows platform.");
30
+
equal((easError).message,errorOperationCancelled,"Should throw error when trying to set developer environment on non-Windows platform.");
30
31
}
31
32
equal(util.hasMsvcEnvironment(),false,"MSVC environment should not be set on non-Windows platforms.");
0 commit comments