From 34546a43e1de0029e44436ddbe3e921d4cb8b6f8 Mon Sep 17 00:00:00 2001 From: Tyler James Leonhardt Date: Wed, 13 Nov 2024 15:42:06 -0800 Subject: [PATCH] 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 --- api/references/contribution-points.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/api/references/contribution-points.md b/api/references/contribution-points.md index 93c26addb..250bb27bd 100644 --- a/api/references/contribution-points.md +++ b/api/references/contribution-points.md @@ -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.