-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Expose integrated terminal extension API #9957
Comments
please keep me in the loop |
I would also suggest
Also, I wonder if |
@Tyriar the proposed API seems to cover most of our needs. |
There doesn't seem to be an easy way using pty.js to get the current process, however platform-specific options may exist. Given the process ID of the shell, we can get the child process(es) for it:
|
On OS X I'm using a script that filters the output of
|
I'm think |
@weinand that allows fetching of child processes on OS X? |
Man page info about |
I can only get process info about the currently running tty using This gives what we want if run in the shell currently being run in:
We would want something like |
On OS X the 't' option takes as an argument the name of a tty and I can retrieve that name from the new terminal. So I can run the ps as a separate process invisible to the user. |
@weinand where name is something other than the PID? The proposed |
@Tyriar assume I want to launch 'mono' in an external terminal as a debug target.
here is the pseudo code of what I do to find the pid of the mono process:
|
Reopening as |
Is there any terminal API provided for extension developers to create a terminal with the specified path as the initially start ,thank you @weinand |
@Tyriar One more thing - we have an extension |
@guogaigai please direct questions about the integrated terminal to @Tyriar. I'm only a client of that API. |
Closing this off as it believe it's done, forking the test task to #11132 |
The initial extension API will allow:
'\n'
) to these "owned" terminal instancesAdditional APIs will be considered via feedback from consumers.
Related: #547
The text was updated successfully, but these errors were encountered: