Skip to content

Commit 4245236

Browse files
committed
WIP: Starting to get SOT working.
Add SOT launch config and update Esc shortcut description Added a new "SOT" launch configuration in `launchSettings.json` to run the `Show-ObjectTree` command using PowerShell 7-preview. Updated the "Esc" key shortcut description in `ShowObjectView.cs` from `"~ESC~ Close"` to `"Close"` for improved clarity.
1 parent 9af07aa commit 4245236

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/Microsoft.PowerShell.ConsoleGuiTools/Properties/launchSettings.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@
2222
"executablePath": "C:\\Program Files\\PowerShell\\7-preview\\pwsh.exe",
2323
"commandLineArgs": "-NoProfile -NoLogo -NoExit -Command \"& { Import-Module '$(TargetPath)'; Get-Process | Out-ConsoleGridView -MinUi }\"",
2424
"workingDirectory": "$(TargetDir)"
25+
},
26+
"SOT": {
27+
"commandName": "Executable",
28+
"executablePath": "C:\\Program Files\\PowerShell\\7-preview\\pwsh.exe",
29+
"commandLineArgs": "-NoProfile -NoLogo -NoExit -Command \"& { Import-Module '$(TargetPath)'; Get-Process | Show-ObjectTree }\"",
30+
"workingDirectory": "$(TargetDir)"
2531
}
2632
}
2733
}

src/Microsoft.PowerShell.ConsoleGuiTools/ShowObjectView.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public ShowObjectView(List<object> rootObjects, ApplicationData applicationData)
117117
Add(filterErrorLabel);
118118
}
119119

120-
shortcuts.Add(new Shortcut(Key.Esc, "~ESC~ Close", () => Application.RequestStop()));
120+
shortcuts.Add(new Shortcut(Key.Esc, "Close", () => Application.RequestStop()));
121121

122122
var siCount = new Shortcut(Key.Empty, $"{rootObjects.Count} {elementDescription}", null);
123123
selectedStatusBarItem = new Shortcut(Key.Empty, string.Empty, null);

0 commit comments

Comments
 (0)