How can I get all the launch targets from a workspace without duplicates? #2877
Replies: 2 comments
-
|
You can find links to some release downloads at the top of a version's release notes: Download links in release notes If you need a type of installation not listed there, you can manually download via the following URLs: Expand table Bash https://update.code.visualstudio.com/1.83.1/linux-deb-arm64/stable Windows 32-bit versions Expand table To install the Insiders build, go to the Insiders download page. How do I opt out of VS Code auto-updates? To modify the update mode, go to File > Preferences > Settings, search for update mode and change the setting to none. If you use the JSON editor for your settings, add the following line: JSON You can install a previous release of VS Code by uninstalling your current version and then installing the download provided at the top of a specific release notes page. Note: On Linux: If the VS Code repository was installed correctly then your system package manager should handle auto-updating in the same way as other packages on the system. See Installing VS Code on Linux. Opt out of extension updates If you use the JSON editor to modify your settings, add the following line: JSON Where can I find the Visual Studio Code icons? You can download the official Visual Studio Code icons and read the usage guidelines at Icons and names usage guidelines. What is a VS Code "workspace"? You can learn more in the What is a VS Code "workspace"? article. Problems and issues You may also see the [Unsupported] message if VS Code files have been mistakenly quarantined or removed by anti-virus software (see issue #94858 for an example). Check your anti-virus software settings and reinstall VS Code to repair the missing files. Resolving shell environment fails However, when launching from your platform's user interface (for example, the VS Code icon in the macOS dock), you normally are not running in the context of a shell and you don't have access to those environment settings. This means that depending on how you launch VS Code, you may not have the same environment. To work around this, when launched via a UI gesture, VS Code will start a small process to run (or "resolve") the shell environment defined in your, .bashrc, .zshrc, or PowerShell profile files. If, after a configurable timeout (via application.shellEnvironmentResolutionTimeout, defaults to 10 seconds), the shell environment has still not been resolved or resolving failed for any other reason, VS Code will abort the "resolve" process, launch without your shell's environment settings, and you will see an error like the following: Shell environment startup error If the error message indicates that resolving your shell environment took too long, the steps below can help you investigate what might be causing slowness. You can also increase the timeout by configuring the application.shellEnvironmentResolutionTimeout setting. But keep in mind that increasing this value means you will have to wait longer to use some of the features in VS Code, such as extensions. If you see other errors, please create an issue to get help. Investigate slow shell initialization Open your shell's startup file (for example, in VS Code by typing ~/.bashrc or ~/.zshrc in Quick Open (Ctrl+P)). Launch VS Code from a terminal Typing code from an open terminal will launch VS Code with your last workspace. Bash code --disable-gpu Bash rm -r ~/.config/Code/GPUCache JSON Technical support channels If you'd like to contact a professional support engineer, you can open a ticket with the Microsoft assisted support team. Was this documentation helpful? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
If I have a "launch {}" section in my workspace file, and a .vscode/launch.json file in the folder, the "Run and Debug" tab lists all the launch targets from both sources in the pulldown, and indicates where each one came from (the workspace or the folder).
I'm not sure how to recreate a list like this for an extension.
I want to be able to correctly handle:
This works for (3), but if I remove .vscode/launch.json , the first call also returns the 2 launch configurations from the workspace file, so I end up with duplicates, and I can't tell where each one came from (the workspace or the folder) to be able to deduplicate them in the case where they may have the same name.
Any ideas, please?
Beta Was this translation helpful? Give feedback.
All reactions