Add authentication to contribution points (#7774)
* Add authentication to contribution points ref https://github.com/microsoft/vscode/issues/233757 * Update api/references/contribution-points.md
This commit is contained in:
Родитель
b754e6d01d
Коммит
34546a43e1
|
@ -11,6 +11,7 @@ MetaDescription: To extend Visual Studio Code, your extension (plug-in) declares
|
|||
|
||||
**Contribution Points** are a set of JSON declarations that you make in the `contributes` field of the `package.json` [Extension Manifest](/api/references/extension-manifest). Your extension registers **Contribution Points** to extend various functionalities within Visual Studio Code. Here is a list of all available **Contribution Points**:
|
||||
|
||||
- [`authentication`](/api/references/contribution-points#contributes.authentication)
|
||||
- [`breakpoints`](/api/references/contribution-points#contributes.breakpoints)
|
||||
- [`colors`](/api/references/contribution-points#contributes.colors)
|
||||
- [`commands`](/api/references/contribution-points#contributes.commands)
|
||||
|
@ -43,6 +44,23 @@ MetaDescription: To extend Visual Studio Code, your extension (plug-in) declares
|
|||
- [`viewsWelcome`](/api/references/contribution-points#contributes.viewsWelcome)
|
||||
- [`walkthroughs`](/api/references/contribution-points#contributes.walkthroughs)
|
||||
|
||||
## contributes.authentication
|
||||
|
||||
Contributes an authentication provider. This will set up an activation event for your provider and display it in your extension's features.
|
||||
|
||||
```json
|
||||
{
|
||||
"contributes": {
|
||||
"authentication": [
|
||||
{
|
||||
"label": "Azure Dev Ops",
|
||||
"id": "azuredevops"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## contributes.breakpoints
|
||||
|
||||
Usually a debugger extension will also have a `contributes.breakpoints` entry where the extension lists the language file types for which setting breakpoints will be enabled.
|
||||
|
|
Загрузка…
Ссылка в новой задаче