@codingame/monaco-vscode-edit-sessions-service-override 3.2.3 → 4.0.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.
@@ -1,3 +1,5 @@
1
+ export { AbstractDialogHandler, IDialogService, IFileDialogService, getFileNamesMessage } from 'vscode/vscode/vs/platform/dialogs/common/dialogs';
2
+
1
3
  var ConfirmResult;
2
4
  ( (function(ConfirmResult) {
3
5
  ConfirmResult[ConfirmResult["SAVE"] = 0] = "SAVE";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-edit-sessions-service-override",
3
- "version": "3.2.3",
3
+ "version": "4.0.0",
4
4
  "keywords": [],
5
5
  "author": {
6
6
  "name": "CodinGame",
@@ -18,6 +18,6 @@
18
18
  "module": "index.js",
19
19
  "types": "index.d.ts",
20
20
  "dependencies": {
21
- "vscode": "npm:@codingame/monaco-vscode-api@3.2.3"
21
+ "vscode": "npm:@codingame/monaco-vscode-api@4.0.0"
22
22
  }
23
23
  }
@@ -14,6 +14,8 @@ import { basename, joinPath, relativePath } from 'vscode/vscode/vs/base/common/r
14
14
  import { encodeBase64 } from 'vscode/vscode/vs/base/common/buffer';
15
15
  import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
16
16
  import { IProgressService } from 'vscode/vscode/vs/platform/progress/common/progress';
17
+ import './editSessionsStorageService.js';
18
+ import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
17
19
  import { UserDataSyncStoreError } from 'vscode/vscode/vs/platform/userDataSync/common/userDataSync';
18
20
  import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry';
19
21
  import { Severity, INotificationService } from 'vscode/vscode/vs/platform/notification/common/notification';
@@ -31,9 +33,9 @@ import { getVirtualWorkspaceLocation } from 'vscode/vscode/vs/platform/workspace
31
33
  import { Schemas } from 'vscode/vscode/vs/base/common/network';
32
34
  import { IsWebContext } from 'vscode/vscode/vs/platform/contextkey/common/contextkeys';
33
35
  import { isProposedApiEnabled, IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions';
36
+ import '../common/editSessionsLogService.js';
34
37
  import { Extensions } from 'vscode/vscode/vs/workbench/common/views';
35
38
  import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService';
36
- import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
37
39
  import { ViewPaneContainer } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
38
40
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
39
41
  import { EditSessionsDataViews } from './editSessionsViews.js';
@@ -859,14 +861,14 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
859
861
  };
860
862
  if (!( this.registeredCommands.has(command.id))) {
861
863
  this.registeredCommands.add(command.id);
862
- registerAction2(class StandaloneContinueOnOption extends Action2 {
864
+ this._register(registerAction2(class StandaloneContinueOnOption extends Action2 {
863
865
  constructor() {
864
866
  super(command);
865
867
  }
866
868
  async run(accessor) {
867
869
  return accessor.get(ICommandService).executeCommand(continueWorkingOnCommand.id, undefined, commandId);
868
870
  }
869
- });
871
+ }));
870
872
  if (remoteGroup !== undefined) {
871
873
  MenuRegistry.appendMenuItem(MenuId.StatusBarRemoteIndicatorMenu, {
872
874
  group: remoteGroup,
@@ -269,8 +269,8 @@ let EditSessionsWorkbenchService = class EditSessionsWorkbenchService extends Di
269
269
  )) });
270
270
  for (const authenticationProvider of (await this.getAuthenticationProviders())) {
271
271
  const signedInForProvider = ( sessions.some(account => account.session.providerId === authenticationProvider.id));
272
- if (!signedInForProvider || this.authenticationService.supportsMultipleAccounts(authenticationProvider.id)) {
273
- const providerName = this.authenticationService.getLabel(authenticationProvider.id);
272
+ if (!signedInForProvider || this.authenticationService.getProvider(authenticationProvider.id).supportsMultipleAccounts) {
273
+ const providerName = this.authenticationService.getProvider(authenticationProvider.id).label;
274
274
  options.push({ label: ( localizeWithPath(
275
275
  'vs/workbench/contrib/editSessions/browser/editSessionsStorageService',
276
276
  'sign in using account',
@@ -290,7 +290,7 @@ let EditSessionsWorkbenchService = class EditSessionsWorkbenchService extends Di
290
290
  for (const session of sessions) {
291
291
  const item = {
292
292
  label: session.account.label,
293
- description: this.authenticationService.getLabel(provider.id),
293
+ description: this.authenticationService.getProvider(provider.id).label,
294
294
  session: { ...session, providerId: provider.id }
295
295
  };
296
296
  accounts.set(item.session.account.id, item);
@@ -62,7 +62,7 @@ let EditSessionsDataViews = class EditSessionsDataViews extends Disposable {
62
62
  when: ( ContextKeyExpr.equals(EDIT_SESSIONS_COUNT_KEY, 0)),
63
63
  order: 1
64
64
  });
65
- registerAction2(class extends Action2 {
65
+ this._register(registerAction2(class extends Action2 {
66
66
  constructor() {
67
67
  super({
68
68
  id: 'workbench.editSessions.actions.resume',
@@ -85,8 +85,8 @@ let EditSessionsDataViews = class EditSessionsDataViews extends Disposable {
85
85
  await commandService.executeCommand('workbench.editSessions.actions.resumeLatest', editSessionId, true);
86
86
  await treeView.refresh();
87
87
  }
88
- });
89
- registerAction2(class extends Action2 {
88
+ }));
89
+ this._register(registerAction2(class extends Action2 {
90
90
  constructor() {
91
91
  super({
92
92
  id: 'workbench.editSessions.actions.store',
@@ -103,8 +103,8 @@ let EditSessionsDataViews = class EditSessionsDataViews extends Disposable {
103
103
  await commandService.executeCommand('workbench.editSessions.actions.storeCurrent');
104
104
  await treeView.refresh();
105
105
  }
106
- });
107
- registerAction2(class extends Action2 {
106
+ }));
107
+ this._register(registerAction2(class extends Action2 {
108
108
  constructor() {
109
109
  super({
110
110
  id: 'workbench.editSessions.actions.delete',
@@ -145,8 +145,8 @@ let EditSessionsDataViews = class EditSessionsDataViews extends Disposable {
145
145
  await treeView.refresh();
146
146
  }
147
147
  }
148
- });
149
- registerAction2(class extends Action2 {
148
+ }));
149
+ this._register(registerAction2(class extends Action2 {
150
150
  constructor() {
151
151
  super({
152
152
  id: 'workbench.editSessions.actions.deleteAll',
@@ -184,7 +184,7 @@ let EditSessionsDataViews = class EditSessionsDataViews extends Disposable {
184
184
  await treeView.refresh();
185
185
  }
186
186
  }
187
- });
187
+ }));
188
188
  }
189
189
  };
190
190
  EditSessionsDataViews = ( __decorate([
@@ -2,6 +2,7 @@ import { __decorate, __param } from '../../../../../../../external/tslib/tslib.e
2
2
  import { insert } from 'vscode/vscode/vs/base/common/arrays';
3
3
  import { toDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
4
4
  import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
5
+ import 'vscode/vscode/vs/platform/workspace/common/editSessions';
5
6
  import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions';
6
7
 
7
8
  let EditSessionIdentityService = class EditSessionIdentityService {