File tree Expand file tree Collapse file tree
src/gateway/server-methods Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -74,14 +74,14 @@ describe("resolveConfigOpenCommand", () => {
7474 } ) ;
7575 } ) ;
7676
77- it ( "uses a quoted PowerShell literal on Windows" , ( ) => {
77+ it ( "uses a quoted PowerShell FilePath on Windows" , ( ) => {
7878 expect ( resolveConfigOpenCommand ( String . raw `C:\tmp\o'hai & calc.json` , "win32" ) ) . toEqual ( {
7979 command : "powershell.exe" ,
8080 args : [
8181 "-NoProfile" ,
8282 "-NonInteractive" ,
8383 "-Command" ,
84- String . raw `Start-Process -LiteralPath 'C:\tmp\o''hai & calc.json'` ,
84+ String . raw `Start-Process -FilePath 'C:\tmp\o''hai & calc.json'` ,
8585 ] ,
8686 } ) ;
8787 } ) ;
Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ export function resolveConfigOpenCommand(
183183 "-NoProfile" ,
184184 "-NonInteractive" ,
185185 "-Command" ,
186- `Start-Process -LiteralPath '${ escapePowerShellSingleQuotedString ( configPath ) } '` ,
186+ `Start-Process -FilePath '${ escapePowerShellSingleQuotedString ( configPath ) } '` ,
187187 ] ,
188188 } ;
189189 }
You can’t perform that action at this time.
0 commit comments