Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code fails to launch (non-elevated) if there is already an existing (elevated) process #10178

Closed
DanTup opened this issue Aug 5, 2016 · 5 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@DanTup
Copy link
Contributor

DanTup commented Aug 5, 2016

There's a similar case #3180 that was closed as a dupe of #929, however I can reproduce this much worse than #929.

  • VSCode Version: 1.3.1
  • OS Version: Windows 10

Steps to Reproduce:

  1. Run VS Code as Admin
  2. Try to launch code as non-Admin (from taskbar, shell, explorer context menu)

Nothing happens. No new Code window, and nothing opens in the Admin instance either.

@joaomoreno
Copy link
Member

#1614

@joaomoreno joaomoreno added the *duplicate Issue identified as a duplicate of another issue(s) label Aug 5, 2016
@DanTup
Copy link
Contributor Author

DanTup commented Aug 5, 2016

@joaomoreno that case desribesyvery different behaviour - where new code windows open but are not elevated. The bug here is that clicking Code does absolutely nothing. No Code window, no reused existing instance, no error message, nothing.

While the two may be related, surely it should not be considered a new feature for clicking the icon on the taskbar (or typing "code" or clicking the explorer context menu) to actually do anything at all? :/

Even a nasty pop-up saying "There is another instance of coding running" would be better than the (really confusing) behaviour of silently doing nothing.

@joaomoreno
Copy link
Member

The issue relates to supporting all use cases of running as Administrator, and this is one of them.

I totally agree with you on the current behaviour though.

Since we're trying to decide whether we should allow people to open as Administrator at all, let me ask you: why do you need to open it as an Administrator? Just to save write-protected files?

@DanTup
Copy link
Contributor Author

DanTup commented Aug 5, 2016

I actually don't, it was just a side-effect of launching it from an elevated PoSh shell. If it had launched a non-elevated Code that would probably suit me fine :)

@joaomoreno
Copy link
Member

Thanks!

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

2 participants