Skip to content

Commit 7e5fb87

Browse files
ricardosantos9521ricarenricogior
authored
[Run][New Plugin] VSCode Workspaces/Remote machines (microsoft#9050)
* vscode workspaces plugin for Powertoys Run * reduce score * make vscode workspaces dynamic instead of string to prevent exceptions * change icons again * remove unused images and PreserveNewest during build * code refactoring * show vscode ssh remote machines * update score workspaces * vscode workspaces plugin for Powertoys Run * remove unused images and PreserveNewest during build * code refactoring * remove unused packages * get ExecutablePath from AppData and use shell to vscode process * ' instead of \" * try using ((char)34) instead of ' * add comments * translate windows paths * remove unused code * add vscodeworkspace to installer * use the new naming convention for plugins * sign VSCodeWorkspaces.dll * reimplement ssh-config parser * update spell-check * use the new naming convention for community plugins * minor adjustments * add actionKeyword { * prevent copyright * add localization * add github link * bug fix after localization * --new-window --enable-proposed-api ms-vscode-remote.remote-ssh * change order by * Update src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.Calculator/Properties/Resources.Designer.cs * Update src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.Calculator/Properties/Resources.Designer.cs * Update src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.Calculator/Properties/Resources.Designer.cs * Update src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.Calculator/Properties/Resources.Designer.cs * Update src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.Calculator/Properties/Resources.Designer.cs * Update src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.Calculator/Properties/Resources.Designer.cs * Update src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.Calculator/Properties/Resources.Designer.cs * Update src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.Calculator/Properties/Resources.Designer.cs * Update src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.Calculator/Properties/Resources.Designer.cs * Update src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.Calculator/Properties/Resources.Designer.cs * Update src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.Calculator/Properties/Resources.Designer.cs * Update src/modules/launcher/Plugins/Community.PowerToys.Run.Plugin.VSCodeWorkspaces/Properties/Resources.resx * Update src/modules/launcher/Plugins/Community.PowerToys.Run.Plugin.VSCodeWorkspaces/Properties/Resources.resx * Update src/modules/launcher/Plugins/Community.PowerToys.Run.Plugin.VSCodeWorkspaces/Properties/Resources.resx * Update src/modules/launcher/Plugins/Community.PowerToys.Run.Plugin.VSCodeWorkspaces/Properties/Resources.resx * Update src/modules/launcher/Plugins/Community.PowerToys.Run.Plugin.VSCodeWorkspaces/Properties/Resources.resx * fix powertoys run settings not working * update plugin description Co-authored-by: ricar <ricar@ASUS> Co-authored-by: Enrico Giordani <[email protected]>
1 parent f648ac4 commit 7e5fb87

File tree

25 files changed

+1153
-5
lines changed

25 files changed

+1153
-5
lines changed

.github/actions/spell-check/expect.txt

+8
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ codecvt
276276
codeofconduct
277277
codeql
278278
codereview
279+
Codespaces
279280
COINIT
280281
colorconv
281282
colorhistory
@@ -1808,6 +1809,7 @@ rgelt
18081809
Rgn
18091810
rgs
18101811
rhs
1812+
ricardosantos
18111813
Riched
18121814
Richtext
18131815
RIGHTSCROLLBAR
@@ -2005,6 +2007,7 @@ srre
20052007
srw
20062008
srwlock
20072009
ssf
2010+
ssh
20082011
sstream
20092012
STACKFRAME
20102013
stackoverflow
@@ -2224,6 +2227,7 @@ uncompilable
22242227
UNCPRIORITY
22252228
undef
22262229
UNDNAME
2230+
unescape
22272231
Ungroup
22282232
unicode
22292233
Unindent
@@ -2320,8 +2324,10 @@ VOS
23202324
VREDRAW
23212325
VSC
23222326
VSCBD
2327+
vscode
23232328
VSCROLL
23242329
vse
2330+
vsonline
23252331
vstemplate
23262332
VSTHRD
23272333
VSTS
@@ -2432,6 +2438,7 @@ wofstream
24322438
wordpad
24332439
workaround
24342440
workflow
2441+
workspaces
24352442
wostream
24362443
wox
24372444
wparam
@@ -2444,6 +2451,7 @@ WResize
24442451
wrl
24452452
wsf
24462453
wsh
2454+
wsl
24472455
wss
24482456
wstr
24492457
wstring

.pipelines/pipeline.user.windows.yml

+1
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ build:
131131
- 'modules\launcher\Plugins\Microsoft.Plugin.WindowWalker\Wox.Infrastructure.dll'
132132
- 'modules\launcher\Plugins\Microsoft.Plugin.WindowWalker\Wox.Plugin.dll'
133133
- 'modules\launcher\Plugins\Microsoft.Plugin.WindowWalker\Telemetry.dll'
134+
- 'modules\launcher\Plugins\VSCodeWorkspaces\Community.PowerToys.Run.Plugin.VSCodeWorkspaces.dll'
134135
- 'modules\launcher\Plugins\Service\Microsoft.PowerToys.Run.Plugin.Service.dll'
135136
- 'modules\launcher\Plugins\System\Microsoft.PowerToys.Run.Plugin.System.dll'
136137
- 'modules\launcher\PowerLauncher.dll'

PowerToys.sln

+7
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Plugins", "Plugins", "{4AFC
128128
EndProject
129129
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.PowerToys.Run.Plugin.Calculator", "src\modules\launcher\Plugins\Microsoft.PowerToys.Run.Plugin.Calculator\Microsoft.PowerToys.Run.Plugin.Calculator.csproj", "{59BD9891-3837-438A-958D-ADC7F91F6F7E}"
130130
EndProject
131+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Community.PowerToys.Run.Plugin.VSCodeWorkspaces", "src\modules\launcher\Plugins\Community.PowerToys.Run.Plugin.VSCodeWorkspaces\Community.PowerToys.Run.Plugin.VSCodeWorkspaces.csproj", "{4D971245-7A70-41D5-BAA0-DDB5684CAF51}"
132+
EndProject
131133
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Plugin.WindowWalker", "src\modules\launcher\Plugins\Microsoft.Plugin.WindowWalker\Microsoft.Plugin.WindowWalker.csproj", "{74F1B9ED-F59C-4FE7-B473-7B453E30837E}"
132134
EndProject
133135
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Plugin.Program", "src\modules\launcher\Plugins\Microsoft.Plugin.Program\Microsoft.Plugin.Program.csproj", "{FDB3555B-58EF-4AE6-B5F1-904719637AB4}"
@@ -418,6 +420,10 @@ Global
418420
{59BD9891-3837-438A-958D-ADC7F91F6F7E}.Debug|x64.Build.0 = Debug|x64
419421
{59BD9891-3837-438A-958D-ADC7F91F6F7E}.Release|x64.ActiveCfg = Release|x64
420422
{59BD9891-3837-438A-958D-ADC7F91F6F7E}.Release|x64.Build.0 = Release|x64
423+
{4D971245-7A70-41D5-BAA0-DDB5684CAF51}.Debug|x64.ActiveCfg = Debug|x64
424+
{4D971245-7A70-41D5-BAA0-DDB5684CAF51}.Debug|x64.Build.0 = Debug|x64
425+
{4D971245-7A70-41D5-BAA0-DDB5684CAF51}.Release|x64.ActiveCfg = Release|x64
426+
{4D971245-7A70-41D5-BAA0-DDB5684CAF51}.Release|x64.Build.0 = Release|x64
421427
{74F1B9ED-F59C-4FE7-B473-7B453E30837E}.Debug|x64.ActiveCfg = Debug|x64
422428
{74F1B9ED-F59C-4FE7-B473-7B453E30837E}.Debug|x64.Build.0 = Debug|x64
423429
{74F1B9ED-F59C-4FE7-B473-7B453E30837E}.Release|x64.ActiveCfg = Release|x64
@@ -665,6 +671,7 @@ Global
665671
{FF742965-9A80-41A5-B042-D6C7D3A21708} = {C140A3EF-6DBF-4084-9D4C-4EB5A99FEE68}
666672
{4AFC9975-2456-4C70-94A4-84073C1CED93} = {C140A3EF-6DBF-4084-9D4C-4EB5A99FEE68}
667673
{59BD9891-3837-438A-958D-ADC7F91F6F7E} = {4AFC9975-2456-4C70-94A4-84073C1CED93}
674+
{4D971245-7A70-41D5-BAA0-DDB5684CAF51} = {4AFC9975-2456-4C70-94A4-84073C1CED93}
668675
{74F1B9ED-F59C-4FE7-B473-7B453E30837E} = {4AFC9975-2456-4C70-94A4-84073C1CED93}
669676
{FDB3555B-58EF-4AE6-B5F1-904719637AB4} = {4AFC9975-2456-4C70-94A4-84073C1CED93}
670677
{C21BFF9C-2C99-4B5F-B7C9-A5E6DDDB37B0} = {4AFC9975-2456-4C70-94A4-84073C1CED93}

installer/PowerToysSetup/Product.wxs

+22-2
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,10 @@
245245
<Directory Id="UriImagesFolder" Name="Images" />
246246
<Directory Id="UriLanguagesFolder" Name="Languages" />
247247
</Directory>
248+
<Directory Id="VSCodeWorkspacePluginFolder" Name="VSCodeWorkspace">
249+
<Directory Id="VSCodeWorkspaceImagesFolder" Name="Images" />
250+
<Directory Id="VSCodeWorkspaceLanguagesFolder" Name="Languages" />
251+
</Directory>
248252
<Directory Id="WindowWalkerPluginFolder" Name="Microsoft.Plugin.WindowWalker">
249253
<Directory Id="WindowWalkerImagesFolder" Name="Images" />
250254
<Directory Id="WindowWalkerLanguagesFolder" Name="Languages" />
@@ -818,7 +822,7 @@
818822
<Fragment>
819823
<!-- Resource directories should be added only if the installer is built on the build farm -->
820824
<?ifdef env.IsPipeline?>
821-
<?foreach ParentDirectory in LauncherInstallFolder;FancyZonesInstallFolder;ImageResizerInstallFolder;ColorPickerInstallFolder;FileExplorerPreviewInstallFolder;CalculatorPluginFolder;FolderPluginFolder;ProgramPluginFolder;ShellPluginFolder;IndexerPluginFolder;UriPluginFolder;WindowWalkerPluginFolder;RegistryPluginFolder;ServicePluginFolder?>
825+
<?foreach ParentDirectory in LauncherInstallFolder;FancyZonesInstallFolder;ImageResizerInstallFolder;ColorPickerInstallFolder;FileExplorerPreviewInstallFolder;CalculatorPluginFolder;FolderPluginFolder;ProgramPluginFolder;ShellPluginFolder;IndexerPluginFolder;UriPluginFolder;WindowWalkerPluginFolder;RegistryPluginFolder;VSCodeWorkspacePluginFolder;ServicePluginFolder?>
822826
<DirectoryRef Id="$(var.ParentDirectory)">
823827
<!-- Resource file directories -->
824828
<?foreach Language in $(var.LocLanguageList)?>
@@ -894,6 +898,9 @@
894898
<Component Id="Launcher_Uri_$(var.IdSafeLanguage)_Component" Directory="Resource$(var.IdSafeLanguage)UriPluginFolder">
895899
<File Id="Launcher_Uri_$(var.IdSafeLanguage)_File" Source="$(var.BinX64Dir)modules\launcher\Plugins\Microsoft.Plugin.Uri\$(var.Language)\Microsoft.Plugin.Uri.resources.dll" />
896900
</Component>
901+
<Component Id="Launcher_VSCodeWorkspaces_$(var.IdSafeLanguage)_Component" Directory="Resource$(var.IdSafeLanguage)VSCodeWorkspacesPluginFolder">
902+
<File Id="Launcher_VSCodeWorkspaces_$(var.IdSafeLanguage)_File" Source="$(var.BinX64Dir)modules\launcher\Plugins\VSCodeWorkspaces\$(var.Language)\Community.PowerToys.Run.Plugin.VSCodeWorkspaces.resources.dll" />
903+
</Component>
897904
<Component Id="Launcher_WindowWalker_$(var.IdSafeLanguage)_Component" Directory="Resource$(var.IdSafeLanguage)WindowWalkerPluginFolder">
898905
<File Id="Launcher_WindowWalker_$(var.IdSafeLanguage)_File" Source="$(var.BinX64Dir)modules\launcher\Plugins\Microsoft.Plugin.WindowWalker\$(var.Language)\Microsoft.Plugin.WindowWalker.resources.dll" />
899906
</Component>
@@ -1006,7 +1013,20 @@
10061013
<File Id="UriLightIcon" Source="$(var.BinX64Dir)modules\launcher\Plugins\Microsoft.Plugin.Uri\Images\Uri.light.png" />
10071014
</Component>
10081015

1009-
<!-- WindowWalker Plugin -->
1016+
<!-- VSCodeWorkspaces Plugin -->
1017+
<Component Id="VSCodeWorkspacesComponent" Directory="VSCodeWorkspacePluginFolder" Guid="78363DBD-7E38-4D5F-8987-9963DF609B94">
1018+
<File Id="VSCodeWorkspaceFolder_deps" Source="$(var.BinX64Dir)modules\launcher\Plugins\VSCodeWorkspaces\Community.PowerToys.Run.Plugin.VSCodeWorkspaces.deps.json" />
1019+
<?foreach File in plugin.json;Community.PowerToys.Run.Plugin.VSCodeWorkspaces.dll?>
1020+
<File Id="VSCodeWorkspaces_$(var.File)" Source="$(var.BinX64Dir)modules\launcher\Plugins\VSCodeWorkspaces\$(var.File)" />
1021+
<?endforeach?>
1022+
</Component>
1023+
<Component Id="VSCodeWorkspacesImagesComponent" Directory="VSCodeWorkspaceImagesFolder" Guid="6F3C0CF1-7024-4333-BFA1-850D340AEE69">
1024+
<File Id="VSCodeWorkspacePluginIcon" Source="$(var.BinX64Dir)modules\launcher\Plugins\VSCodeWorkspaces\Images\vscode_plugin.png" />
1025+
<File Id="VSCodeWorkspaceFolder" Source="$(var.BinX64Dir)modules\launcher\Plugins\VSCodeWorkspaces\Images\folder.png" />
1026+
<File Id="VSCodeWorkspaceRemote" Source="$(var.BinX64Dir)modules\launcher\Plugins\VSCodeWorkspaces\Images\monitor.png" />
1027+
</Component>
1028+
1029+
<!-- WindowWalker Plugin -->
10101030
<Component Id="WindowWalkerComponent" Directory="WindowWalkerPluginFolder" Guid="EB1391C9-B701-421F-80FC-ABB2FEDFAD19">
10111031
<?foreach File in plugin.json;Microsoft.Plugin.WindowWalker.deps.json;Microsoft.Plugin.WindowWalker.dll;ManagedTelemetry.dll?>
10121032
<File Id="WindowWalker_$(var.File)" Source="$(var.BinX64Dir)modules\launcher\Plugins\Microsoft.Plugin.WindowWalker\$(var.File)" />
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
2+
<Import Project="..\..\..\..\Version.props" />
3+
4+
<PropertyGroup>
5+
<TargetFramework>netcoreapp3.1</TargetFramework>
6+
<ProjectGuid>{4D971245-7A70-41D5-BAA0-DDB5684CAF51}</ProjectGuid>
7+
<AppDesignerFolder>Properties</AppDesignerFolder>
8+
<RootNamespace>Community.PowerToys.Run.Plugin.VSCodeWorkspaces</RootNamespace>
9+
<AssemblyName>Community.PowerToys.Run.Plugin.VSCodeWorkspaces</AssemblyName>
10+
<useWPF>true</useWPF>
11+
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
12+
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
13+
<Platforms>x64</Platforms>
14+
</PropertyGroup>
15+
16+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
17+
<DebugSymbols>true</DebugSymbols>
18+
<OutputPath>..\..\..\..\..\x64\Debug\modules\launcher\Plugins\VSCodeWorkspaces\</OutputPath>
19+
<DefineConstants>DEBUG;TRACE</DefineConstants>
20+
<DebugType>full</DebugType>
21+
<PlatformTarget>x64</PlatformTarget>
22+
<LangVersion>7.3</LangVersion>
23+
<ErrorReport>prompt</ErrorReport>
24+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
25+
<WarningLevel>4</WarningLevel>
26+
<Optimize>false</Optimize>
27+
</PropertyGroup>
28+
29+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
30+
<OutputPath>..\..\..\..\..\x64\Release\modules\launcher\Plugins\VSCodeWorkspaces\</OutputPath>
31+
<DefineConstants>TRACE</DefineConstants>
32+
<Optimize>true</Optimize>
33+
<DebugType>pdbonly</DebugType>
34+
<PlatformTarget>x64</PlatformTarget>
35+
<LangVersion>7.3</LangVersion>
36+
<ErrorReport>prompt</ErrorReport>
37+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
38+
<WarningLevel>4</WarningLevel>
39+
</PropertyGroup>
40+
41+
<ItemGroup>
42+
<None Include="plugin.json">
43+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
44+
</None>
45+
</ItemGroup>
46+
47+
<ItemGroup>
48+
<ProjectReference Include="..\..\Wox.Infrastructure\Wox.Infrastructure.csproj" />
49+
<ProjectReference Include="..\..\Wox.Plugin\Wox.Plugin.csproj" />
50+
</ItemGroup>
51+
52+
<ItemGroup>
53+
<PackageReference Include="JetBrains.Annotations" Version="2020.1.0" />
54+
<PackageReference Include="System.Runtime" Version="4.3.1" />
55+
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
56+
</ItemGroup>
57+
58+
<ItemGroup>
59+
<Reference Include="Windows.Foundation.UniversalApiContract">
60+
<HintPath>C:\Program Files (x86)\Windows Kits\10\References\10.0.18362.0\Windows.Foundation.UniversalApiContract\8.0.0.0\Windows.Foundation.UniversalApiContract.winmd</HintPath>
61+
</Reference>
62+
</ItemGroup>
63+
64+
<ItemGroup>
65+
<Compile Update="Properties\Resources.Designer.cs">
66+
<DependentUpon>Resources.resx</DependentUpon>
67+
<DesignTime>True</DesignTime>
68+
<AutoGen>True</AutoGen>
69+
</Compile>
70+
</ItemGroup>
71+
72+
<ItemGroup>
73+
<EmbeddedResource Update="Properties\Resources.resx">
74+
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
75+
<Generator>ResXFileCodeGenerator</Generator>
76+
</EmbeddedResource>
77+
</ItemGroup>
78+
79+
<ItemGroup>
80+
<None Update="Images\folder.png">
81+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
82+
</None>
83+
<None Update="Images\monitor.png">
84+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
85+
</None>
86+
<None Update="Images\vscode_plugin.png">
87+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
88+
</None>
89+
</ItemGroup>
90+
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"Projects": [
3+
{
4+
"LanguageSet": "Azure_Languages",
5+
"LocItems": [
6+
{
7+
"SourceFile": "src\\modules\\launcher\\Plugins\\VSCodeWorkspaces\\Properties\\Resources.resx",
8+
"CopyOption": "LangIDOnName",
9+
"OutputPath": "src\\modules\\launcher\\Plugins\\VSCodeWorkspaces\\Properties"
10+
}
11+
]
12+
}
13+
]
14+
}

0 commit comments

Comments
 (0)