-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Enable setting the VS dev environment without running from Dev Command Prompt #13571
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
622d67b
12f31c1
afbecf9
aefe4cc
ff1a8fe
af6374d
cf58757
a6dde1b
8075e84
facd749
76c577e
f2b66ad
6c97412
540537a
bf9bb26
80c9d8e
6c43354
5281786
5c03666
9013124
98f430e
b68f025
a79eef9
614795b
4482734
bebdaeb
14ffb78
d8f7b19
63be00c
c5a1fe5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3378,6 +3378,12 @@ | |
"default": "default", | ||
"markdownDescription": "%c_cpp.configuration.copilotHover.markdownDescription%", | ||
"scope": "window" | ||
}, | ||
"C_Cpp.persistVsDeveloperEnvironment": { | ||
bobbrow marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"type": "boolean", | ||
"default": true, | ||
"markdownDescription": "%c_cpp.configuration.persistVsDeveloperEnvironment.description%", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. markdownDescription should be description (unless you intended to add some markdown, which I don't see). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My comment below has a suggestion to mention "If |
||
"scope": "window" | ||
} | ||
} | ||
} | ||
|
@@ -3543,6 +3549,16 @@ | |
"category": "C/C++", | ||
"icon": "$(run)" | ||
}, | ||
{ | ||
"command": "C_Cpp.SetVsDeveloperEnvironment", | ||
"title": "%c_cpp.command.SetVsDeveloperEnvironment.title%", | ||
"category": "C/C++" | ||
}, | ||
{ | ||
"command": "C_Cpp.ClearVsDeveloperEnvironment", | ||
"title": "%c_cpp.command.ClearVsDeveloperEnvironment.title%", | ||
"category": "C/C++" | ||
}, | ||
{ | ||
"command": "C_Cpp.AddDebugConfiguration", | ||
"title": "%c_cpp.command.AddDebugConfiguration.title%", | ||
|
@@ -5989,6 +6005,14 @@ | |
"command": "C_Cpp.BuildAndRunFile", | ||
"when": "editorLangId =~ /^(c|(cuda-)?cpp)$/ && config.C_Cpp.debugShortcut && cpptools.buildAndDebug.isSourceFile" | ||
}, | ||
{ | ||
"command": "C_Cpp.SetVsDeveloperEnvironment", | ||
"when": "workspacePlatform == windows" | ||
}, | ||
{ | ||
"command": "C_Cpp.ClearVsDeveloperEnvironment", | ||
"when": "workspacePlatform == windows" | ||
}, | ||
{ | ||
"command": "C_Cpp.AddDebugConfiguration", | ||
"when": "config.C_Cpp.debugShortcut && cpptools.buildAndDebug.isFolderOpen" | ||
|
@@ -6613,6 +6637,8 @@ | |
"node-fetch": "^2.7.0", | ||
"node-loader": "^2.0.0", | ||
"node-stream-zip": "^1.15.0", | ||
"node-vcvarsall": "^1.1.0", | ||
"node-vswhere": "^1.0.2", | ||
"plist": "^3.1.0", | ||
"posix-getopt": "^1.2.1", | ||
"shell-quote": "^1.8.1", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,8 @@ | |
"c_cpp.command.RemoveAllCodeAnalysisProblems.title": "Clear All Code Analysis Problems", | ||
"c_cpp.command.BuildAndDebugFile.title": "Debug C/C++ File", | ||
"c_cpp.command.BuildAndRunFile.title": "Run C/C++ File", | ||
"c_cpp.command.SetVsDeveloperEnvironment.title": "Set Visual Studio Developer Environment", | ||
"c_cpp.command.ClearVsDeveloperEnvironment.title": "Clear Visual Studio Developer Environment", | ||
"c_cpp.command.AddDebugConfiguration.title": "Add Debug Configuration", | ||
"c_cpp.command.GenerateDoxygenComment.title": "Generate Doxygen Comment", | ||
"c_cpp.command.addSshTarget.title": "Add SSH target", | ||
|
@@ -843,6 +845,7 @@ | |
] | ||
}, | ||
"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.", | ||
"c_cpp.configuration.persistVsDeveloperEnvironment.description": "Remember the last used Visual Studio developer environment for the current workspace. This setting is only applicable for Windows.", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would using this be preferable? "c_cpp.configuration.persistVsDeveloperEnvironment.markdownDescription": "If |
||
"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).", | ||
"c_cpp.debuggers.pipeTransport.default.pipeProgram": "enter the fully qualified path for the pipe program name, for example '/usr/bin/ssh'.", | ||
"c_cpp.debuggers.pipeTransport.default.debuggerPath": "The full path to the debugger on the target machine, for example /usr/bin/gdb.", | ||
|
@@ -1031,9 +1034,9 @@ | |
"c_cpp.debuggers.logging.category.warning.description": "Logs that highlight an abnormal or unexpected event in the application flow, but do not otherwise cause the application execution to stop.", | ||
"c_cpp.debuggers.logging.category.error.description": "Logs that highlight when the current flow of execution is stopped due to a failure. These should indicate a failure in the current activity, not an application-wide failure.", | ||
"c_cpp.debuggers.logging.category.none.description": "Not used for writing log messages. Specifies that a logging category should not write any messages.", | ||
"c_cpp.walkthrough.title": "Get Started with C++ Development", | ||
"c_cpp.walkthrough.title": "Get started with C++ development", | ||
"c_cpp.walkthrough.description": "Dive into VS Code's rich C++ development experience.", | ||
"c_cpp.walkthrough.set.up.title": "Set up your C++ Environment", | ||
"c_cpp.walkthrough.set.up.title": "Set up your C++ environment", | ||
"c_cpp.walkthrough.activating.description": "Activating the C++ extension to determine whether your C++ Environment has been set up.\nActivating Extension...", | ||
"c_cpp.walkthrough.no.compilers.windows.description": "We could not find a C++ compiler on your machine, which is required to use the C++ extension. Follow the instructions on the right to install one, then click “Find my new Compiler” below.\n[Find my new Compiler](command:C_Cpp.RescanCompilers?%22walkthrough%22)", | ||
"c_cpp.walkthrough.no.compilers.description": { | ||
|
@@ -1053,15 +1056,15 @@ | |
}, | ||
"c_cpp.walkthrough.create.cpp.file.altText": "Open a C++ file or a folder with a C++ project.", | ||
"c_cpp.walkthrough.command.prompt.title": { | ||
"message": "Launch from the Developer Command Prompt for VS", | ||
"message": "Apply the Visual Studio developer environment", | ||
"comment": [ | ||
"{Locked=\"Developer Command Prompt for VS\"}" | ||
"{Locked=\"Visual Studio\"}" | ||
] | ||
}, | ||
"c_cpp.walkthrough.command.prompt.description": { | ||
"message": "When using the Microsoft Visual Studio C++ compiler, the C++ extension requires you to launch VS Code from the Developer Command Prompt for VS. Follow the instructions on the right to relaunch.\n[Reload Window](command:workbench.action.reloadWindow)", | ||
"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.SetVsDeveloperEnvironment?%22walkthrough%22)", | ||
"comment": [ | ||
"{Locked=\"Visual Studio\"} {Locked=\"C++\"} {Locked=\"VS Code\"} {Locked=\"Developer Command Prompt for VS\"} {Locked=\"\n[\"} {Locked=\"](command:workbench.action.reloadWindow)\"}" | ||
"{Locked=\"Visual Studio\"} {Locked=\"C++\"} {Locked=\"\\\n[\"} {Locked=\"](command:C_Cpp.SetVsDeveloperEnvironment?%22walkthrough%22)\"}" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
should be
|
||
] | ||
}, | ||
"c_cpp.walkthrough.run.debug.title": "Run and debug your C++ file", | ||
|
Uh oh!
There was an error while loading. Please reload this page.