@codingame/monaco-vscode-authentication-service-override 21.6.0 → 22.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-authentication-service-override",
3
- "version": "21.6.0",
3
+ "version": "22.0.1",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - authentication service-override",
6
6
  "keywords": [],
@@ -15,10 +15,10 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-4bf376c2-03c7-58cb-8303-c67aeefa3d3d-common": "21.6.0",
19
- "@codingame/monaco-vscode-9a5ab9e7-d838-5831-9eb4-e79ea3764dcb-common": "21.6.0",
20
- "@codingame/monaco-vscode-api": "21.6.0",
21
- "@codingame/monaco-vscode-f22e7e55-aee8-5b52-a6bc-950efd9f5890-common": "21.6.0"
18
+ "@codingame/monaco-vscode-4bf376c2-03c7-58cb-8303-c67aeefa3d3d-common": "22.0.1",
19
+ "@codingame/monaco-vscode-api": "22.0.1",
20
+ "@codingame/monaco-vscode-d941ac7b-412f-57e3-b1bf-f6b0eb253b21-common": "22.0.1",
21
+ "@codingame/monaco-vscode-f22e7e55-aee8-5b52-a6bc-950efd9f5890-common": "22.0.1"
22
22
  },
23
23
  "main": "index.js",
24
24
  "module": "index.js",
@@ -16,8 +16,8 @@ class ManageAccountPreferencesForExtensionAction extends Action2 {
16
16
  constructor() {
17
17
  super({
18
18
  id: '_manageAccountPreferencesForExtension',
19
- title: ( localize2(4337, "Manage Extension Account Preferences")),
20
- category: ( localize2(4338, "Accounts")),
19
+ title: ( localize2(4345, "Manage Extension Account Preferences")),
20
+ category: ( localize2(4346, "Accounts")),
21
21
  f1: true
22
22
  });
23
23
  }
@@ -43,8 +43,8 @@ let ManageAccountPreferenceForExtensionActionImpl = class ManageAccountPreferenc
43
43
  label: ext.displayName ?? ext.name,
44
44
  id: ext.identifier.value
45
45
  }))), {
46
- placeHolder: ( localize(4339, "Select an extension to manage account preferences for")),
47
- title: ( localize(4340, "Manage Extension Account Preferences"))
46
+ placeHolder: ( localize(4347, "Select an extension to manage account preferences for")),
47
+ title: ( localize(4348, "Manage Extension Account Preferences"))
48
48
  });
49
49
  extensionId = result?.id;
50
50
  }
@@ -59,7 +59,7 @@ let ManageAccountPreferenceForExtensionActionImpl = class ManageAccountPreferenc
59
59
  const extensionQuery = this._authenticationQueryService.extension(extensionId);
60
60
  const providersWithAccess = await extensionQuery.getProvidersWithAccess();
61
61
  if (!providersWithAccess.length) {
62
- await this._dialogService.info(( localize(4341, "This extension has not used any accounts yet.")));
62
+ await this._dialogService.info(( localize(4349, "This extension has not used any accounts yet.")));
63
63
  return;
64
64
  }
65
65
  providerId = providersWithAccess[0];
@@ -69,10 +69,10 @@ let ManageAccountPreferenceForExtensionActionImpl = class ManageAccountPreferenc
69
69
  id: providerId,
70
70
  }))), {
71
71
  placeHolder: ( localize(
72
- 4342,
72
+ 4350,
73
73
  "Select an authentication provider to manage account preferences for"
74
74
  )),
75
- title: ( localize(4340, "Manage Extension Account Preferences"))
75
+ title: ( localize(4348, "Manage Extension Account Preferences"))
76
76
  });
77
77
  if (!result) {
78
78
  return;
@@ -93,7 +93,7 @@ let ManageAccountPreferenceForExtensionActionImpl = class ManageAccountPreferenc
93
93
  items.push({
94
94
  providerId,
95
95
  scopes: lastUsedScopes,
96
- label: ( localize(4343, "Use a new account...")),
96
+ label: ( localize(4351, "Use a new account...")),
97
97
  });
98
98
  }
99
99
  }
@@ -112,12 +112,12 @@ let ManageAccountPreferenceForExtensionActionImpl = class ManageAccountPreferenc
112
112
  disposableStore.dispose();
113
113
  }));
114
114
  picker.placeholder = ( localize(
115
- 4344,
115
+ 4352,
116
116
  "Manage '{0}' account preferences for {1}...",
117
117
  extensionLabel,
118
118
  providerLabel
119
119
  ));
120
- picker.title = ( localize(4345, "'{0}' Account Preferences For This Workspace", extensionLabel));
120
+ picker.title = ( localize(4353, "'{0}' Account Preferences For This Workspace", extensionLabel));
121
121
  picker.sortByLabel = false;
122
122
  disposableStore.add(picker.onDidAccept(async () => {
123
123
  picker.hide();
@@ -131,7 +131,7 @@ let ManageAccountPreferenceForExtensionActionImpl = class ManageAccountPreferenc
131
131
  label: a.label,
132
132
  account: a,
133
133
  providerId,
134
- description: ( localize(4346, "Current account")),
134
+ description: ( localize(4354, "Current account")),
135
135
  picked: true
136
136
  }
137
137
  : {
@@ -141,7 +141,7 @@ let ManageAccountPreferenceForExtensionActionImpl = class ManageAccountPreferenc
141
141
  }));
142
142
  }
143
143
  _handleNoAccounts(picker) {
144
- picker.validationMessage = ( localize(4347, "No accounts are currently used by this extension."));
144
+ picker.validationMessage = ( localize(4355, "No accounts are currently used by this extension."));
145
145
  picker.buttons = [this._quickInputService.backButton];
146
146
  picker.show();
147
147
  return Event.filter(picker.onDidTriggerButton, (e) => e === this._quickInputService.backButton)(() => this.run());
@@ -16,8 +16,8 @@ class ManageAccountPreferencesForMcpServerAction extends Action2 {
16
16
  constructor() {
17
17
  super({
18
18
  id: '_manageAccountPreferencesForMcpServer',
19
- title: ( localize2(4348, "Manage MCP Server Account Preferences")),
20
- category: ( localize2(4349, "Accounts")),
19
+ title: ( localize2(4356, "Manage MCP Server Account Preferences")),
20
+ category: ( localize2(4357, "Accounts")),
21
21
  f1: false
22
22
  });
23
23
  }
@@ -46,7 +46,7 @@ let ManageAccountPreferenceForMcpServerActionImpl = class ManageAccountPreferenc
46
46
  const mcpServerQuery = this._authenticationQueryService.mcpServer(mcpServerId);
47
47
  const providersWithAccess = await mcpServerQuery.getProvidersWithAccess();
48
48
  if (!providersWithAccess.length) {
49
- await this._dialogService.info(( localize(4350, "This MCP server has not used any accounts yet.")));
49
+ await this._dialogService.info(( localize(4358, "This MCP server has not used any accounts yet.")));
50
50
  return;
51
51
  }
52
52
  providerId = providersWithAccess[0];
@@ -56,10 +56,10 @@ let ManageAccountPreferenceForMcpServerActionImpl = class ManageAccountPreferenc
56
56
  id: providerId,
57
57
  }))), {
58
58
  placeHolder: ( localize(
59
- 4351,
59
+ 4359,
60
60
  "Select an authentication provider to manage account preferences for"
61
61
  )),
62
- title: ( localize(4352, "Manage MCP Server Account Preferences"))
62
+ title: ( localize(4360, "Manage MCP Server Account Preferences"))
63
63
  });
64
64
  if (!result) {
65
65
  return;
@@ -80,7 +80,7 @@ let ManageAccountPreferenceForMcpServerActionImpl = class ManageAccountPreferenc
80
80
  items.push({
81
81
  providerId: providerId,
82
82
  scopes: lastUsedScopes,
83
- label: ( localize(4353, "Use a new account...")),
83
+ label: ( localize(4361, "Use a new account...")),
84
84
  });
85
85
  }
86
86
  }
@@ -99,12 +99,12 @@ let ManageAccountPreferenceForMcpServerActionImpl = class ManageAccountPreferenc
99
99
  disposableStore.dispose();
100
100
  }));
101
101
  picker.placeholder = ( localize(
102
- 4354,
102
+ 4362,
103
103
  "Manage '{0}' account preferences for {1}...",
104
104
  mcpServerLabel,
105
105
  providerLabel
106
106
  ));
107
- picker.title = ( localize(4355, "'{0}' Account Preferences For This Workspace", mcpServerLabel));
107
+ picker.title = ( localize(4363, "'{0}' Account Preferences For This Workspace", mcpServerLabel));
108
108
  picker.sortByLabel = false;
109
109
  disposableStore.add(picker.onDidAccept(async () => {
110
110
  picker.hide();
@@ -118,7 +118,7 @@ let ManageAccountPreferenceForMcpServerActionImpl = class ManageAccountPreferenc
118
118
  label: a.label,
119
119
  account: a,
120
120
  providerId,
121
- description: ( localize(4356, "Current account")),
121
+ description: ( localize(4364, "Current account")),
122
122
  picked: true
123
123
  }
124
124
  : {
@@ -128,7 +128,7 @@ let ManageAccountPreferenceForMcpServerActionImpl = class ManageAccountPreferenc
128
128
  }));
129
129
  }
130
130
  _handleNoAccounts(picker) {
131
- picker.validationMessage = ( localize(4357, "No accounts are currently used by this MCP server."));
131
+ picker.validationMessage = ( localize(4365, "No accounts are currently used by this MCP server."));
132
132
  picker.buttons = [this._quickInputService.backButton];
133
133
  picker.show();
134
134
  return Event.filter(picker.onDidTriggerButton, (e) => e === this._quickInputService.backButton)(() => this.run());
@@ -11,8 +11,8 @@ class RemoveDynamicAuthenticationProvidersAction extends Action2 {
11
11
  constructor() {
12
12
  super({
13
13
  id: RemoveDynamicAuthenticationProvidersAction.ID,
14
- title: ( localize2(4358, 'Remove Dynamic Authentication Providers')),
15
- category: ( localize2(4359, 'Authentication')),
14
+ title: ( localize2(4366, 'Remove Dynamic Authentication Providers')),
15
+ category: ( localize2(4367, 'Authentication')),
16
16
  f1: true
17
17
  });
18
18
  }
@@ -23,16 +23,16 @@ class RemoveDynamicAuthenticationProvidersAction extends Action2 {
23
23
  const dialogService = accessor.get(IDialogService);
24
24
  const interactedProviders = dynamicAuthStorageService.getInteractedProviders();
25
25
  if (interactedProviders.length === 0) {
26
- await dialogService.info(( localize(4360, 'No dynamic authentication providers')), ( localize(4361, 'No dynamic authentication providers have been used yet.')));
26
+ await dialogService.info(( localize(4368, 'No dynamic authentication providers')), ( localize(4369, 'No dynamic authentication providers have been used yet.')));
27
27
  return;
28
28
  }
29
29
  const items = ( interactedProviders.map(provider => ({
30
30
  label: provider.label,
31
- description: ( localize(4362, 'Client ID: {0}', provider.clientId)),
31
+ description: ( localize(4370, 'Client ID: {0}', provider.clientId)),
32
32
  provider
33
33
  })));
34
34
  const selected = await quickInputService.pick(items, {
35
- placeHolder: ( localize(4363, 'Select a dynamic authentication provider to remove')),
35
+ placeHolder: ( localize(4371, 'Select a dynamic authentication provider to remove')),
36
36
  canPickMany: true
37
37
  });
38
38
  if (!selected || selected.length === 0) {
@@ -41,12 +41,12 @@ class RemoveDynamicAuthenticationProvidersAction extends Action2 {
41
41
  const providerNames = ( selected.map(item => item.provider.label)).join(', ');
42
42
  const message = selected.length === 1
43
43
  ? ( localize(
44
- 4364,
44
+ 4372,
45
45
  'Are you sure you want to remove the dynamic authentication provider "{0}"?',
46
46
  providerNames
47
47
  ))
48
48
  : ( localize(
49
- 4365,
49
+ 4373,
50
50
  'Are you sure you want to remove {0} dynamic authentication providers: {1}?',
51
51
  selected.length,
52
52
  providerNames
@@ -54,10 +54,10 @@ class RemoveDynamicAuthenticationProvidersAction extends Action2 {
54
54
  const result = await dialogService.confirm({
55
55
  message,
56
56
  detail: ( localize(
57
- 4366,
57
+ 4374,
58
58
  'This will remove all stored authentication data for the selected provider(s). You will need to re-authenticate if you use these providers again.'
59
59
  )),
60
- primaryButton: ( localize(4367, 'Remove')),
60
+ primaryButton: ( localize(4375, 'Remove')),
61
61
  type: 'warning'
62
62
  });
63
63
  if (!result.confirmed) {
@@ -18,8 +18,8 @@ class ManageTrustedExtensionsForAccountAction extends Action2 {
18
18
  constructor() {
19
19
  super({
20
20
  id: '_manageTrustedExtensionsForAccount',
21
- title: ( localize2(4368, "Manage Trusted Extensions For Account")),
22
- category: ( localize2(4369, "Accounts")),
21
+ title: ( localize2(4376, "Manage Trusted Extensions For Account")),
22
+ category: ( localize2(4377, "Accounts")),
23
23
  f1: true
24
24
  });
25
25
  }
@@ -57,7 +57,7 @@ let ManageTrustedExtensionsForAccountActionImpl = class ManageTrustedExtensionsF
57
57
  }
58
58
  const accounts = await this._getAllAvailableAccounts();
59
59
  const pick = await this._quickInputService.pick(accounts, {
60
- placeHolder: ( localize(4370, "Pick an account to manage trusted extensions for")),
60
+ placeHolder: ( localize(4378, "Pick an account to manage trusted extensions for")),
61
61
  matchOnDescription: true,
62
62
  });
63
63
  return pick ? this._authenticationQueryService.provider(pick.providerId).account(pick.label) : undefined;
@@ -101,7 +101,7 @@ let ManageTrustedExtensionsForAccountActionImpl = class ManageTrustedExtensionsF
101
101
  };
102
102
  }));
103
103
  if (!filteredExtensions.length) {
104
- this._dialogService.info(( localize(4371, "This account has not been used by any extensions.")));
104
+ this._dialogService.info(( localize(4379, "This account has not been used by any extensions.")));
105
105
  return [];
106
106
  }
107
107
  const trustedExtensions = filteredExtensions.filter(e => e.trusted);
@@ -109,20 +109,20 @@ let ManageTrustedExtensionsForAccountActionImpl = class ManageTrustedExtensionsF
109
109
  const sortByLastUsed = (a, b) => (b.lastUsed || 0) - (a.lastUsed || 0);
110
110
  return [
111
111
  ...( otherExtensions.sort(sortByLastUsed).map(this._toQuickPickItem)),
112
- { type: 'separator', label: ( localize(4372, "Trusted by Microsoft")) },
112
+ { type: 'separator', label: ( localize(4380, "Trusted by Microsoft")) },
113
113
  ...( trustedExtensions.sort(sortByLastUsed).map(this._toQuickPickItem))
114
114
  ];
115
115
  }
116
116
  _toQuickPickItem(extension) {
117
117
  const lastUsed = extension.lastUsed;
118
118
  const description = lastUsed
119
- ? ( localize(4373, "Last used this account {0}", fromNow(lastUsed, true)))
120
- : ( localize(4374, "Has not used this account"));
119
+ ? ( localize(4381, "Last used this account {0}", fromNow(lastUsed, true)))
120
+ : ( localize(4382, "Has not used this account"));
121
121
  let tooltip;
122
122
  let disabled;
123
123
  if (extension.trusted) {
124
124
  tooltip = ( localize(
125
- 4375,
125
+ 4383,
126
126
  "This extension is trusted by Microsoft and\nalways has access to this account"
127
127
  ));
128
128
  disabled = true;
@@ -134,7 +134,7 @@ let ManageTrustedExtensionsForAccountActionImpl = class ManageTrustedExtensionsF
134
134
  tooltip,
135
135
  disabled,
136
136
  buttons: [{
137
- tooltip: ( localize(4376, "Manage account preferences for this extension")),
137
+ tooltip: ( localize(4384, "Manage account preferences for this extension")),
138
138
  iconClass: ThemeIcon.asClassName(Codicon.settingsGear),
139
139
  }],
140
140
  picked: extension.allowed === undefined || extension.allowed
@@ -145,9 +145,9 @@ let ManageTrustedExtensionsForAccountActionImpl = class ManageTrustedExtensionsF
145
145
  const quickPick = disposableStore.add(this._quickInputService.createQuickPick({ useSeparators: true }));
146
146
  quickPick.canSelectMany = true;
147
147
  quickPick.customButton = true;
148
- quickPick.customLabel = ( localize(4377, 'Cancel'));
149
- quickPick.title = ( localize(4378, "Manage Trusted Extensions"));
150
- quickPick.placeholder = ( localize(4379, "Choose which extensions can access this account"));
148
+ quickPick.customLabel = ( localize(4385, 'Cancel'));
149
+ quickPick.title = ( localize(4386, "Manage Trusted Extensions"));
150
+ quickPick.placeholder = ( localize(4387, "Choose which extensions can access this account"));
151
151
  disposableStore.add(quickPick.onDidAccept(() => {
152
152
  const updatedAllowedList = ( quickPick.items
153
153
  .filter((item) => item.type !== 'separator')
@@ -18,8 +18,8 @@ class ManageTrustedMcpServersForAccountAction extends Action2 {
18
18
  constructor() {
19
19
  super({
20
20
  id: '_manageTrustedMCPServersForAccount',
21
- title: ( localize2(4380, "Manage Trusted MCP Servers For Account")),
22
- category: ( localize2(4381, "Accounts")),
21
+ title: ( localize2(4388, "Manage Trusted MCP Servers For Account")),
22
+ category: ( localize2(4389, "Accounts")),
23
23
  f1: true
24
24
  });
25
25
  }
@@ -57,7 +57,7 @@ let ManageTrustedMcpServersForAccountActionImpl = class ManageTrustedMcpServersF
57
57
  }
58
58
  const accounts = await this._getAllAvailableAccounts();
59
59
  const pick = await this._quickInputService.pick(accounts, {
60
- placeHolder: ( localize(4382, "Pick an account to manage trusted MCP servers for")),
60
+ placeHolder: ( localize(4390, "Pick an account to manage trusted MCP servers for")),
61
61
  matchOnDescription: true,
62
62
  });
63
63
  return pick ? this._authenticationQueryService.provider(pick.providerId).account(pick.label) : undefined;
@@ -95,7 +95,7 @@ let ManageTrustedMcpServersForAccountActionImpl = class ManageTrustedMcpServersF
95
95
  };
96
96
  }));
97
97
  if (!filteredMcpServers.length) {
98
- this._dialogService.info(( localize(4383, "This account has not been used by any MCP servers.")));
98
+ this._dialogService.info(( localize(4391, "This account has not been used by any MCP servers.")));
99
99
  return [];
100
100
  }
101
101
  const trustedServers = filteredMcpServers.filter(s => s.trusted);
@@ -103,20 +103,20 @@ let ManageTrustedMcpServersForAccountActionImpl = class ManageTrustedMcpServersF
103
103
  const sortByLastUsed = (a, b) => (b.lastUsed || 0) - (a.lastUsed || 0);
104
104
  return [
105
105
  ...( otherServers.sort(sortByLastUsed).map(this._toQuickPickItem)),
106
- { type: 'separator', label: ( localize(4384, "Trusted by Microsoft")) },
106
+ { type: 'separator', label: ( localize(4392, "Trusted by Microsoft")) },
107
107
  ...( trustedServers.sort(sortByLastUsed).map(this._toQuickPickItem))
108
108
  ];
109
109
  }
110
110
  _toQuickPickItem(mcpServer) {
111
111
  const lastUsed = mcpServer.lastUsed;
112
112
  const description = lastUsed
113
- ? ( localize(4385, "Last used this account {0}", fromNow(lastUsed, true)))
114
- : ( localize(4386, "Has not used this account"));
113
+ ? ( localize(4393, "Last used this account {0}", fromNow(lastUsed, true)))
114
+ : ( localize(4394, "Has not used this account"));
115
115
  let tooltip;
116
116
  let disabled;
117
117
  if (mcpServer.trusted) {
118
118
  tooltip = ( localize(
119
- 4387,
119
+ 4395,
120
120
  "This MCP server is trusted by Microsoft and\nalways has access to this account"
121
121
  ));
122
122
  disabled = true;
@@ -128,7 +128,7 @@ let ManageTrustedMcpServersForAccountActionImpl = class ManageTrustedMcpServersF
128
128
  tooltip,
129
129
  disabled,
130
130
  buttons: [{
131
- tooltip: ( localize(4388, "Manage account preferences for this MCP server")),
131
+ tooltip: ( localize(4396, "Manage account preferences for this MCP server")),
132
132
  iconClass: ThemeIcon.asClassName(Codicon.settingsGear),
133
133
  }],
134
134
  picked: mcpServer.allowed === undefined || mcpServer.allowed
@@ -139,9 +139,9 @@ let ManageTrustedMcpServersForAccountActionImpl = class ManageTrustedMcpServersF
139
139
  const quickPick = disposableStore.add(this._quickInputService.createQuickPick({ useSeparators: true }));
140
140
  quickPick.canSelectMany = true;
141
141
  quickPick.customButton = true;
142
- quickPick.customLabel = ( localize(4389, 'Cancel'));
143
- quickPick.title = ( localize(4390, "Manage Trusted MCP Servers"));
144
- quickPick.placeholder = ( localize(4391, "Choose which MCP servers can access this account"));
142
+ quickPick.customLabel = ( localize(4397, 'Cancel'));
143
+ quickPick.title = ( localize(4398, "Manage Trusted MCP Servers"));
144
+ quickPick.placeholder = ( localize(4399, "Choose which MCP servers can access this account"));
145
145
  disposableStore.add(quickPick.onDidAccept(() => {
146
146
  quickPick.hide();
147
147
  const allServers = ( quickPick.items
@@ -11,7 +11,7 @@ class SignOutOfAccountAction extends Action2 {
11
11
  constructor() {
12
12
  super({
13
13
  id: '_signOutOfAccount',
14
- title: ( localize(4392, "Sign out of account")),
14
+ title: ( localize(4400, "Sign out of account")),
15
15
  f1: false
16
16
  });
17
17
  }
@@ -32,13 +32,13 @@ class SignOutOfAccountAction extends Action2 {
32
32
  type: Severity.Info,
33
33
  message: accountUsages.length
34
34
  ? ( localize(
35
- 4393,
35
+ 4401,
36
36
  "The account '{0}' has been used by: \n\n{1}\n\n Sign out from these extensions?",
37
37
  accountLabel,
38
38
  ( accountUsages.map(usage => usage.extensionName)).join('\n')
39
39
  ))
40
- : ( localize(4394, "Sign out of '{0}'?", accountLabel)),
41
- primaryButton: ( localize(4395, "&&Sign Out"))
40
+ : ( localize(4402, "Sign out of '{0}'?", accountLabel)),
41
+ primaryButton: ( localize(4403, "&&Sign Out"))
42
42
  });
43
43
  if (confirmed) {
44
44
  const removeSessionPromises = ( sessions.map(session => authenticationService.removeSession(providerId, session.id)));
@@ -41,9 +41,9 @@ class AuthenticationDataRenderer extends Disposable {
41
41
  return { data: { headers: [], rows: [] }, dispose: () => { } };
42
42
  }
43
43
  const headers = [
44
- ( localize(4396, "Label")),
45
- ( localize(4397, "ID")),
46
- ( localize(4398, "MCP Authorization Servers"))
44
+ ( localize(4404, "Label")),
45
+ ( localize(4405, "ID")),
46
+ ( localize(4406, "MCP Authorization Servers"))
47
47
  ];
48
48
  const rows = ( authentication
49
49
  .sort((a, b) => a.label.localeCompare(b.label))
@@ -65,7 +65,7 @@ class AuthenticationDataRenderer extends Disposable {
65
65
  }
66
66
  const extensionFeature = ( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
67
67
  id: 'authentication',
68
- label: ( localize(4399, "Authentication")),
68
+ label: ( localize(4407, "Authentication")),
69
69
  access: {
70
70
  canToggle: false
71
71
  },
@@ -5,7 +5,7 @@ import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform
5
5
  import { IActivityService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/activity/common/activity.service";
6
6
  import { IAuthenticationAccessService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/browser/authenticationAccessService.service";
7
7
  import { IAuthenticationUsageService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/browser/authenticationUsageService.service";
8
- import { AuthenticationSession, AuthenticationSessionAccount, IAuthenticationWWWAuthenticateRequest } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/common/authentication";
8
+ import { AuthenticationSession, AuthenticationSessionAccount, IAuthenticationWwwAuthenticateRequest } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/common/authentication";
9
9
  import { IAuthenticationExtensionsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/common/authentication.service";
10
10
  import { IAuthenticationService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/common/authentication.service";
11
11
  import { IProductService } from "@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service";
@@ -47,8 +47,8 @@ export declare class AuthenticationExtensionsService extends Disposable implemen
47
47
  /**
48
48
  * This function should be used only when there are sessions to disambiguate.
49
49
  */
50
- selectSession(providerId: string, extensionId: string, extensionName: string, scopeListOrRequest: ReadonlyArray<string> | IAuthenticationWWWAuthenticateRequest, availableSessions: AuthenticationSession[]): Promise<AuthenticationSession>;
50
+ selectSession(providerId: string, extensionId: string, extensionName: string, scopeListOrRequest: ReadonlyArray<string> | IAuthenticationWwwAuthenticateRequest, availableSessions: AuthenticationSession[]): Promise<AuthenticationSession>;
51
51
  private completeSessionAccessRequest;
52
- requestSessionAccess(providerId: string, extensionId: string, extensionName: string, scopeListOrRequest: ReadonlyArray<string> | IAuthenticationWWWAuthenticateRequest, possibleSessions: AuthenticationSession[]): void;
53
- requestNewSession(providerId: string, scopeListOrRequest: ReadonlyArray<string> | IAuthenticationWWWAuthenticateRequest, extensionId: string, extensionName: string): Promise<void>;
52
+ requestSessionAccess(providerId: string, extensionId: string, extensionName: string, scopeListOrRequest: ReadonlyArray<string> | IAuthenticationWwwAuthenticateRequest, possibleSessions: AuthenticationSession[]): void;
53
+ requestNewSession(providerId: string, scopeListOrRequest: ReadonlyArray<string> | IAuthenticationWwwAuthenticateRequest, extensionId: string, extensionName: string): Promise<void>;
54
54
  }
@@ -11,11 +11,11 @@ import '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/noti
11
11
  import { IQuickInputService } from '@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service';
12
12
  import { StorageScope, StorageTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage';
13
13
  import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
14
- import { NumberBadge } from '@codingame/monaco-vscode-9a5ab9e7-d838-5831-9eb4-e79ea3764dcb-common/vscode/vs/workbench/services/activity/common/activity';
14
+ import { NumberBadge } from '@codingame/monaco-vscode-d941ac7b-412f-57e3-b1bf-f6b0eb253b21-common/vscode/vs/workbench/services/activity/common/activity';
15
15
  import { IActivityService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/activity/common/activity.service';
16
16
  import { IAuthenticationAccessService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/browser/authenticationAccessService.service';
17
17
  import { IAuthenticationUsageService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/browser/authenticationUsageService.service';
18
- import { isAuthenticationWWWAuthenticateRequest } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/common/authentication';
18
+ import { isAuthenticationWwwAuthenticateRequest } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/common/authentication';
19
19
  import { IAuthenticationService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/common/authentication.service';
20
20
  import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
21
21
  import { IProductService } from '@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service';
@@ -113,7 +113,7 @@ let AuthenticationExtensionsService = class AuthenticationExtensionsService exte
113
113
  numberOfRequests += ( Object.keys(accessRequest)).length;
114
114
  });
115
115
  if (numberOfRequests > 0) {
116
- const badge = ( new NumberBadge(numberOfRequests, () => ( localize(13059, "Sign in requested"))));
116
+ const badge = ( new NumberBadge(numberOfRequests, () => ( localize(13181, "Sign in requested"))));
117
117
  this._accountBadgeDisposable.value = this.activityService.showAccountsActivity({ badge });
118
118
  }
119
119
  }
@@ -180,7 +180,7 @@ let AuthenticationExtensionsService = class AuthenticationExtensionsService exte
180
180
  const { result } = await this.dialogService.prompt({
181
181
  type: Severity.Info,
182
182
  message: ( localize(
183
- 13060,
183
+ 13182,
184
184
  "The extension '{0}' wants to access the {1} account '{2}'.",
185
185
  extensionName,
186
186
  provider.label,
@@ -188,11 +188,11 @@ let AuthenticationExtensionsService = class AuthenticationExtensionsService exte
188
188
  )),
189
189
  buttons: [
190
190
  {
191
- label: ( localize(13061, "&&Allow")),
191
+ label: ( localize(13183, "&&Allow")),
192
192
  run: () => SessionPromptChoice.Allow
193
193
  },
194
194
  {
195
- label: ( localize(13062, "&&Deny")),
195
+ label: ( localize(13184, "&&Deny")),
196
196
  run: () => SessionPromptChoice.Deny
197
197
  }
198
198
  ],
@@ -228,16 +228,16 @@ let AuthenticationExtensionsService = class AuthenticationExtensionsService exte
228
228
  items.push({ label: account.label, account });
229
229
  }
230
230
  });
231
- items.push({ label: ( localize(13063, "Sign in to another account")) });
231
+ items.push({ label: ( localize(13185, "Sign in to another account")) });
232
232
  quickPick.items = items;
233
233
  quickPick.title = ( localize(
234
- 13064,
234
+ 13186,
235
235
  "The extension '{0}' wants to access a {1} account",
236
236
  extensionName,
237
237
  this._authenticationService.getProvider(providerId).label
238
238
  ));
239
239
  quickPick.placeholder = ( localize(
240
- 13065,
240
+ 13187,
241
241
  "Select an account for '{0}' to use or Esc to cancel",
242
242
  extensionName
243
243
  ));
@@ -309,7 +309,7 @@ let AuthenticationExtensionsService = class AuthenticationExtensionsService exte
309
309
  group: '3_accessRequests',
310
310
  command: {
311
311
  id: `${providerId}${extensionId}Access`,
312
- title: ( localize(13066, "Grant access to {0} for {1}... (1)", provider.label, extensionName))
312
+ title: ( localize(13188, "Grant access to {0} for {1}... (1)", provider.label, extensionName))
313
313
  }
314
314
  }));
315
315
  const accessCommand = CommandsRegistry.registerCommand({
@@ -341,8 +341,8 @@ let AuthenticationExtensionsService = class AuthenticationExtensionsService exte
341
341
  return;
342
342
  }
343
343
  const providerRequests = this._signInRequestItems.get(providerId);
344
- const signInRequestKey = isAuthenticationWWWAuthenticateRequest(scopeListOrRequest)
345
- ? `${scopeListOrRequest.wwwAuthenticate}:${scopeListOrRequest.scopes?.join(SCOPESLIST_SEPARATOR) ?? ''}`
344
+ const signInRequestKey = isAuthenticationWwwAuthenticateRequest(scopeListOrRequest)
345
+ ? `${scopeListOrRequest.wwwAuthenticate}:${scopeListOrRequest.fallbackScopes?.join(SCOPESLIST_SEPARATOR) ?? ''}`
346
346
  : `${scopeListOrRequest.join(SCOPESLIST_SEPARATOR)}`;
347
347
  const extensionHasExistingRequest = providerRequests
348
348
  && providerRequests[signInRequestKey]
@@ -355,7 +355,7 @@ let AuthenticationExtensionsService = class AuthenticationExtensionsService exte
355
355
  group: '2_signInRequests',
356
356
  command: {
357
357
  id: commandId,
358
- title: ( localize(13067, "Sign in with {0} to use {1} (1)", provider.label, extensionName))
358
+ title: ( localize(13189, "Sign in with {0} to use {1} (1)", provider.label, extensionName))
359
359
  }
360
360
  }));
361
361
  const signInCommand = CommandsRegistry.registerCommand({