Terminal Tab
Warning
This repository abused non-public API in the vscode and will break at any time in the future.
Please use at your own caution.
See issue list below.
This extension is a experiment about terminal in editor tab experience.
There may not be any future feature release because this repository is intended to be used as an POC.
But fork, modify and republish it is welcome as long as you follow the MIT license.
Features
Besides open the terminal as an editor tab.
It is also experiment of
- auto recover tab (its cwd and env) on load workspace
- auto recover terminal content after recover the tag (just like iterm 2)
- persistent session with tmux (idea stole form from cloud9 ide)
Commands
- Launch a terminal tab here
- Terminal session gone on vscode closed
- However terminal content was restore on vscode restart.
- Shortcuts
- Also available as shortcut on top right of editor column
- Also available as file menu shortcut
- Launch a tmux baked terminal tab here
- Terminal session is not destroyed unless you close the tab (even close editor does not matter).
- Session can be listed with
tmux -L vscode-terminal-tab list-sessions
Requirements
- Access to shell env. (or you can't open terminal)
- Tmux installed if you want to use tmux baked terminal tab.
Extension Settings
No.
All setting are read directly from integrated terminal setting.
Known Issues
- Integration with the vscode is lacking because there is no api for that.
The tab looks more like a terminal that live in vscode by accident.
- There is no formal way to use native module in native extension, so I abused internals of vscode.
- There is no formal way to use production icon in webview tab title, so I copied it directly from codicons.
Release Notes
0.1.4
Dependency bump
Fix corrupted history when in alternative screen.
0.1.3
Fix issue #7: color theme not update on config change
0.1.2
Skip ahead
0.1.1
Fix: Fix locale detection again
0.1.0
Feat: Support terminal.integrated.env.*
Fix: Fix locale detection
0.0.7
Feat: Add a tmux baked persistent terminal.
0.0.6
Fix: Apply default shell args from terminal.integrated.shellArgs.${platform}
0.0.5
Feat: Add icon to the tab title.
0.0.4
Fix: Save/restore current shell at tab creation that correspond to the terminal tab.
Feat: Forward shell title.
Feat: Add a short cut on editor title to open new terminal.
0.0.3
Update description only
0.0.2
Update description only
0.0.1
Initial publish
See Also
Terminal issues
Extension issues
Note
The icons are from codicons.