mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-21 08:29:01 +08: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:
parent
b1ad9160cc
commit
65f457e9d1
@ -125,7 +125,8 @@
|
||||
<comment>Used to indicate the location where something is</comment>
|
||||
</data>
|
||||
<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 name="SSHRemoteMachine" xml:space="preserve">
|
||||
<value>SSH remote machine</value>
|
||||
|
@ -122,7 +122,9 @@ namespace Community.PowerToys.Run.Plugin.VSCodeWorkspaces.VSCodeHelper
|
||||
|
||||
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 bitmapIconVscode = Icon.ExtractAssociatedIcon(iconVSCode).ToBitmap();
|
||||
|
Loading…
Reference in New Issue
Block a user