@codingame/monaco-vscode-edit-sessions-service-override 4.0.0 → 4.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/editSessions.js +4 -4
- package/package.json +2 -2
- package/external/tslib/tslib.es6.js +0 -11
- package/override/vs/platform/dialogs/common/dialogs.js +0 -10
- package/vscode/src/vs/base/browser/hash.js +0 -17
- package/vscode/src/vs/workbench/contrib/editSessions/browser/editSessions.contribution.js +0 -1199
- package/vscode/src/vs/workbench/contrib/editSessions/browser/editSessionsFileSystemProvider.js +0 -57
- package/vscode/src/vs/workbench/contrib/editSessions/browser/editSessionsStorageService.js +0 -457
- package/vscode/src/vs/workbench/contrib/editSessions/browser/editSessionsViews.js +0 -339
- package/vscode/src/vs/workbench/contrib/editSessions/common/editSessionsLogService.js +0 -41
- package/vscode/src/vs/workbench/contrib/editSessions/common/editSessionsStorageClient.js +0 -6
- package/vscode/src/vs/workbench/contrib/editSessions/common/workspaceStateSync.js +0 -142
- package/vscode/src/vs/workbench/services/workspaces/common/editSessionIdentityService.js +0 -62
package/editSessions.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
2
|
-
import { EditSessionsLogService } from '
|
|
2
|
+
import { EditSessionsLogService } from 'vscode/vscode/vs/workbench/contrib/editSessions/common/editSessionsLogService';
|
|
3
3
|
import { IEditSessionsLogService, IEditSessionsStorageService } from 'vscode/vscode/vs/workbench/contrib/editSessions/common/editSessions';
|
|
4
|
-
import { EditSessionsWorkbenchService } from '
|
|
4
|
+
import { EditSessionsWorkbenchService } from 'vscode/vscode/vs/workbench/contrib/editSessions/browser/editSessionsStorageService';
|
|
5
5
|
import { IWorkspaceIdentityService, WorkspaceIdentityService } from 'vscode/vscode/vs/workbench/services/workspaces/common/workspaceIdentityService';
|
|
6
6
|
import { IEditSessionIdentityService } from 'vscode/vscode/vs/platform/workspace/common/editSessions';
|
|
7
|
-
import { EditSessionIdentityService } from '
|
|
8
|
-
import '
|
|
7
|
+
import { EditSessionIdentityService } from 'vscode/vscode/vs/workbench/services/workspaces/common/editSessionIdentityService';
|
|
8
|
+
import 'vscode/vscode/vs/workbench/contrib/editSessions/browser/editSessions.contribution';
|
|
9
9
|
|
|
10
10
|
function getServiceOverride() {
|
|
11
11
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-edit-sessions-service-override",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.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@4.
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@4.1.0"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
function __decorate(decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
}
|
|
7
|
-
function __param(paramIndex, decorator) {
|
|
8
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export { __decorate, __param };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export { AbstractDialogHandler, IDialogService, IFileDialogService, getFileNamesMessage } from 'vscode/vscode/vs/platform/dialogs/common/dialogs';
|
|
2
|
-
|
|
3
|
-
var ConfirmResult;
|
|
4
|
-
( (function(ConfirmResult) {
|
|
5
|
-
ConfirmResult[ConfirmResult["SAVE"] = 0] = "SAVE";
|
|
6
|
-
ConfirmResult[ConfirmResult["DONT_SAVE"] = 1] = "DONT_SAVE";
|
|
7
|
-
ConfirmResult[ConfirmResult["CANCEL"] = 2] = "CANCEL";
|
|
8
|
-
})(ConfirmResult || (ConfirmResult = {})));
|
|
9
|
-
|
|
10
|
-
export { ConfirmResult };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { VSBuffer } from 'vscode/vscode/vs/base/common/buffer';
|
|
2
|
-
import { toHexString, StringSHA1 } from 'vscode/vscode/vs/base/common/hash';
|
|
3
|
-
|
|
4
|
-
async function sha1Hex(str) {
|
|
5
|
-
if (globalThis?.crypto?.subtle) {
|
|
6
|
-
const buffer = VSBuffer.fromString(str, { dontUseNodeBuffer: true }).buffer;
|
|
7
|
-
const hash = await globalThis.crypto.subtle.digest({ name: 'sha-1' }, buffer);
|
|
8
|
-
return toHexString(hash);
|
|
9
|
-
}
|
|
10
|
-
else {
|
|
11
|
-
const computer = ( new StringSHA1());
|
|
12
|
-
computer.update(str);
|
|
13
|
-
return computer.digest();
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export { sha1Hex };
|