2018-12-12 15:51:03 -08:00
|
|
|
# Hello World Sample
|
2018-10-10 10:32:21 -07:00
|
|
|
|
|
|
|
|
This is a Hello World example that shows you how to use VS Code API.
|
|
|
|
|
|
2018-12-23 22:24:23 -08:00
|
|
|
Guide for this sample: https://code.visualstudio.com/api/get-started/your-first-extension.
|
2018-10-10 10:32:21 -07:00
|
|
|
|
|
|
|
|
## Demo
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
## VS Code API
|
|
|
|
|
|
|
|
|
|
### `vscode` module
|
|
|
|
|
|
2018-12-16 21:08:20 -08:00
|
|
|
- [`commands.registerCommand`](https://code.visualstudio.com/api/references/vscode-api#commands.registerCommand)
|
|
|
|
|
- [`window.showInformationMessage`](https://code.visualstudio.com/api/references/vscode-api#window.showInformationMessage)
|
2018-10-10 10:32:21 -07:00
|
|
|
|
|
|
|
|
### Contribution Points
|
|
|
|
|
|
2018-12-21 10:06:05 -08:00
|
|
|
- [`contributes.commands`](https://code.visualstudio.com/api/references/contribution-points#contributes.commands)
|
2018-10-10 10:32:21 -07:00
|
|
|
|
|
|
|
|
## 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
|