rafaelmaiolla / remote-vscode

A package that implements the Textmate's 'rmate' feature for Visual Studio Code.
MIT License
260 stars 33 forks source link

"Error: Failed to start server" when opening new window #27

Closed gristow closed 7 years ago

gristow commented 7 years ago

Remove-vscode & rmate work perfectly when I just have one VSCode window open. However, if I open a new window, I get this error message (more of an annoyance, since files will still open in the original window):

image

rafaelmaiolla commented 7 years ago

This is expected if you have set it to automatically start the server on startup.

// Launch the server on start up.
"remote.onstartup": true

Each window will try to start listening in the same port, so it will fails if the port is already in use. But note that we can't say if something else is using the port or not. So, we show the error to warn the user.

gristow commented 7 years ago

Got it -- that makes sense as I think about it, given the way VSCode shares very little between window contexts. Thanks!