How to restart VSCode? - visual-studio-code

Is there any way to entirely restart VSCode? I do not mean reloading a single window.
VSCode lets you restart when an update is installed via the self updater, but I can't see a way to access this functionality when there isn't an update.

Related

VSCode - How to reload all windows

I knew workbench.action.reloadWindow could reload the current VSCode window, how to reload all windows at once, I searched through the keybindings, but didn't find one.
Some use cases:
After upgrading extensions that require reload.
VSCode slowed down for no obvious reason, trying to reload.

How can I get Visual Studio Code to reset the IntelliSense engine for Rust?

I am working on two projects, one is a library, the other is a program that uses that library. When I make changes to the library the other window (the program) doesn't see these changes, so I do not get updated IntelliSense. Closing the program that uses the library and reopening it does force an update but I really prefer not having to go that far.
Answering the title directly and not the root issue...
You can reset IntelliSense and all Rust code features by running the "Rust: Restart the Rust server" command from the command palette (Ctrl+Shift+P).
Progress will be indicated in the status bar.
Still a blunt tool but it will ensure you're in a fresh state without having to restart VS Code entirely.

How to manually restart an extension in VSCode?

I just allowed an update to the PowerShell extension, and I'm now presented with this notice:
PackageManagement updated. If you already had PackageManagement loaded in your session, please restart the PowerShell extension.
I would love to know how to do this. I imagine a full VSCode restart would do the trick, but curiosity has got the better of me here. Someday I might need to do this without interrupting other work in progress.
Apparently it can be accomplished programmatically, but before we go there it'd be nice to know how to do it manually.
On the Manage menu for the extension, we have the Disable and Uninstall items:
...but no Restart.
Can this be done?
Not sure how to do that programmatically, but you can restart the PowerShell session by opening the "PowerShell Session Menu" and then click "Restart Current Session". See below:
I was wondering the same thing for the powershell extension, and by poking around I found a potential solution (more of a workaround honestly):
Hit the "Kill terminal" button (trashbin icon)
KillTerminal (requires killing all active terminals)
The following dialogue appears, click "Yes" to restart it:
RestartDialogue
I confirmed too that the version did update: UpdateConfirmed
Press Ctrl + Shift + P to Open Command Palette and Type Restart Extension Host

Is there a way to sync the settings between local and remote for vscode?

So the latest version of vscode (1.46) provides preference sync, but I found I cannot enable this feature for remote vscode. Whenever I open remote folder, (e.g., in wsl), the option to sign in MS account and turn on preference sync is missing. Did I miss anything here or it is not supported?
figure below shows my local vscode instance with the preference sync:
figure below shows my vscode instance for remote (wsl) without the preference sync option:
https://code.visualstudio.com/docs/editor/settings-sync
I was looking to enable this too, the first line is the answer I think. Only available for vscode insiders at the moment, maybe wait 'til next month

On NetBeans, my Node.js server does not automatically restart after changes

I've been using Atom, Sublime Text and Code, and all of those would make the server restart after any changes. With Netbens it doesn't happen.
I have two different servers in my project, one for the client and other for API. Simply executing the commands in either my OS's terminal or Netbeans's terminal also doesn't make the server to restart. Tried to look for suggestions but those I found also didn't happen. The solution was to modify the start file in Properties > Run and check the only checkbox it's in there, but nothing.
What's necessary to do in Netbeans to refresh the server automatically after saving any file? And also, how to run two at the same time? Client and API.