-
Notifications
You must be signed in to change notification settings - Fork 30.2k
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
TerminalOptions.waitOnExit API #70444
Comments
Looking forward to the API. I don't know why it was commented out before. |
@Eskibear it was commented out because we were planning on moving tasks to an extension but ended up changing our minds. I'm interesting in what your use case is? |
I'm working to enable debugging plugin goal of a Maven project, leveraging Java Debugger extension. The workflow is:
After terminating the debug session, users may still want to re-visit the diagnostic info printed, so I want to i) persist the printed info there. But as the injected env will force all maven commands to run in debug mode, I also want to ii) prevent users from re-using the terminal. |
No plans to add this as there is not enough need, for the maven case tasks might be a better option. |
This issue is being closed to keep the number of issues in our inbox on a manageable level, we are closing issues that are not going to be addressed in the foreseeable future: We look at the number of votes the issue has received and the number of duplicate issues filed. More details here. If you disagree and feel that this issue is crucial: We are happy to listen and to reconsider. If you wonder what we are up to, please see our roadmap and issue reporting guidelines. Thanks for your understanding and happy coding! |
One fairly general use for this functionality is to be able to see a stack trace or other diagnostics from a terminal process that crashes. That was the original motivation for referencing julia-vscode/julia-vscode#653. |
@twadleigh can you describe a little more how Julia uses/launches the terminal? Is launching a Julia shell and sending text an alternative? |
@Tyriar you can see the way the julia-vscode extension launches the julia process in the terminal here. Can you possibly describe more about what you mean by launching a shell and sending text? I initially proposed a solution that wrapped the julia process in a monitor process to intercept the crash, but it was rejected as too heavyweight. |
@twadleigh Julia is a shell that can also run files right? My proposal was doing something like this:
After run it would leave a shell hanging though. |
Any chance to restart the implementation of/discussion around this feature? FWIW, what we want for the Julia extension matches the task-backed terminals very well -- the terminal lifecycle is decoupled from the underlying process and we get terminal recycling for free. Tasks feel like the wrong tool for the job though, and there are issues with e.g. |
Would also like to bump this FR - currently our workaround for the stanza REPL is to invoke it through a secondary launcher process which waits to exit on input. |
waitOnExit was originally proposed as a boolean in #15583
The text was updated successfully, but these errors were encountered: