@codingame/monaco-vscode-authentication-service-override 12.0.1 → 13.1.0

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/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { type IEditorOverrideServices } from "vscode/vscode/vs/editor/standalone/browser/standaloneServices";
1
+ import { type IEditorOverrideServices } from "@codingame/monaco-vscode-api/vscode/vs/editor/standalone/browser/standaloneServices";
2
2
  export default function getServiceOverride(): IEditorOverrideServices;
package/index.js CHANGED
@@ -1,13 +1,13 @@
1
1
 
2
- import 'vscode/vscode/vs/editor/standalone/browser/standaloneServices';
3
- import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
4
- import { IAuthenticationService, IAuthenticationExtensionsService } from 'vscode/vscode/vs/workbench/services/authentication/common/authentication.service';
2
+ import '@codingame/monaco-vscode-api/vscode/vs/editor/standalone/browser/standaloneServices';
3
+ import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
4
+ import { IAuthenticationService, IAuthenticationExtensionsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/common/authentication.service';
5
5
  import { AuthenticationService } from '@codingame/monaco-vscode-3607c442-ae7a-594b-b840-038378c24fef-common/vscode/vs/workbench/services/authentication/browser/authenticationService';
6
6
  import { AuthenticationAccessService } from './vscode/src/vs/workbench/services/authentication/browser/authenticationAccessService.js';
7
7
  import { AuthenticationUsageService } from './vscode/src/vs/workbench/services/authentication/browser/authenticationUsageService.js';
8
8
  import { AuthenticationExtensionsService } from './vscode/src/vs/workbench/services/authentication/browser/authenticationExtensionsService.js';
9
- import { IAuthenticationAccessService } from 'vscode/vscode/vs/workbench/services/authentication/browser/authenticationAccessService.service';
10
- import { IAuthenticationUsageService } from 'vscode/vscode/vs/workbench/services/authentication/browser/authenticationUsageService.service';
9
+ import { IAuthenticationAccessService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/browser/authenticationAccessService.service';
10
+ import { IAuthenticationUsageService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/browser/authenticationUsageService.service';
11
11
 
12
12
  function getServiceOverride() {
13
13
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-authentication-service-override",
3
- "version": "12.0.1",
3
+ "version": "13.1.0",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - authentication service-override",
6
6
  "keywords": [],
@@ -15,12 +15,10 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-3607c442-ae7a-594b-b840-038378c24fef-common": "12.0.1",
19
- "@codingame/monaco-vscode-a7c9ae3c-16d2-5d17-86b2-981be7094566-common": "12.0.1",
20
- "vscode": "npm:@codingame/monaco-vscode-api@12.0.1"
18
+ "@codingame/monaco-vscode-3607c442-ae7a-594b-b840-038378c24fef-common": "13.1.0",
19
+ "@codingame/monaco-vscode-a7c9ae3c-16d2-5d17-86b2-981be7094566-common": "13.1.0",
20
+ "@codingame/monaco-vscode-api": "13.1.0"
21
21
  },
22
- "peerDependencies": {},
23
- "peerDependenciesMeta": {},
24
22
  "main": "index.js",
25
23
  "module": "index.js",
26
24
  "types": "index.d.ts",
@@ -1,9 +1,9 @@
1
- import { Event } from "vscode/vscode/vs/base/common/event";
2
- import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
3
- import { IProductService } from "vscode/vscode/vs/platform/product/common/productService.service";
4
- import { IStorageService } from "vscode/vscode/vs/platform/storage/common/storage.service";
5
- import { AllowedExtension } from "vscode/vscode/vs/workbench/services/authentication/common/authentication";
6
- import { IAuthenticationAccessService } from "vscode/vscode/vs/workbench/services/authentication/browser/authenticationAccessService.service";
1
+ import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
2
+ import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
3
+ import { IProductService } from "@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service";
4
+ import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
5
+ import { AllowedExtension } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/common/authentication";
6
+ import { IAuthenticationAccessService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/browser/authenticationAccessService.service";
7
7
  export declare class AuthenticationAccessService extends Disposable implements IAuthenticationAccessService {
8
8
  private readonly _storageService;
9
9
  private readonly _productService;
@@ -1,12 +1,12 @@
1
1
 
2
- import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
3
- import { Emitter } from 'vscode/vscode/vs/base/common/event';
4
- import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
5
- import 'vscode/vscode/vs/platform/instantiation/common/extensions';
6
- import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService.service';
7
- import { StorageScope, StorageTarget } from 'vscode/vscode/vs/platform/storage/common/storage';
8
- import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
9
- import 'vscode/vscode/vs/platform/instantiation/common/instantiation';
2
+ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
3
+ import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
4
+ import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
5
+ import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
6
+ import { IProductService } from '@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service';
7
+ import { StorageScope, StorageTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage';
8
+ import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
9
+ import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
10
10
 
11
11
  let AuthenticationAccessService = class AuthenticationAccessService extends Disposable {
12
12
  constructor(_storageService, _productService) {
@@ -1,14 +1,14 @@
1
- import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
2
- import { IDialogService } from "vscode/vscode/vs/platform/dialogs/common/dialogs.service";
3
- import { IQuickInputService } from "vscode/vscode/vs/platform/quickinput/common/quickInput.service";
4
- import { IStorageService } from "vscode/vscode/vs/platform/storage/common/storage.service";
5
- import { IActivityService } from "vscode/vscode/vs/workbench/services/activity/common/activity.service";
6
- import { IAuthenticationAccessService } from "vscode/vscode/vs/workbench/services/authentication/browser/authenticationAccessService.service";
7
- import { IAuthenticationUsageService } from "vscode/vscode/vs/workbench/services/authentication/browser/authenticationUsageService.service";
8
- import { AuthenticationSession, AuthenticationSessionAccount } from "vscode/vscode/vs/workbench/services/authentication/common/authentication";
9
- import { IAuthenticationExtensionsService } from "vscode/vscode/vs/workbench/services/authentication/common/authentication.service";
10
- import { IAuthenticationService } from "vscode/vscode/vs/workbench/services/authentication/common/authentication.service";
11
- import { IProductService } from "vscode/vscode/vs/platform/product/common/productService.service";
1
+ import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
2
+ import { IDialogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service";
3
+ import { IQuickInputService } from "@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service";
4
+ import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
5
+ import { IActivityService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/activity/common/activity.service";
6
+ import { IAuthenticationAccessService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/browser/authenticationAccessService.service";
7
+ import { IAuthenticationUsageService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/browser/authenticationUsageService.service";
8
+ import { AuthenticationSession, AuthenticationSessionAccount } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/common/authentication";
9
+ import { IAuthenticationExtensionsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/common/authentication.service";
10
+ import { IAuthenticationService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/common/authentication.service";
11
+ import { IProductService } from "@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service";
12
12
  export declare class AuthenticationExtensionsService extends Disposable implements IAuthenticationExtensionsService {
13
13
  private readonly activityService;
14
14
  private readonly storageService;
@@ -23,7 +23,7 @@ export declare class AuthenticationExtensionsService extends Disposable implemen
23
23
  private _sessionAccessRequestItems;
24
24
  private readonly _accountBadgeDisposable;
25
25
  private _onDidAccountPreferenceChange;
26
- readonly onDidChangeAccountPreference: import("vscode/vscode/vs/base/common/event").Event<{
26
+ readonly onDidChangeAccountPreference: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<{
27
27
  providerId: string;
28
28
  extensionIds: string[];
29
29
  }>;
@@ -1,24 +1,24 @@
1
1
 
2
- import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
3
- import { Disposable, MutableDisposable, dispose, DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
4
- import { localize } from 'vscode/vscode/vs/nls';
5
- import { MenuRegistry, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
6
- import { CommandsRegistry } from 'vscode/vscode/vs/platform/commands/common/commands';
7
- import { IDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs.service';
8
- import 'vscode/vscode/vs/platform/instantiation/common/extensions';
9
- import 'vscode/vscode/vs/platform/notification/common/notification';
10
- import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput.service';
11
- import { StorageScope, StorageTarget } from 'vscode/vscode/vs/platform/storage/common/storage';
12
- import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
2
+ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
3
+ import { Disposable, MutableDisposable, dispose, DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
4
+ import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
5
+ import { MenuRegistry, MenuId } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
6
+ import { CommandsRegistry } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands';
7
+ import { IDialogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service';
8
+ import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
9
+ import '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification';
10
+ import { IQuickInputService } from '@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service';
11
+ import { StorageScope, StorageTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage';
12
+ import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
13
13
  import { NumberBadge } from '@codingame/monaco-vscode-a7c9ae3c-16d2-5d17-86b2-981be7094566-common/vscode/vs/workbench/services/activity/common/activity';
14
- import { IActivityService } from 'vscode/vscode/vs/workbench/services/activity/common/activity.service';
15
- import { IAuthenticationAccessService } from 'vscode/vscode/vs/workbench/services/authentication/browser/authenticationAccessService.service';
16
- import { IAuthenticationUsageService } from 'vscode/vscode/vs/workbench/services/authentication/browser/authenticationUsageService.service';
17
- import { IAuthenticationService } from 'vscode/vscode/vs/workbench/services/authentication/common/authentication.service';
18
- import { Emitter } from 'vscode/vscode/vs/base/common/event';
19
- import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService.service';
20
- import { ExtensionIdentifier } from 'vscode/vscode/vs/platform/extensions/common/extensions';
21
- import Severity from 'vscode/vscode/vs/base/common/severity';
14
+ import { IActivityService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/activity/common/activity.service';
15
+ import { IAuthenticationAccessService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/browser/authenticationAccessService.service';
16
+ import { IAuthenticationUsageService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/browser/authenticationUsageService.service';
17
+ import { IAuthenticationService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/common/authentication.service';
18
+ import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
19
+ import { IProductService } from '@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service';
20
+ import { ExtensionIdentifier } from '@codingame/monaco-vscode-api/vscode/vs/platform/extensions/common/extensions';
21
+ import Severity from '@codingame/monaco-vscode-api/vscode/vs/base/common/severity';
22
22
 
23
23
  const SCOPESLIST_SEPARATOR = ' ';
24
24
  let AuthenticationExtensionsService = class AuthenticationExtensionsService extends Disposable {
@@ -112,7 +112,7 @@ let AuthenticationExtensionsService = class AuthenticationExtensionsService exte
112
112
  numberOfRequests += ( Object.keys(accessRequest)).length;
113
113
  });
114
114
  if (numberOfRequests > 0) {
115
- const badge = ( new NumberBadge(numberOfRequests, () => ( localize(11244, "Sign in requested"))));
115
+ const badge = ( new NumberBadge(numberOfRequests, () => ( localize(11262, "Sign in requested"))));
116
116
  this._accountBadgeDisposable.value = this.activityService.showAccountsActivity({ badge });
117
117
  }
118
118
  }
@@ -179,7 +179,7 @@ let AuthenticationExtensionsService = class AuthenticationExtensionsService exte
179
179
  const { result } = await this.dialogService.prompt({
180
180
  type: Severity.Info,
181
181
  message: ( localize(
182
- 11245,
182
+ 11263,
183
183
  "The extension '{0}' wants to access the {1} account '{2}'.",
184
184
  extensionName,
185
185
  provider.label,
@@ -187,11 +187,11 @@ let AuthenticationExtensionsService = class AuthenticationExtensionsService exte
187
187
  )),
188
188
  buttons: [
189
189
  {
190
- label: ( localize(11246, "&&Allow")),
190
+ label: ( localize(11264, "&&Allow")),
191
191
  run: () => SessionPromptChoice.Allow
192
192
  },
193
193
  {
194
- label: ( localize(11247, "&&Deny")),
194
+ label: ( localize(11265, "&&Deny")),
195
195
  run: () => SessionPromptChoice.Deny
196
196
  }
197
197
  ],
@@ -227,16 +227,16 @@ let AuthenticationExtensionsService = class AuthenticationExtensionsService exte
227
227
  items.push({ label: account.label, account });
228
228
  }
229
229
  });
230
- items.push({ label: ( localize(11248, "Sign in to another account")) });
230
+ items.push({ label: ( localize(11266, "Sign in to another account")) });
231
231
  quickPick.items = items;
232
232
  quickPick.title = ( localize(
233
- 11249,
233
+ 11267,
234
234
  "The extension '{0}' wants to access a {1} account",
235
235
  extensionName,
236
236
  this._authenticationService.getProvider(providerId).label
237
237
  ));
238
238
  quickPick.placeholder = ( localize(
239
- 11250,
239
+ 11268,
240
240
  "Select an account for '{0}' to use or Esc to cancel",
241
241
  extensionName
242
242
  ));
@@ -308,7 +308,7 @@ let AuthenticationExtensionsService = class AuthenticationExtensionsService exte
308
308
  group: '3_accessRequests',
309
309
  command: {
310
310
  id: `${providerId}${extensionId}Access`,
311
- title: ( localize(11251, "Grant access to {0} for {1}... (1)", provider.label, extensionName))
311
+ title: ( localize(11269, "Grant access to {0} for {1}... (1)", provider.label, extensionName))
312
312
  }
313
313
  }));
314
314
  const accessCommand = CommandsRegistry.registerCommand({
@@ -352,7 +352,7 @@ let AuthenticationExtensionsService = class AuthenticationExtensionsService exte
352
352
  group: '2_signInRequests',
353
353
  command: {
354
354
  id: commandId,
355
- title: ( localize(11252, "Sign in with {0} to use {1} (1)", provider.label, extensionName))
355
+ title: ( localize(11270, "Sign in with {0} to use {1} (1)", provider.label, extensionName))
356
356
  }
357
357
  }));
358
358
  const signInCommand = CommandsRegistry.registerCommand({
@@ -1,9 +1,9 @@
1
- import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
2
- import { ILogService } from "vscode/vscode/vs/platform/log/common/log.service";
3
- import { IProductService } from "vscode/vscode/vs/platform/product/common/productService.service";
4
- import { IStorageService } from "vscode/vscode/vs/platform/storage/common/storage.service";
5
- import { IAuthenticationService } from "vscode/vscode/vs/workbench/services/authentication/common/authentication.service";
6
- import { IAuthenticationUsageService } from "vscode/vscode/vs/workbench/services/authentication/browser/authenticationUsageService.service";
1
+ import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
2
+ import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
3
+ import { IProductService } from "@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service";
4
+ import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
5
+ import { IAuthenticationService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/common/authentication.service";
6
+ import { IAuthenticationUsageService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/browser/authenticationUsageService.service";
7
7
  export interface IAccountUsage {
8
8
  extensionId: string;
9
9
  extensionName: string;
@@ -1,14 +1,14 @@
1
1
 
2
- import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
3
- import { Queue } from 'vscode/vscode/vs/base/common/async';
4
- import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
5
- import 'vscode/vscode/vs/platform/instantiation/common/extensions';
6
- import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
7
- import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService.service';
8
- import { StorageScope, StorageTarget } from 'vscode/vscode/vs/platform/storage/common/storage';
9
- import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
10
- import { IAuthenticationService } from 'vscode/vscode/vs/workbench/services/authentication/common/authentication.service';
11
- import 'vscode/vscode/vs/platform/instantiation/common/instantiation';
2
+ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
3
+ import { Queue } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
4
+ import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
5
+ import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
6
+ import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
7
+ import { IProductService } from '@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service';
8
+ import { StorageScope, StorageTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage';
9
+ import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
10
+ import { IAuthenticationService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/common/authentication.service';
11
+ import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
12
12
 
13
13
  let AuthenticationUsageService = class AuthenticationUsageService extends Disposable {
14
14
  constructor(_storageService, _authenticationService, _logService, productService) {