When I start vscode from powershell command line I get:
PS C:\Applications> Code
PS C:\Applications>
[main 2024年07月24日T14:05:08.273Z] update#setState disabled
[main 2024年07月24日T14:05:08.274Z] update#ctor - updates are disabled by user preference
[17084:0724/170510.787:ERROR:electron_api_app.cc(1268)] Failed to begin Jump List transaction.
[main 2024年07月24日T14:05:10.780Z] updateWindowsJumpList#setJumpList unexpected result: error
Namely the log of vscode is shown in the terminal.
Is there a way to prevent it?
Disconnect the VSCode process from the process it was launched from, but inherit all system variables.
Is there a general way to do so?
1 Answer 1
The proper way to launch VSCode on Windows in CLI is with code.cmd. You are apparently running Code.exe for whatever reason.
code.cmd is under normal circumstances (default installation) in %PROGRAMFILES%\Microsoft VS Code\bin\code.cmd and in path, unlike Code.exe, so that you can just use code.
See also documentation
You must log in to answer this question.
Explore related questions
See similar questions with these tags.
code --log off? Although that might have further implications than what you are after.Code.exeinstead ofcode.cmd? Try typingcode.cmdinsteadCode.exe. I haven't seencode.cmd. Where is that?