-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
File generated in $env:Temp isn't opened by VS Code. code.exe still generates its own file when doing 'hello world' | Invoke-VSCode -
Maybe $inputobjects can be piped directly in somehow? I'd like to avoid the file generate in $env:Temp. Below is the code section I'm talking about.
PSCode/functions/Invoke-VSCode.ps1
Lines 38 to 41 in 825564d
| $pipeTempPath = (join-path $env:TEMP ("pscode-stdin-{0}.txt" -f [System.GUID]::NewGuid().ToString())) | |
| Write-Verbose "Writing out piped input to file $pipeTempPath" | |
| $inputObjects | out-file $pipeTempPath -Encoding ascii | |
| Start-Process -FilePath $codePath -ArgumentList $codeArgs -RedirectStandardInput $pipeTempPath |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels