mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-06-13 07:10:26 +08:00
Readme and gif
This commit is contained in:
2
helloworld-test-sample/.vscode/launch.json
vendored
2
helloworld-test-sample/.vscode/launch.json
vendored
@ -15,7 +15,7 @@
|
||||
"preLaunchTask": "npm: watch"
|
||||
},
|
||||
{
|
||||
"name": "Extension Tests",
|
||||
"name": "Run Extension Tests",
|
||||
"type": "extensionHost",
|
||||
"request": "launch",
|
||||
"runtimeExecutable": "${execPath}",
|
||||
|
||||
@ -1,27 +1,16 @@
|
||||
# Hello World Sample
|
||||
|
||||
This is a Hello World example that shows you how to use VS Code API.
|
||||
This is the Hello World example with integration tests.
|
||||
|
||||
Guide for this sample: https://code.visualstudio.com/api/get-started/your-first-extension.
|
||||
You can find the accompanying documentation at https://code.visualstudio.com/api/working-with-extensions/testing-extension.
|
||||
|
||||
## Demo
|
||||
|
||||

|
||||
|
||||
## VS Code API
|
||||
|
||||
### `vscode` module
|
||||
|
||||
- [`commands.registerCommand`](https://code.visualstudio.com/api/references/vscode-api#commands.registerCommand)
|
||||
- [`window.showInformationMessage`](https://code.visualstudio.com/api/references/vscode-api#window.showInformationMessage)
|
||||
|
||||
### 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:
|
||||
- Run the `Run Extension Tests` 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
|
||||
- Run the extension integration test in a new VS Code window
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 846 KiB After Width: | Height: | Size: 1.3 MiB |
Reference in New Issue
Block a user