mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-06-13 07:10:26 +08:00
21 lines
705 B
Markdown
21 lines
705 B
Markdown
# extension-terminal-sample
|
|
|
|
This extension shows how to leverage the extension terminal API stabilized in v1.39 that enables an extension to handle a terminal's input and emit output.
|
|
|
|
## VS Code API
|
|
|
|
### `vscode` module
|
|
|
|
- [window.createTerminal](https://code.visualstudio.com/api/references/vscode-api#window.createTerminal)
|
|
|
|
### Contribution Points
|
|
|
|
- [`contributes.commands`](https://code.visualstudio.com/api/references/contribution-points#contributes.commands)
|
|
|
|
## Running the Sample
|
|
|
|
- Run `npm install` in terminal to install dependencies
|
|
- Run the `Run Extension` target in the Debug View. This will:
|
|
- Start a task `npm: watch` to compile the code
|
|
- Run the extension in a new VS Code window
|