mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
authentication
implicit activation events (#166715)
* `authentication` implicit activation events * More safety accessing `.id`
This commit is contained in:
parent
63f8550155
commit
3bdea7784d
|
@ -17,10 +17,7 @@
|
|||
"ui",
|
||||
"workspace"
|
||||
],
|
||||
"activationEvents": [
|
||||
"onAuthenticationRequest:github",
|
||||
"onAuthenticationRequest:github-enterprise"
|
||||
],
|
||||
"activationEvents": [],
|
||||
"capabilities": {
|
||||
"virtualWorkspaces": true,
|
||||
"untrustedWorkspaces": {
|
||||
|
|
|
@ -12,9 +12,7 @@
|
|||
"categories": [
|
||||
"Other"
|
||||
],
|
||||
"activationEvents": [
|
||||
"onAuthenticationRequest:microsoft"
|
||||
],
|
||||
"activationEvents": [],
|
||||
"enabledApiProposals": [
|
||||
"telemetryLogger",
|
||||
"idToken"
|
||||
|
|
|
@ -152,6 +152,13 @@ const authenticationExtPoint = ExtensionsRegistry.registerExtensionPoint<Authent
|
|||
description: nls.localize({ key: 'authenticationExtensionPoint', comment: [`'Contributes' means adds here`] }, 'Contributes authentication'),
|
||||
type: 'array',
|
||||
items: authenticationDefinitionSchema
|
||||
},
|
||||
activationEventsGenerator: (authenticationProviders, result) => {
|
||||
for (const authenticationProvider of authenticationProviders) {
|
||||
if (authenticationProvider.id) {
|
||||
result.push(`onAuthenticationRequest:${authenticationProvider.id}`);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue