fix(server): request a new Explorer window when revealing files #11174
Closed
MatthewFeroz(GitHub profile, opens in a new tab)wants to merge 1 commit into
main fromrefs/pull/11174/head·opened View on GitHubShowing 2 changed files with 10 additions and 10 deletions.
x
@@ -242,11 +242,11 @@
- // explorer.exe expects `/select,"<path>"` with only the path quoted;
+ // Request a new window with `/n,/select,"<path>"`, quoting only the path;
- "$ProgressPreference = 'SilentlyContinue'; Start-Process 'explorer.exe' -ArgumentList ('/select,\"' + 'C:\\workspace with spaces\\media\\author''s clip.mp4' + '\"')",
+ "$ProgressPreference = 'SilentlyContinue'; Start-Process 'explorer.exe' -ArgumentList ('/n,/select,\"' + 'C:\\workspace with spaces\\media\\author''s clip.mp4' + '\"')",
@@ -255,12 +255,12 @@
-// single `/select,"<path>"` switch. Mock argv assertions cannot prove this —
+// raw `/n,/select,"<path>"` switches. Mock argv assertions cannot prove this —
- "delivers the raw /select switch for spaced paths through real PowerShell",
+ "delivers the raw new-window reveal switches for spaced paths through real PowerShell",