@codingame/monaco-vscode-working-copy-service-override 19.1.3 → 20.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/package.json +5 -5
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackupService.d.ts +1 -3
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackupService.js +1 -12
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackupTracker.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackupTracker.js +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyEditorService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyHistoryService.js +4 -4
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyHistoryTracker.js +2 -2
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyService.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-working-copy-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "20.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - working-copy service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-6f931a91-88ea-5232-897f-a17ec3929ba5-common": "
|
|
19
|
-
"@codingame/monaco-vscode-
|
|
20
|
-
"@codingame/monaco-vscode-
|
|
21
|
-
"@codingame/monaco-vscode-files-service-override": "
|
|
18
|
+
"@codingame/monaco-vscode-6f931a91-88ea-5232-897f-a17ec3929ba5-common": "20.0.0",
|
|
19
|
+
"@codingame/monaco-vscode-api": "20.0.0",
|
|
20
|
+
"@codingame/monaco-vscode-caeb744c-8e3f-5c11-80fb-0f057d24d544-common": "20.0.0",
|
|
21
|
+
"@codingame/monaco-vscode-files-service-override": "20.0.0"
|
|
22
22
|
},
|
|
23
23
|
"main": "index.js",
|
|
24
24
|
"module": "index.js",
|
|
@@ -6,7 +6,7 @@ import { VSBufferReadable, VSBufferReadableStream } from "@codingame/monaco-vsco
|
|
|
6
6
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
7
7
|
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
8
8
|
import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
|
|
9
|
-
import { IWorkingCopyBackupMeta, IWorkingCopyIdentifier } from "@codingame/monaco-vscode-
|
|
9
|
+
import { IWorkingCopyBackupMeta, IWorkingCopyIdentifier } from "@codingame/monaco-vscode-caeb744c-8e3f-5c11-80fb-0f057d24d544-common/vscode/vs/workbench/services/workingCopy/common/workingCopy";
|
|
10
10
|
export declare class WorkingCopyBackupsModel {
|
|
11
11
|
private backupRoot;
|
|
12
12
|
private fileService;
|
|
@@ -30,7 +30,6 @@ export declare abstract class WorkingCopyBackupService extends Disposable implem
|
|
|
30
30
|
constructor(backupWorkspaceHome: URI | undefined, fileService: IFileService, logService: ILogService);
|
|
31
31
|
private initialize;
|
|
32
32
|
reinitialize(backupWorkspaceHome: URI | undefined): void;
|
|
33
|
-
hasBackups(): Promise<boolean>;
|
|
34
33
|
hasBackupSync(identifier: IWorkingCopyIdentifier, versionId?: number, meta?: IWorkingCopyBackupMeta): boolean;
|
|
35
34
|
backup(identifier: IWorkingCopyIdentifier, content?: VSBufferReadableStream | VSBufferReadable, versionId?: number, meta?: IWorkingCopyBackupMeta, token?: CancellationToken): Promise<void>;
|
|
36
35
|
discardBackup(identifier: IWorkingCopyIdentifier, token?: CancellationToken): Promise<void>;
|
|
@@ -46,7 +45,6 @@ export declare class InMemoryWorkingCopyBackupService extends Disposable impleme
|
|
|
46
45
|
readonly _serviceBrand: undefined;
|
|
47
46
|
private backups;
|
|
48
47
|
constructor();
|
|
49
|
-
hasBackups(): Promise<boolean>;
|
|
50
48
|
hasBackupSync(identifier: IWorkingCopyIdentifier, versionId?: number): boolean;
|
|
51
49
|
backup(identifier: IWorkingCopyIdentifier, content?: VSBufferReadable | VSBufferReadableStream, versionId?: number, meta?: IWorkingCopyBackupMeta, token?: CancellationToken): Promise<void>;
|
|
52
50
|
resolve<T extends IWorkingCopyBackupMeta>(identifier: IWorkingCopyIdentifier): Promise<IResolvedWorkingCopyBackup<T> | undefined>;
|
|
@@ -15,7 +15,7 @@ import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log
|
|
|
15
15
|
import { Schemas } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
|
|
16
16
|
import { hash } from '@codingame/monaco-vscode-api/vscode/vs/base/common/hash';
|
|
17
17
|
import { isEmptyObject } from '@codingame/monaco-vscode-api/vscode/vs/base/common/types';
|
|
18
|
-
import { NO_TYPE_ID } from '@codingame/monaco-vscode-
|
|
18
|
+
import { NO_TYPE_ID } from '@codingame/monaco-vscode-caeb744c-8e3f-5c11-80fb-0f057d24d544-common/vscode/vs/workbench/services/workingCopy/common/workingCopy';
|
|
19
19
|
|
|
20
20
|
var WorkingCopyBackupServiceImpl_1;
|
|
21
21
|
class WorkingCopyBackupsModel {
|
|
@@ -111,9 +111,6 @@ let WorkingCopyBackupService = class WorkingCopyBackupService extends Disposable
|
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
hasBackups() {
|
|
115
|
-
return this.impl.hasBackups();
|
|
116
|
-
}
|
|
117
114
|
hasBackupSync(identifier, versionId, meta) {
|
|
118
115
|
return this.impl.hasBackupSync(identifier, versionId, meta);
|
|
119
116
|
}
|
|
@@ -166,11 +163,6 @@ let WorkingCopyBackupServiceImpl = class WorkingCopyBackupServiceImpl extends Di
|
|
|
166
163
|
this.model = await WorkingCopyBackupsModel.create(this.backupWorkspaceHome, this.fileService);
|
|
167
164
|
return this.model;
|
|
168
165
|
}
|
|
169
|
-
async hasBackups() {
|
|
170
|
-
const model = await this.ready;
|
|
171
|
-
await this.joinBackups();
|
|
172
|
-
return model.count() > 0;
|
|
173
|
-
}
|
|
174
166
|
hasBackupSync(identifier, versionId, meta) {
|
|
175
167
|
if (!this.model) {
|
|
176
168
|
return false;
|
|
@@ -376,9 +368,6 @@ class InMemoryWorkingCopyBackupService extends Disposable {
|
|
|
376
368
|
super();
|
|
377
369
|
this.backups = ( new ResourceMap());
|
|
378
370
|
}
|
|
379
|
-
async hasBackups() {
|
|
380
|
-
return this.backups.size > 0;
|
|
381
|
-
}
|
|
382
371
|
hasBackupSync(identifier, versionId) {
|
|
383
372
|
const backupResource = this.toBackupResource(identifier);
|
|
384
373
|
return ( this.backups.has(backupResource));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IWorkingCopyBackupService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/workingCopy/common/workingCopyBackup.service";
|
|
2
2
|
import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
3
3
|
import { IWorkingCopyService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/workingCopy/common/workingCopyService.service";
|
|
4
|
-
import { IWorkingCopy, IWorkingCopyIdentifier } from "@codingame/monaco-vscode-
|
|
4
|
+
import { IWorkingCopy, IWorkingCopyIdentifier } from "@codingame/monaco-vscode-caeb744c-8e3f-5c11-80fb-0f057d24d544-common/vscode/vs/workbench/services/workingCopy/common/workingCopy";
|
|
5
5
|
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
6
6
|
import { ShutdownReason } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle";
|
|
7
7
|
import { ILifecycleService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle.service";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { Disposable, toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
3
|
-
import { WorkingCopyCapabilities } from '@codingame/monaco-vscode-
|
|
3
|
+
import { WorkingCopyCapabilities } from '@codingame/monaco-vscode-caeb744c-8e3f-5c11-80fb-0f057d24d544-common/vscode/vs/workbench/services/workingCopy/common/workingCopy';
|
|
4
4
|
import { LifecyclePhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
5
5
|
import { CancellationTokenSource } from '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
|
|
6
6
|
import { Promises } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IEditorIdentifier } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor";
|
|
2
2
|
import { EditorInput } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor/editorInput";
|
|
3
|
-
import { IWorkingCopy, IWorkingCopyIdentifier } from "@codingame/monaco-vscode-
|
|
3
|
+
import { IWorkingCopy, IWorkingCopyIdentifier } from "@codingame/monaco-vscode-caeb744c-8e3f-5c11-80fb-0f057d24d544-common/vscode/vs/workbench/services/workingCopy/common/workingCopy";
|
|
4
4
|
import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
5
5
|
import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
6
6
|
import { IWorkingCopyEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/workingCopy/common/workingCopyEditorService.service";
|
|
@@ -33,7 +33,7 @@ import { escapeRegExpCharacters } from '@codingame/monaco-vscode-api/vscode/vs/b
|
|
|
33
33
|
var WorkingCopyHistoryService_1, NativeWorkingCopyHistoryService_1;
|
|
34
34
|
class WorkingCopyHistoryModel {
|
|
35
35
|
static { this.ENTRIES_FILE = 'entries.json'; }
|
|
36
|
-
static { this.FILE_SAVED_SOURCE = SaveSourceRegistry.registerSource('default.source', ( localize(
|
|
36
|
+
static { this.FILE_SAVED_SOURCE = SaveSourceRegistry.registerSource('default.source', ( localize(13771, "File Saved"))); }
|
|
37
37
|
static { this.SETTINGS = {
|
|
38
38
|
MAX_ENTRIES: 'workbench.localHistory.maxFileEntries',
|
|
39
39
|
MERGE_PERIOD: 'workbench.localHistory.mergeWindow'
|
|
@@ -379,8 +379,8 @@ class WorkingCopyHistoryModel {
|
|
|
379
379
|
}
|
|
380
380
|
let WorkingCopyHistoryService = class WorkingCopyHistoryService extends Disposable {
|
|
381
381
|
static { WorkingCopyHistoryService_1 = this; }
|
|
382
|
-
static { this.FILE_MOVED_SOURCE = SaveSourceRegistry.registerSource('moved.source', ( localize(
|
|
383
|
-
static { this.FILE_RENAMED_SOURCE = SaveSourceRegistry.registerSource('renamed.source', ( localize(
|
|
382
|
+
static { this.FILE_MOVED_SOURCE = SaveSourceRegistry.registerSource('moved.source', ( localize(13772, "File Moved"))); }
|
|
383
|
+
static { this.FILE_RENAMED_SOURCE = SaveSourceRegistry.registerSource('renamed.source', ( localize(13773, "File Renamed"))); }
|
|
384
384
|
constructor(fileService, remoteAgentService, environmentService, uriIdentityService, labelService, logService, configurationService) {
|
|
385
385
|
super();
|
|
386
386
|
this.fileService = fileService;
|
|
@@ -597,7 +597,7 @@ let NativeWorkingCopyHistoryService = class NativeWorkingCopyHistoryService exte
|
|
|
597
597
|
onWillShutdown(e) {
|
|
598
598
|
this.storeAllScheduler.dispose();
|
|
599
599
|
this.storeAllCts.dispose(true);
|
|
600
|
-
e.join(this.storeAll(e.token), { id: 'join.workingCopyHistory', label: ( localize(
|
|
600
|
+
e.join(this.storeAll(e.token), { id: 'join.workingCopyHistory', label: ( localize(13774, "Saving local history")) });
|
|
601
601
|
}
|
|
602
602
|
onDidChangeModels() {
|
|
603
603
|
if (!this.storeAllScheduler.isScheduled()) {
|
|
@@ -15,7 +15,7 @@ import { MAX_PARALLEL_HISTORY_IO_OPS } from './workingCopyHistory.js';
|
|
|
15
15
|
import { IWorkingCopyHistoryService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/workingCopy/common/workingCopyHistory.service';
|
|
16
16
|
import { IWorkingCopyService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/workingCopy/common/workingCopyService.service';
|
|
17
17
|
import { Schemas } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
|
|
18
|
-
import { ResourceGlobMatcher } from '@codingame/monaco-vscode-
|
|
18
|
+
import { ResourceGlobMatcher } from '@codingame/monaco-vscode-caeb744c-8e3f-5c11-80fb-0f057d24d544-common/vscode/vs/workbench/common/resources';
|
|
19
19
|
import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service';
|
|
20
20
|
import { FileOperation } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files';
|
|
21
21
|
import { IFileService } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service';
|
|
@@ -28,7 +28,7 @@ let WorkingCopyHistoryTracker = class WorkingCopyHistoryTracker extends Disposab
|
|
|
28
28
|
SIZE_LIMIT: 'workbench.localHistory.maxFileSize',
|
|
29
29
|
EXCLUDES: 'workbench.localHistory.exclude'
|
|
30
30
|
}; }
|
|
31
|
-
static { this.UNDO_REDO_SAVE_SOURCE = SaveSourceRegistry.registerSource('undoRedo.source', ( localize(
|
|
31
|
+
static { this.UNDO_REDO_SAVE_SOURCE = SaveSourceRegistry.registerSource('undoRedo.source', ( localize(13775, "Undo / Redo"))); }
|
|
32
32
|
constructor(workingCopyService, workingCopyHistoryService, uriIdentityService, pathService, configurationService, undoRedoService, contextService, fileService) {
|
|
33
33
|
super();
|
|
34
34
|
this.workingCopyService = workingCopyService;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
2
2
|
import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
3
|
-
import { IWorkingCopy, IWorkingCopyIdentifier, IWorkingCopySaveEvent as IBaseWorkingCopySaveEvent } from "@codingame/monaco-vscode-
|
|
3
|
+
import { IWorkingCopy, IWorkingCopyIdentifier, IWorkingCopySaveEvent as IBaseWorkingCopySaveEvent } from "@codingame/monaco-vscode-caeb744c-8e3f-5c11-80fb-0f057d24d544-common/vscode/vs/workbench/services/workingCopy/common/workingCopy";
|
|
4
4
|
import { IWorkingCopyService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/workingCopy/common/workingCopyService.service";
|
|
5
5
|
export interface IWorkingCopySaveEvent extends IBaseWorkingCopySaveEvent {
|
|
6
6
|
readonly workingCopy: IWorkingCopy;
|