@codingame/monaco-vscode-edit-sessions-service-override 11.1.2 → 12.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.
- package/index.d.ts +2 -1
- package/index.js +21 -1
- package/package.json +21 -7
- package/vscode/src/vs/workbench/contrib/editSessions/browser/editSessions.contribution.d.ts +96 -0
- package/vscode/src/vs/workbench/contrib/editSessions/browser/editSessions.contribution.js +171 -173
- package/vscode/src/vs/workbench/contrib/editSessions/browser/editSessionsFileSystemProvider.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/editSessions/browser/editSessionsFileSystemProvider.js +4 -3
- package/vscode/src/vs/workbench/contrib/editSessions/browser/editSessionsStorageService.d.ts +80 -0
- package/vscode/src/vs/workbench/contrib/editSessions/browser/editSessionsStorageService.js +72 -78
- package/vscode/src/vs/workbench/contrib/editSessions/browser/editSessionsViews.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/editSessions/browser/editSessionsViews.js +58 -68
- package/vscode/src/vs/workbench/contrib/editSessions/common/editSessions.d.ts +52 -0
- package/vscode/src/vs/workbench/contrib/editSessions/common/editSessions.js +13 -12
- package/vscode/src/vs/workbench/contrib/editSessions/common/editSessionsLogService.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/editSessions/common/editSessionsLogService.js +7 -6
- package/vscode/src/vs/workbench/contrib/editSessions/common/editSessionsStorageClient.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/editSessions/common/editSessionsStorageClient.js +2 -1
- package/vscode/src/vs/workbench/contrib/editSessions/common/workspaceStateSync.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/editSessions/common/workspaceStateSync.js +10 -7
- package/vscode/src/vs/workbench/services/workspaces/common/editSessionIdentityService.d.ts +21 -0
- package/vscode/src/vs/workbench/services/workspaces/common/editSessionIdentityService.js +3 -1
- package/vscode/src/vs/workbench/services/workspaces/common/workspaceIdentityService.d.ts +13 -0
- package/vscode/src/vs/workbench/services/workspaces/common/workspaceIdentityService.js +3 -1
- package/editSessions.js +0 -20
package/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import type { IEditorOverrideServices } from "vscode/vscode/vs/editor/standalone/browser/standaloneServices";
|
|
2
|
+
export default function getServiceOverride(): IEditorOverrideServices;
|
package/index.js
CHANGED
|
@@ -1 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
3
|
+
import { EditSessionsLogService } from './vscode/src/vs/workbench/contrib/editSessions/common/editSessionsLogService.js';
|
|
4
|
+
import { IEditSessionsLogService, IEditSessionsStorageService } from 'vscode/vscode/vs/workbench/contrib/editSessions/common/editSessions.service';
|
|
5
|
+
import { EditSessionsWorkbenchService } from './vscode/src/vs/workbench/contrib/editSessions/browser/editSessionsStorageService.js';
|
|
6
|
+
import { WorkspaceIdentityService } from './vscode/src/vs/workbench/services/workspaces/common/workspaceIdentityService.js';
|
|
7
|
+
import { IWorkspaceIdentityService } from 'vscode/vscode/vs/workbench/services/workspaces/common/workspaceIdentityService.service';
|
|
8
|
+
import { IEditSessionIdentityService } from 'vscode/vscode/vs/platform/workspace/common/editSessions.service';
|
|
9
|
+
import { EditSessionIdentityService } from './vscode/src/vs/workbench/services/workspaces/common/editSessionIdentityService.js';
|
|
10
|
+
import './vscode/src/vs/workbench/contrib/editSessions/browser/editSessions.contribution.js';
|
|
11
|
+
|
|
12
|
+
function getServiceOverride() {
|
|
13
|
+
return {
|
|
14
|
+
[IEditSessionsLogService.toString()]: new SyncDescriptor(EditSessionsLogService, [], false),
|
|
15
|
+
[IEditSessionsStorageService.toString()]: new SyncDescriptor(EditSessionsWorkbenchService, [], false),
|
|
16
|
+
[IWorkspaceIdentityService.toString()]: new SyncDescriptor(WorkspaceIdentityService, [], false),
|
|
17
|
+
[IEditSessionIdentityService.toString()]: new SyncDescriptor(EditSessionIdentityService, [], false)
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { getServiceOverride as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-edit-sessions-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "VSCode public API plugged on the monaco editor - edit-sessions service-override",
|
|
4
6
|
"keywords": [],
|
|
5
7
|
"author": {
|
|
6
8
|
"name": "CodinGame",
|
|
@@ -12,8 +14,18 @@
|
|
|
12
14
|
"url": "git+ssh://git@github.com/CodinGame/monaco-vscode-api.git"
|
|
13
15
|
},
|
|
14
16
|
"type": "module",
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@codingame/monaco-vscode-3607c442-ae7a-594b-b840-038378c24fef-common": "12.0.0",
|
|
19
|
+
"@codingame/monaco-vscode-4a316137-39d1-5d77-8b53-112db3547c1e-common": "12.0.0",
|
|
20
|
+
"@codingame/monaco-vscode-9e888134-1a6f-58d9-b0e6-0fc047448366-common": "12.0.0",
|
|
21
|
+
"@codingame/monaco-vscode-a2719803-af40-5ae9-a29f-8a2231c33056-common": "12.0.0",
|
|
22
|
+
"@codingame/monaco-vscode-a7c9ae3c-16d2-5d17-86b2-981be7094566-common": "12.0.0",
|
|
23
|
+
"@codingame/monaco-vscode-d6e33d82-c101-549d-a885-0807ab3e0cfb-common": "12.0.0",
|
|
24
|
+
"@codingame/monaco-vscode-f48982c4-9e82-55e2-b800-20e6d1e6096f-common": "12.0.0",
|
|
25
|
+
"vscode": "npm:@codingame/monaco-vscode-api@12.0.0"
|
|
26
|
+
},
|
|
27
|
+
"peerDependencies": {},
|
|
28
|
+
"peerDependenciesMeta": {},
|
|
17
29
|
"main": "index.js",
|
|
18
30
|
"module": "index.js",
|
|
19
31
|
"types": "index.d.ts",
|
|
@@ -22,10 +34,12 @@
|
|
|
22
34
|
"default": "./index.js"
|
|
23
35
|
},
|
|
24
36
|
"./vscode/*": {
|
|
25
|
-
"default": "./vscode/src/*.js"
|
|
37
|
+
"default": "./vscode/src/*.js",
|
|
38
|
+
"types": "./vscode/src/*.d.ts"
|
|
39
|
+
},
|
|
40
|
+
"./*": {
|
|
41
|
+
"default": "./*.js",
|
|
42
|
+
"types": "./*.d.ts"
|
|
26
43
|
}
|
|
27
|
-
},
|
|
28
|
-
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@11.1.2"
|
|
30
44
|
}
|
|
31
45
|
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { IWorkbenchContribution } from "vscode/vscode/vs/workbench/common/contributions";
|
|
3
|
+
import { ILifecycleService } from "vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle.service";
|
|
4
|
+
import { IEditSessionsLogService } from "vscode/vscode/vs/workbench/contrib/editSessions/common/editSessions.service";
|
|
5
|
+
import { IEditSessionsStorageService } from "vscode/vscode/vs/workbench/contrib/editSessions/common/editSessions.service";
|
|
6
|
+
import { ISCMService } from "vscode/vscode/vs/workbench/contrib/scm/common/scm.service";
|
|
7
|
+
import { IFileService } from "vscode/vscode/vs/platform/files/common/files.service";
|
|
8
|
+
import { IWorkspaceContextService } from "vscode/vscode/vs/platform/workspace/common/workspace.service";
|
|
9
|
+
import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
|
|
10
|
+
import { IProgress, IProgressStep } from "vscode/vscode/vs/platform/progress/common/progress";
|
|
11
|
+
import { IProgressService } from "vscode/vscode/vs/platform/progress/common/progress.service";
|
|
12
|
+
import { ITelemetryService } from "vscode/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
13
|
+
import { INotificationService } from "vscode/vscode/vs/platform/notification/common/notification.service";
|
|
14
|
+
import { IFileDialogService } from "vscode/vscode/vs/platform/dialogs/common/dialogs.service";
|
|
15
|
+
import { IDialogService } from "vscode/vscode/vs/platform/dialogs/common/dialogs.service";
|
|
16
|
+
import { IProductService } from "vscode/vscode/vs/platform/product/common/productService.service";
|
|
17
|
+
import { IOpenerService } from "vscode/vscode/vs/platform/opener/common/opener.service";
|
|
18
|
+
import { IEnvironmentService } from "vscode/vscode/vs/platform/environment/common/environment.service";
|
|
19
|
+
import { IQuickInputService } from "vscode/vscode/vs/platform/quickinput/common/quickInput.service";
|
|
20
|
+
import { IContextKeyService } from "vscode/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
21
|
+
import { ICommandService } from "vscode/vscode/vs/platform/commands/common/commands.service";
|
|
22
|
+
import { IExtensionService } from "vscode/vscode/vs/workbench/services/extensions/common/extensions.service";
|
|
23
|
+
import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
24
|
+
import { CancellationToken } from "vscode/vscode/vs/base/common/cancellation";
|
|
25
|
+
import { IEditSessionIdentityService } from "vscode/vscode/vs/platform/workspace/common/editSessions.service";
|
|
26
|
+
import { IStorageService } from "vscode/vscode/vs/platform/storage/common/storage.service";
|
|
27
|
+
import { IActivityService } from "vscode/vscode/vs/workbench/services/activity/common/activity.service";
|
|
28
|
+
import { IEditorService } from "vscode/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
29
|
+
import { IRemoteAgentService } from "vscode/vscode/vs/workbench/services/remote/common/remoteAgentService.service";
|
|
30
|
+
import { IUserDataProfilesService } from "vscode/vscode/vs/platform/userDataProfile/common/userDataProfile.service";
|
|
31
|
+
import { IRequestService } from "vscode/vscode/vs/platform/request/common/request.service";
|
|
32
|
+
import { IUriIdentityService } from "vscode/vscode/vs/platform/uriIdentity/common/uriIdentity.service";
|
|
33
|
+
import { IWorkspaceIdentityService } from "vscode/vscode/vs/workbench/services/workspaces/common/workspaceIdentityService.service";
|
|
34
|
+
export declare class EditSessionsContribution extends Disposable implements IWorkbenchContribution {
|
|
35
|
+
private readonly editSessionsStorageService;
|
|
36
|
+
private readonly fileService;
|
|
37
|
+
private readonly progressService;
|
|
38
|
+
private readonly openerService;
|
|
39
|
+
private readonly telemetryService;
|
|
40
|
+
private readonly scmService;
|
|
41
|
+
private readonly notificationService;
|
|
42
|
+
private readonly dialogService;
|
|
43
|
+
private readonly logService;
|
|
44
|
+
private readonly environmentService;
|
|
45
|
+
private readonly instantiationService;
|
|
46
|
+
private readonly productService;
|
|
47
|
+
private configurationService;
|
|
48
|
+
private readonly contextService;
|
|
49
|
+
private readonly editSessionIdentityService;
|
|
50
|
+
private readonly quickInputService;
|
|
51
|
+
private commandService;
|
|
52
|
+
private readonly contextKeyService;
|
|
53
|
+
private readonly fileDialogService;
|
|
54
|
+
private readonly lifecycleService;
|
|
55
|
+
private readonly storageService;
|
|
56
|
+
private readonly activityService;
|
|
57
|
+
private readonly editorService;
|
|
58
|
+
private readonly remoteAgentService;
|
|
59
|
+
private readonly extensionService;
|
|
60
|
+
private readonly requestService;
|
|
61
|
+
private readonly userDataProfilesService;
|
|
62
|
+
private readonly uriIdentityService;
|
|
63
|
+
private readonly workspaceIdentityService;
|
|
64
|
+
private continueEditSessionOptions;
|
|
65
|
+
private readonly shouldShowViewsContext;
|
|
66
|
+
private readonly pendingEditSessionsContext;
|
|
67
|
+
private static APPLICATION_LAUNCHED_VIA_CONTINUE_ON_STORAGE_KEY;
|
|
68
|
+
private readonly accountsMenuBadgeDisposable;
|
|
69
|
+
private registeredCommands;
|
|
70
|
+
private workspaceStateSynchronizer;
|
|
71
|
+
private editSessionsStorageClient;
|
|
72
|
+
constructor(editSessionsStorageService: IEditSessionsStorageService, fileService: IFileService, progressService: IProgressService, openerService: IOpenerService, telemetryService: ITelemetryService, scmService: ISCMService, notificationService: INotificationService, dialogService: IDialogService, logService: IEditSessionsLogService, environmentService: IEnvironmentService, instantiationService: IInstantiationService, productService: IProductService, configurationService: IConfigurationService, contextService: IWorkspaceContextService, editSessionIdentityService: IEditSessionIdentityService, quickInputService: IQuickInputService, commandService: ICommandService, contextKeyService: IContextKeyService, fileDialogService: IFileDialogService, lifecycleService: ILifecycleService, storageService: IStorageService, activityService: IActivityService, editorService: IEditorService, remoteAgentService: IRemoteAgentService, extensionService: IExtensionService, requestService: IRequestService, userDataProfilesService: IUserDataProfilesService, uriIdentityService: IUriIdentityService, workspaceIdentityService: IWorkspaceIdentityService);
|
|
73
|
+
private autoResumeEditSession;
|
|
74
|
+
private updateAccountsMenuBadge;
|
|
75
|
+
private autoStoreEditSession;
|
|
76
|
+
private registerViews;
|
|
77
|
+
private registerActions;
|
|
78
|
+
private registerShowEditSessionOutputChannelAction;
|
|
79
|
+
private registerShowEditSessionViewAction;
|
|
80
|
+
private registerContinueEditSessionAction;
|
|
81
|
+
private registerResumeLatestEditSessionAction;
|
|
82
|
+
private registerStoreLatestEditSessionAction;
|
|
83
|
+
resumeEditSession(ref?: string, silent?: boolean, forceApplyUnrelatedChange?: boolean, applyPartialMatch?: boolean, progress?: IProgress<IProgressStep>, serializedData?: string): Promise<void>;
|
|
84
|
+
private generateChanges;
|
|
85
|
+
private willChangeLocalContents;
|
|
86
|
+
storeEditSession(fromStoreCommand: boolean, cancellationToken: CancellationToken): Promise<string | undefined>;
|
|
87
|
+
private getChangedResources;
|
|
88
|
+
private hasEditSession;
|
|
89
|
+
private shouldContinueOnWithEditSession;
|
|
90
|
+
private registerContributedEditSessionOptions;
|
|
91
|
+
private generateStandaloneOptionCommand;
|
|
92
|
+
private registerContinueInLocalFolderAction;
|
|
93
|
+
private pickContinueEditSessionDestination;
|
|
94
|
+
private resolveDestination;
|
|
95
|
+
private createPickItems;
|
|
96
|
+
}
|