question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TerminalOptions.waitOnExit API

See original GitHub issue
enum WaitOnExitType {
    Never = 0,
    NonZeroExitCode = 1,
    Always = 2
}

export interface TerminalOptions {
    /**
     * Whether the terminal panel should wait before closing when a terminal's process exits.
     */
    waitOnExit?: WaitOnExitType;
}

waitOnExit was originally proposed as a boolean in https://github.com/Microsoft/vscode/issues/15583

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:21
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
Eskibearcommented, Mar 25, 2019

I’m working to enable debugging plugin goal of a Maven project, leveraging Java Debugger extension. The workflow is:

  1. create a terminal with env MAVEN_OPTS injected, which specifies the listening port (a random free port).
  2. send the maven command to the terminal, then the command will run in debug mode.
  3. start a Java debug session, attach to the port.

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.

0reactions
m-hilgendorfcommented, Jul 22, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TerminalServiceMainImpl | Theia TypeDoc
Plugin api service allows working with terminal emulator. ... $createTerminal(id: string, options: TerminalOptions, isPseudoTerminal?: boolean): ...
Read more >
Variable in class com.mindbright.security.pkcs7.SignerInfo
This class implements a module for GSS API user authentication as defined in RFC 4462. SSH2AuthGSS() - Constructor for class com.mindbright.ssh2.
Read more >
"Fossies" - the Fresh Open Source Software Archive
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) TypeScript source code syntax highlighting...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found