mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
21 lines
549 B
Markdown
21 lines
549 B
Markdown
# GitHub Authentication Sample
|
|
|
|
This is a GitHub authentication example that shows you how to use the VS Code authentication API.
|
|
|
|
## Demo
|
|
|
|

|
|
|
|
## VS Code API
|
|
|
|
### `vscode` module
|
|
|
|
- [`authentication.getSession`](https://code.visualstudio.com/api/references/vscode-api#authentications.getSession)
|
|
|
|
## 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
|