-
Notifications
You must be signed in to change notification settings - Fork 5.9k
--wait
command-line option
#2110
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
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no activity occurs in the next 5 days. |
This is a legitimate feature request, please don't close it. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no activity occurs in the next 5 days. |
Repeating myself: please do not close this legitimate feature request. |
Is this something that vanilla VS Code supports already? |
Yes, it does, with |
Interesting! Well if that's the case, I wonder if we could just pass it through and it would just work 🤔 How does this work in practice?
Then it opens VS Code, you edit message, then it exits VS Code? Understanding how this works in practice would help us find time to investigate this faster. |
Vscode has the '--wait' option exactly like Sublime and Atom before it. (Notepad++ and most other multi-tab editors have a similar but differently named switch). In git you typically configure your editor with: It would be very useful to have the same feature available in the server version of VSCode. |
Ah okay, thank you @JKrag! If it's supported in VS Code, then it does seem like something we should be able to support in code-server without too much work. But that's me guessing. We'd have to investigate as well. |
I guess the question might be whether it is "ok" for code-server to be spawning new processes on the host it is running on. I don't know if this is a challenge or security risk or anything, but the the thought did come to mind. |
Not only VS Code supports it, but also their "remote" implementation (i.e. Codespaces/Containers) and even Gitpod's OpenVSCode Server. In my opinion, this is a huge feature which is missing in the |
@code-asher how difficult would this be to implement? Thinking out loud:
Screenshots |
If we can get their script working we might not need to implement
anything. I think all we have to do is update the Node path.
|
If you are working in the terminal, the suggested way of using VS Code itself as your editor for commit messages and such is to set
This does not work within code-server obviously. You can set
EDITOR
tocode-server
but it does not have a--wait
option, so git (or whatever) will not wait for you to close the window.The
--wait
option, together with one or more files, should make thecode-server
binary only exit when these files are closed.The text was updated successfully, but these errors were encountered: