mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
Fixes #180 Changes from using `vscode` to `@types/vscode` for the majority of extension samples. The `@types/vscode` package is much smaller and does not pull in any dependencies. Other changes: - Remove so empty test files - Bump engine versions to match @types/vscode versions - Use `npm run compile` for most `vscode:prepublish` scripts
vscode-terminal-api-example
This sample provides several commands that demonstrates how to utilize the integrated terminal extension API. Access the commands through the command palette (F1).
VS Code API
vscode module
- window.createTerminal
- window.onDidChangeActiveTerminal
- window.onDidCloseTerminal
- window.onDidOpenTerminal
- window.Terminal
- window.terminals
Proposed API
window.createTerminalRendererwindow.TerminalRenderer
Contribution Points
Running the Sample
- Run
npm installin terminal to install dependencies - Run the
Run Extensiontarget in the Debug View. This will:- Start a task
npm: watchto compile the code - Run the extension in a new VS Code window
- Start a task
