mirror of
https://github.com/microsoft/PowerToys
synced 2025-08-31 14:35:18 +00:00
[PT Run][VSCodeWorkspace] Adds support for VSCode portable (#19442)
* [PT Run][VSCodeWorkspace] Adds support for VSCode portable * Add PATH warning to the subheader
This commit is contained in:
@@ -125,7 +125,8 @@
|
|||||||
<comment>Used to indicate the location where something is</comment>
|
<comment>Used to indicate the location where something is</comment>
|
||||||
</data>
|
</data>
|
||||||
<data name="PluginDescription" xml:space="preserve">
|
<data name="PluginDescription" xml:space="preserve">
|
||||||
<value>Opens workspaces, remote machines (SSH or Codespaces) and containers, previously opened in VS Code.</value>
|
<value>Opens workspaces, remote machines (SSH or Codespaces) and containers, previously opened in VS Code. The VS Code instance needs to be in PATH.</value>
|
||||||
|
<comment>VS Code is the name of a product. PATH is the name of an environment variable. Don't translate it.</comment>
|
||||||
</data>
|
</data>
|
||||||
<data name="SSHRemoteMachine" xml:space="preserve">
|
<data name="SSHRemoteMachine" xml:space="preserve">
|
||||||
<value>SSH remote machine</value>
|
<value>SSH remote machine</value>
|
||||||
|
@@ -122,7 +122,9 @@ namespace Community.PowerToys.Run.Plugin.VSCodeWorkspaces.VSCodeHelper
|
|||||||
|
|
||||||
if (version != string.Empty)
|
if (version != string.Empty)
|
||||||
{
|
{
|
||||||
instance.AppData = Path.Combine(_userAppDataPath, version);
|
var portableData = Path.Join(iconPath, "data");
|
||||||
|
instance.AppData = Directory.Exists(portableData) ? Path.Join(portableData, "user-data") : Path.Combine(_userAppDataPath, version);
|
||||||
|
|
||||||
var iconVSCode = Path.Join(iconPath, $"{version}.exe");
|
var iconVSCode = Path.Join(iconPath, $"{version}.exe");
|
||||||
|
|
||||||
var bitmapIconVscode = Icon.ExtractAssociatedIcon(iconVSCode).ToBitmap();
|
var bitmapIconVscode = Icon.ExtractAssociatedIcon(iconVSCode).ToBitmap();
|
||||||
|
Reference in New Issue
Block a user