Skip to content

What is the session server in code-server? #6636

Answered by code-asher
tobycm asked this question in Q&A
Discussion options

You must be logged in to vote

The session server handles opening files in the right code-server session via the external command line (so not the integrated terminal).

So for example say you have code-server opened in your browser and on a separate command line you ssh into the server where code-server is hosted and you run code-server /some/file, it will ask the session server to open that file and the session server will pick the right code-server based on what folder it is displaying. If there is no code-server window open it will try to start a new code-server process instead, so keep that in mind. You can prevent this by adding --reuse-window.

If you run this same command from the integrated terminal, it does not…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tobycm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants