Created
January 15, 2025 14:54
-
-
Save mahldcat/ddd9da9ed4c322d9ee11a78e78270f5d to your computer and use it in GitHub Desktop.
Powershell replacement for the VSCode's code.cmd (usually found in C:\Users\$($env:USERNAME)\AppData\Local\Programs\Microsoft VS Code\bin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ErrorActionPreference = "Stop" | |
| $env:VSCODE_DEV = $null | |
| $env:ELECTRON_RUN_AS_NODE = "1" | |
| $scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Definition | |
| & "$scriptDir\..\Code.exe" "$scriptDir\..\resources\app\out\cli.js" @args | |
| if ($LASTEXITCODE -ne 0) { | |
| exit $LASTEXITCODE | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment