Add github-authentication-sample

This commit is contained in:
RMacfarlane
2020-08-03 14:31:36 -07:00
parent 0b0df69b9b
commit 2f9e5fbcdf
12 changed files with 822 additions and 0 deletions

View 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
![demo](demo.png)
## 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