mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
Add github-authentication-sample
This commit is contained in:
20
github-authentication-sample/README.md
Normal file
20
github-authentication-sample/README.md
Normal file
@ -0,0 +1,20 @@
|
||||
# GitHub Authentication Sample
|
||||
|
||||
This is a GitHub authentication example that shows you how to use VS Code API 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
|
||||
Reference in New Issue
Block a user