-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Test: Integrated terminal API #11133
Comments
Sorry for the late assignment but the test plan item wasn't assigned to the August milestone |
Tested in Windows 10, all methods in the API example work as expected. Made a few small changes for your example in Tyriar/vscode-terminal-api-example#3 I'd suggest adding API for getting active terminal and a list of all terminals, though. |
Not sure if it's a problem but Another thing is I don't find the difference between Others are all good. |
@rebornix @Tyriar I think a better design is to expose
Also expose
Then for each terminal, allow it to set itself as active terminal. |
@rebornix I believe
@octref it was an intentional design decision to not allow extensions access to terminal that were created by the user via the regular commands. Operations on the terminal panel as a whole may be good, but the API is being kept very slim currently, I want some compelling use cases from extension authors before adding more as it's difficult to change the API once it's in place. I created #11276 to try clarify the functions some more 👍 |
I agree with @Tyriar on not allowing extensions access to terminals created by users and on starting with slim design with additional features based on community feedback. Regarding points made by @rebornix, extension authors are bound to have similar confusions, better documentation should help in that regard. |
I agree that we leave this out of extension api. But we still have two issues (questions) left:
About improving the documentation, I think we may want to make sure people are clear about that two dimensions of status of terminal: For community feedback, @Tyriar you reached out to the author of https://marketplace.visualstudio.com/items?itemName=formulahendry.code-runner, I think it might be a good extension that can adopt your new command. |
Test for #9957
An API for the integrated terminal was added. See
window.createTerminal
andvscode.Terminal
. To test this please make sure the API does what it claims and that it fits your expectations and is useful.Instructions for testing against latest API here: #11111 (comment)
Sample API implementation here: https://github.com/Tyriar/vscode-terminal-api-example
The text was updated successfully, but these errors were encountered: