Skip to content

Draft: Explain terminal output POC

Jacques Erasmus requested to merge 1423-explain-terminal-output-poc into main

Description

POC for explaining the selected terminal output.

The main caveat is that VSCode doesn't yet have an API for accessing the terminal's selected text. There's an open issue for this in the VSCode repository.

As a workaround, we can copy the selected text to the user's clipboard using the workbench.action.terminal.copySelection VSCode command, then retrieve the text with vscode.env.clipboard.readText(). However, we'll need to restore the user's clipboard to its original state afterward, so they don't lose their previous clipboard contents.

Related Issues

#1423

How has this been tested?

Screenshots (if appropriate)

What CHANGELOG entry will this MR create?

  • fix: Bug fix fixes - a user-facing issue in production - included in changelog
  • feature: New feature - a user-facing change which adds functionality - included in changelog
  • BREAKING CHANGE: (fix or feature that would cause existing functionality to change) - should bump major version, mentioned in the changelog
  • None - other non-user-facing changes

Merge request reports

Loading