microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.45k stars 29.35k forks source link

Add a Restart Command #226511

Closed DashBing closed 2 weeks ago

DashBing commented 2 months ago

Add a new command that can restart VSCode just like the "restart" when when updated the VSCode or selected a new display language.

before edited: when you update an extension.

There's a very similar command Reload Window, but it won't reload all the windows. I think the new command should be like Reload VSCode or Restart VSCode.

demetrebadzaradze commented 2 months ago

is reload window not good enough for your work??

RedCMD commented 2 months ago

it works too much clears undo history etc

bpasero commented 2 months ago

A command to restart the extension host exists, that is what happens when restarting for an extension:

Image

vs-code-engineering[bot] commented 2 months ago

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

RedCMD commented 2 months ago

workbench.action.restartExtensionHost doesn't clear the Restart Extensions notification

image

image

bpasero commented 2 months ago

In that case I think "Reload Window" should suffice:

Image

RedCMD commented 2 months ago

workbench.action.reloadWindow clears undo history etc which is undesirable

we would like to be able to run the command that the Restart Extensions button does workbench.action.restartExtensionHost does not restart extensions in the way that Restart Extensions does

bpasero commented 2 months ago

That is unfortunately not possible, some extensions that are running cannot restart, but @sandy081 would know the rules.

DashBing commented 2 months ago

But Reload Window won't reload all of the windows. I think the new command should be like Reload VSCode or Restart VSCode.

It would be nice to be able to refresh the environment variables at the same time, refer to #226510 . Just like the "restart" when updating the VSCode or changing language.

DashBing commented 2 months ago

Another suggestion is add Restart to here: image

sandy081 commented 2 months ago

we would like to be able to run the command that the Restart Extensions button does workbench.action.restartExtensionHost does not restart extensions in the way that Restart Extensions does

What's the difference?

RedCMD commented 2 months ago

workbench.action.restartExtensionHost doesn't reload TextMate grammars

if I disable an extension and don't click Restart Extensions but instead run workbench.action.restartExtensionHost the extension still remains enabled and no TextMate grammars get refreshed

sandy081 commented 2 months ago

CC @alexdima

vs-code-engineering[bot] commented 1 month ago

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

vs-code-engineering[bot] commented 2 weeks ago

:slightly_frowning_face: In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.

Happy Coding!