@codingame/monaco-vscode-edit-sessions-service-override 20.1.0 → 20.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-edit-sessions-service-override",
3
- "version": "20.1.0",
3
+ "version": "20.2.0",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - edit-sessions service-override",
6
6
  "keywords": [],
@@ -15,13 +15,13 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-249dc928-1da3-51c1-82d0-45e0ba9d08a1-common": "20.1.0",
19
- "@codingame/monaco-vscode-4a316137-39d1-5d77-8b53-112db3547c1e-common": "20.1.0",
20
- "@codingame/monaco-vscode-a8d3bd74-e63e-5327-96e8-4f931661e329-common": "20.1.0",
21
- "@codingame/monaco-vscode-api": "20.1.0",
22
- "@codingame/monaco-vscode-d941ac7b-412f-57e3-b1bf-f6b0eb253b21-common": "20.1.0",
23
- "@codingame/monaco-vscode-dbfe5f85-b426-55ed-a79b-5f811b395762-common": "20.1.0",
24
- "@codingame/monaco-vscode-f22e7e55-aee8-5b52-a6bc-950efd9f5890-common": "20.1.0"
18
+ "@codingame/monaco-vscode-249dc928-1da3-51c1-82d0-45e0ba9d08a1-common": "20.2.0",
19
+ "@codingame/monaco-vscode-4a316137-39d1-5d77-8b53-112db3547c1e-common": "20.2.0",
20
+ "@codingame/monaco-vscode-a8d3bd74-e63e-5327-96e8-4f931661e329-common": "20.2.0",
21
+ "@codingame/monaco-vscode-api": "20.2.0",
22
+ "@codingame/monaco-vscode-d941ac7b-412f-57e3-b1bf-f6b0eb253b21-common": "20.2.0",
23
+ "@codingame/monaco-vscode-dbfe5f85-b426-55ed-a79b-5f811b395762-common": "20.2.0",
24
+ "@codingame/monaco-vscode-f22e7e55-aee8-5b52-a6bc-950efd9f5890-common": "20.2.0"
25
25
  },
26
26
  "main": "index.js",
27
27
  "module": "index.js",
@@ -51,7 +51,19 @@ export declare class EditSessionsWorkbenchService extends Disposable implements
51
51
  }>;
52
52
  storeClient: EditSessionsStoreClient | undefined;
53
53
  constructor(fileService: IFileService, storageService: IStorageService, quickInputService: IQuickInputService, authenticationService: IAuthenticationService, extensionService: IExtensionService, environmentService: IEnvironmentService, logService: IEditSessionsLogService, productService: IProductService, contextKeyService: IContextKeyService, dialogService: IDialogService, secretStorageService: ISecretStorageService);
54
+ /**
55
+ * @param resource: The resource to retrieve content for.
56
+ * @param content An object representing resource state to be restored.
57
+ * @returns The ref of the stored state.
58
+ */
54
59
  write(resource: SyncResource, content: string | EditSession): Promise<string>;
60
+ /**
61
+ * @param resource: The resource to retrieve content for.
62
+ * @param ref: A specific content ref to retrieve content for, if it exists.
63
+ * If undefined, this method will return the latest saved edit session, if any.
64
+ *
65
+ * @returns An object representing the requested or latest state, if any.
66
+ */
55
67
  read(resource: SyncResource, ref: string | undefined): Promise<{
56
68
  ref: string;
57
69
  content: string;
@@ -59,15 +71,35 @@ export declare class EditSessionsWorkbenchService extends Disposable implements
59
71
  delete(resource: SyncResource, ref: string | null): Promise<void>;
60
72
  list(resource: SyncResource): Promise<IResourceRefHandle[]>;
61
73
  initialize(reason: "read" | "write", silent?: boolean): Promise<boolean>;
74
+ /**
75
+ *
76
+ * Ensures that the store client is initialized,
77
+ * meaning that authentication is configured and it
78
+ * can be used to communicate with the remote storage service
79
+ */
62
80
  private doInitialize;
63
81
  private cachedMachines;
64
82
  getMachineById(machineId: string): Promise<string | undefined>;
65
83
  private getOrCreateCurrentMachineId;
66
84
  private getAuthenticationSession;
67
85
  private shouldAttemptEditSessionInit;
86
+ /**
87
+ *
88
+ * Prompts the user to pick an authentication option for storing and getting edit sessions.
89
+ */
68
90
  private getAccountPreference;
69
91
  private createQuickpickItems;
92
+ /**
93
+ *
94
+ * Returns all authentication sessions available from {@link getAuthenticationProviders}.
95
+ */
70
96
  private getAllSessions;
97
+ /**
98
+ *
99
+ * Returns all authentication providers which can be used to authenticate
100
+ * to the remote storage service, based on product.json configuration
101
+ * and registered authentication providers.
102
+ */
71
103
  private getAuthenticationProviders;
72
104
  private get existingSessionId();
73
105
  private set existingSessionId(value);