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

Provide a command to restart VS Code #3592

Closed
pcgeek86 opened this issue Mar 1, 2016 · 18 comments
Closed

Provide a command to restart VS Code #3592

pcgeek86 opened this issue Mar 1, 2016 · 18 comments
Assignees
Labels
feature-request Request for new features or functionality
Milestone

Comments

@pcgeek86
Copy link

pcgeek86 commented Mar 1, 2016

I would have naturally expected there to be a "restart" command for Visual Studio Code, out of the box. Any chance of adding this in?

screen shot 2016-03-01 at 9 34 43 am

The current command name is "reload window," which is probably technically precise, but on the other hand, isn't really user-friendly. Could we add an alias for "restart Visual Studio Code" (or similar) for the "reload window" function?

Cheers,
Trevor Sullivan
Microsoft MVP: PowerShell

@Tyriar
Copy link
Member

Tyriar commented Mar 1, 2016

I'd find this really useful 👍

@Tyriar Tyriar added the feature-request Request for new features or functionality label Mar 1, 2016
@bbenoist
Copy link

bbenoist commented Mar 2, 2016

@pcgeek86 Isn't Reload Window already doing what you expect?

@pcgeek86
Copy link
Author

pcgeek86 commented Mar 2, 2016

@bbenoist I don't know. Does Reload Window do the same thing as "restart" Visual Studio Code, after an update has been applied? If so, the inconsistency is causing some confusion. :)

@Tyriar
Copy link
Member

Tyriar commented Mar 2, 2016

@bbenoist that probably works for my use case (reloading themes, extensions, etc.), thanks.

@pcgeek86
Copy link
Author

pcgeek86 commented Mar 3, 2016

@Tyriar @bbenoist Seems like maybe we need an alias for that command. The notification for VS Code updates asks if you want to "restart" VS Code, so naturally I looked for a "restart" command. Can an alias be added, to close this out?

@Tyriar
Copy link
Member

Tyriar commented Mar 3, 2016

That's my experience too, restart and reload wording is not consistent so I didn't even bother looking for reload. If you want to make a new issue to that effect or rename this one that would be good.

@pcgeek86 pcgeek86 changed the title Missing command to restart Visual Studio Code Inconsistent command name to restart Visual Studio Code Mar 3, 2016
@pcgeek86
Copy link
Author

pcgeek86 commented Mar 3, 2016

@Tyriar Done! 😄

@camiller2
Copy link

+1

@bpasero bpasero added this to the Backlog milestone Apr 7, 2016
@bpasero bpasero self-assigned this Apr 7, 2016
@bpasero bpasero changed the title Inconsistent command name to restart Visual Studio Code Provide a command to restart VS Code Apr 8, 2016
@bpasero
Copy link
Member

bpasero commented Apr 8, 2016

I think we should not call it "Restart" because you would expect all windows you have opened to go down and restart. There currently is no restart command that would do the full thing.

@Tyriar
Copy link
Member

Tyriar commented Apr 8, 2016

@bpasero if that's the case then extensions should say "Reload" for consistency.

image

That's the main thing that was causing the confusion personally.

@bpasero
Copy link
Member

bpasero commented Apr 8, 2016

I would actually argue to treat the fact that "Restart Now" does a window reload as a bug because if you have a second window open, you need to do the same action there too to benefit from the extension.

@pcgeek86
Copy link
Author

pcgeek86 commented Apr 8, 2016

@bpasero It just needs to be consistent. However, if there's a separate "restart [program]" command, then that should probably be listed in the Command Palette, as suggested by the original report.

@ghost
Copy link

ghost commented Jun 9, 2016

Some time may need manual reload, like modify .eslintrc

@bpasero
Copy link
Member

bpasero commented Jul 15, 2016

Closing, I think this is fine as it is now. Newer electron versions provide a real restart command btw, that does the real thing. But I am not seeing a use case for that yet.

@bpasero bpasero closed this as completed Jul 15, 2016
@Tyriar
Copy link
Member

Tyriar commented Jul 15, 2016

@bpasero reload keybindings is the biggest one for me.

@tcoopman
Copy link

I have an other use case for restart, on linux when I change my dpi settings (for example after switching monitors), I need to restart visual studio code to notice these changes.
Reloading does not work for this

In chrome there is about://restart which does the trick, something similar in visual studio code would be great.

@Tyriar
Copy link
Member

Tyriar commented Apr 25, 2017

@tcoopman with hot exit you can now relaunch really easily to do a full restart, just hit ctrl+q and relaunch.

@karlpothast
Copy link

karlpothast commented Oct 20, 2017

On windows just create a .bat (batch file), create a shortcut to it on your desktop and a then put a keyboard short cut on it. I used ctrl-shift-r.

This below will kill Visual Studio Code gracefully and then start it up again cleanly.


@echo off

taskkill /IM Code.exe
start /d "" Code.exe

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

7 participants