question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Windows: Code opening cli.js when run as Administrator

See original GitHub issue
  • VSCode Version: 1.42.1
  • OS Version: Windows_NT x64 10.0.18363

Steps to Reproduce:

  1. Open pwsh in windows terminal
  2. Go to any folder
  3. Run code . in the folder

Does this issue occur when all extensions are disabled?: Yes

Troubleshooting steps: Uninstalled and Reinstalled VSCode. <= This actually fixed the issue on another computer, but not my main work computer. Followed any other steps in #69373, #88432, #89088

The reason you don’t see the wait in the terminal for the first 3 code . commands is because there was already a vscode window open, however, the cli.js was still opening in these instances. The terminal wait logging came back after closing all vscode instances. image

Nobody else got you the command line for the process, so here it is with some privacy censors. Some of the processes had really, really log command line args so I couldn’t get them all to fit in my Task Manager window… image

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:16
  • Comments:49 (2 by maintainers)

github_iconTop GitHub Comments

15reactions
Directorycommented, Mar 6, 2020

i think i solved it. it happens when you set the code.exe as administrator in the comaptibility options. disabled it, reboot, no more cli.js.

at least for me.

9reactions
birgerspcommented, Nov 3, 2020

I have the same problem as OP, and I don’t have kite

Read more comments on GitHub >

github_iconTop Results From Across the Web

Run as administrator - Visual Studio (Windows) | Microsoft Learn
Start from the Tools > Command Line menu. Select the Visual Studio Developer Command Prompt, Developer PowerShell, or terminal to use .NET and ......
Read more >
Visual studio code terminal, how to run a command with ...
Running Visual Studio Code as Administrator should do the trick. If you're on Windows you can: Right click the shortcut or app/exe ...
Read more >
Troubleshoot Terminal launch failures - Visual Studio Code
If your terminal is set to run as administrator only, and you are not launching VS Code as administrator, the terminal will not...
Read more >
Opening an Admin Windows Terminal from Visual Studio
I need it for a couple of build tasks - Chocolatey installs of an admin install and for a funky certificate that doesn't...
Read more >
How to run .js file from a command line on windows?
It's not my script. It's a commercial product that I want to be able to start by one click or in a very...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found