Implement a VS Code extension for opening the container terminals #21673
Closed
Labels
area/editor/vscode
Issues related to the Code OSS editor of Che
kind/task
Internal things, technical debt, and to-do tasks to be performed.
severity/P1
Has a major impact to usage or development of the system.
Milestone
Is your task related to a problem? Please describe
Currently, in Che-Code, we have implemented support for opening the terminals into the DevWorkspace containers. On top of that functionality, we have implemented support for running the Devfile Commands in the DevWorkspace containers. These features work well.
Later, we discovered that replacing a VS Code's built-in terminal infrastructure with our
machine-exec
-based one requires a lot of effort maintaining it in order to:Shell integration
breaks the auto-opened terminal in Che-Code #21616)machine-exec
under the hood (e.g.: PowerShell VS Code extension failed to start #21626 or It's not possible to run a Task in Che-Code if it's notche
type #21466)Describe the solution you'd like
We can keep the VS Code's built-in terminal support as it is in the upstream and don't touch it. All the Che-specific functionality can be provided within a dedicated extension(s).
There are a couple of extension APIs in VS Code that should allow us to contribute all the required functionality:
Pseudoterminal API
allows contributing a custom implementation of the PTY device (it's amachine-exec
-based in our case)CustomExecution API
allows executing the Devfile Commands (VS Code Tasks) on the custom pseudoterminalDescribe alternatives you've considered
No response
Additional context
See the result of the investigation in #21626 (comment)
The text was updated successfully, but these errors were encountered: