Skip to content
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

Feature Request: API access to terminal output #190941

Closed
ykdojo opened this issue Aug 22, 2023 · 1 comment
Closed

Feature Request: API access to terminal output #190941

ykdojo opened this issue Aug 22, 2023 · 1 comment
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@ykdojo
Copy link

ykdojo commented Aug 22, 2023

Problem Statement

The current VS Code API allows extensions to interact with terminal instances but lacks the ability to directly read the content or selected text within the terminal.

Proposed Solution

I propose adding an API endpoint to access the terminal's output, including selected text. This would enable extensions to read terminal content, enhancing automation and integration possibilities.

Use Case

This feature could allow an extension to send selected text from the terminal to other parts of the extension or external services, providing seamless integration and a more intuitive user experience.

Potential Implementation

The API could offer methods to:

  • Retrieve the entire content of the terminal.
  • Retrieve the currently selected text within the terminal.

Conclusion

API access to the terminal output would enhance extension development capabilities within VS Code, improving productivity and user experience. I kindly request the VS Code team to consider this feature.

Thank you!

@Tyriar
Copy link
Member

Tyriar commented Aug 22, 2023

Selection is happening: #188173

Content via "commands" will probably happen soon: #145234, raw buffer access is unlikely to happen as there are performance problems with that.

/duplicate

@Tyriar Tyriar closed this as completed Aug 22, 2023
@vscodenpa vscodenpa added the *duplicate Issue identified as a duplicate of another issue(s) label Aug 22, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Oct 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

3 participants