feat: Return back the built-in VS Code terminal with the Shell Integration enabled #124
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Artem Zatsarynnyi [email protected]
What does this PR do?
This is step 3/3 in migrating from the current implementation of the machine-exec-based terminal, that replaces the built-in VS Code terminal, to the dedicated extension.
1/3 was introduced in #122.
2/3 was introduced in #123.
What issues does this PR fix or reference?
related to:
che
type eclipse-che/che#21466Shell integration
breaks the auto-opened terminal in Che-Code eclipse-che/che#21616How to test this PR?
Test opening the terminals
Use case 1: there're multiple contributed containers
Terminal: Create New Terminal to DevWorkspace Container
.Use case 2: there's one contributed container (except for the editor's container)
Terminal: Create New Terminal to DevWorkspace Container
.mariadb
) except the editor's container.mariadb
.Use case 3: there're no contributed containers (except for the editor's container)
In this case, the behavior should be exactly the same as opening a built-in VS Code terminal.
Terminal: Create New Terminal to DevWorkspace Container
.tools
.It should be possible to run any Task (not only Devfile Commands) in a VS Code built-in terminal
tasks.json
with ashell
task. E.g.:Terminal > Configure Tasks... > Create tasks.json file from template > maven
.shell
task:verify
ortest
.che
type eclipse-che/che#21466.che
tasks (Devfile Commands) should be run via the machine-exec terminalTerminal > Run Task... > che
.che-terminal
extension's API. It can be verified by checking theChe Terminal
output channel (View > Output
).Test PowerShell extension functionality
Extensions
side-panel view and install the recommendedPowerShell
extension.pwsh
is contributed to theLaunch Profile...
menu.*.ps1
file), a new terminalPowerShell Extension
is launched automatically.*.ps1
file work as expected.PowerShell
left-side panel is populated with the commands.View
>Output
).