mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 10:46:33 +02:00
[PT Run][VSCode] Add DevContainer workspaces to search results (#14313)
* [PT Run] (VSCode Workspaces Plugin) Added devcontainers * [PT Run] (VSCode Workspaces Plugin) Added localization for dev container workspace type * [PT Run] (VSCode Workspaces Plugin) Streamlined result title for different workspace types
This commit is contained in:
@@ -44,13 +44,9 @@ namespace Community.PowerToys.Run.Plugin.VSCodeWorkspaces
|
||||
var title = $"{a.FolderName}";
|
||||
|
||||
var typeWorkspace = a.WorkspaceTypeToString();
|
||||
if (a.TypeWorkspace == TypeWorkspace.Codespaces)
|
||||
if (a.TypeWorkspace != TypeWorkspace.Local)
|
||||
{
|
||||
title += $" - {typeWorkspace}";
|
||||
}
|
||||
else if (a.TypeWorkspace != TypeWorkspace.Local)
|
||||
{
|
||||
title += $" - {(a.ExtraInfo != null ? $"{a.ExtraInfo} ({typeWorkspace})" : typeWorkspace)}";
|
||||
title = $"{title}{(a.ExtraInfo != null ? $" - {a.ExtraInfo}" : string.Empty)} ({typeWorkspace})";
|
||||
}
|
||||
|
||||
var tooltip = new ToolTipData(title, $"{Resources.Workspace}{(a.TypeWorkspace != TypeWorkspace.Local ? $" {Resources.In} {typeWorkspace}" : string.Empty)}: {SystemPath.RealPath(a.RelativePath)}");
|
||||
|
||||
Reference in New Issue
Block a user