@codingame/monaco-vscode-notebook-service-override 4.5.0 → 4.5.2
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 +1 -1
- package/package.json +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +30 -44
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +24 -32
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +30 -53
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +40 -84
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +9 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +35 -48
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +13 -16
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +2 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +94 -77
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +13 -16
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.js +8 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +3 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +25 -28
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +71 -89
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.js +4 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.js +97 -119
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +7 -18
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +128 -177
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +132 -145
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +70 -130
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +32 -92
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +39 -64
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +28 -43
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +23 -66
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +58 -57
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +162 -264
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibility.js +33 -36
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +58 -153
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +15 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +13 -16
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelServiceImpl.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +22 -29
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +5 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +100 -92
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/model/cellEdit.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiffEditorInput.js +6 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.js +6 -4
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorker.js +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +41 -76
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +42 -45
- package/notebook.d.ts +0 -5
|
@@ -42,18 +42,11 @@ import 'vscode/vscode/vs/platform/theme/common/colors/quickpickColors';
|
|
|
42
42
|
import 'vscode/vscode/vs/platform/theme/common/colors/searchColors';
|
|
43
43
|
|
|
44
44
|
var FileWorkingCopyManager_1;
|
|
45
|
+
const _moduleId = "vs/workbench/services/workingCopy/common/fileWorkingCopyManager";
|
|
45
46
|
let FileWorkingCopyManager = class FileWorkingCopyManager extends Disposable {
|
|
46
47
|
static { FileWorkingCopyManager_1 = this; }
|
|
47
|
-
static { this.FILE_WORKING_COPY_SAVE_CREATE_SOURCE = SaveSourceRegistry.registerSource('fileWorkingCopyCreate.source', ( localizeWithPath(
|
|
48
|
-
|
|
49
|
-
'fileWorkingCopyCreate.source',
|
|
50
|
-
"File Created"
|
|
51
|
-
))); }
|
|
52
|
-
static { this.FILE_WORKING_COPY_SAVE_REPLACE_SOURCE = SaveSourceRegistry.registerSource('fileWorkingCopyReplace.source', ( localizeWithPath(
|
|
53
|
-
'vs/workbench/services/workingCopy/common/fileWorkingCopyManager',
|
|
54
|
-
'fileWorkingCopyReplace.source',
|
|
55
|
-
"File Replaced"
|
|
56
|
-
))); }
|
|
48
|
+
static { this.FILE_WORKING_COPY_SAVE_CREATE_SOURCE = SaveSourceRegistry.registerSource('fileWorkingCopyCreate.source', ( localizeWithPath(_moduleId, 0, "File Created"))); }
|
|
49
|
+
static { this.FILE_WORKING_COPY_SAVE_REPLACE_SOURCE = SaveSourceRegistry.registerSource('fileWorkingCopyReplace.source', ( localizeWithPath(_moduleId, 1, "File Replaced"))); }
|
|
57
50
|
constructor(workingCopyTypeId, storedWorkingCopyModelFactory, untitledWorkingCopyModelFactory, fileService, lifecycleService, labelService, logService, workingCopyFileService, workingCopyBackupService, uriIdentityService, fileDialogService, filesConfigurationService, workingCopyService, notificationService, workingCopyEditorService, editorService, elevatedFileService, pathService, environmentService, dialogService, decorationsService) {
|
|
58
51
|
super();
|
|
59
52
|
this.workingCopyTypeId = workingCopyTypeId;
|
|
@@ -69,7 +62,7 @@ let FileWorkingCopyManager = class FileWorkingCopyManager extends Disposable {
|
|
|
69
62
|
this.environmentService = environmentService;
|
|
70
63
|
this.dialogService = dialogService;
|
|
71
64
|
this.decorationsService = decorationsService;
|
|
72
|
-
this.stored = this._register(( new StoredFileWorkingCopyManager(
|
|
65
|
+
this.stored = this._register(( (new StoredFileWorkingCopyManager(
|
|
73
66
|
this.workingCopyTypeId,
|
|
74
67
|
this.storedWorkingCopyModelFactory,
|
|
75
68
|
fileService,
|
|
@@ -85,8 +78,8 @@ let FileWorkingCopyManager = class FileWorkingCopyManager extends Disposable {
|
|
|
85
78
|
workingCopyEditorService,
|
|
86
79
|
editorService,
|
|
87
80
|
elevatedFileService
|
|
88
|
-
)));
|
|
89
|
-
this.untitled = this._register(( new UntitledFileWorkingCopyManager(
|
|
81
|
+
))));
|
|
82
|
+
this.untitled = this._register(( (new UntitledFileWorkingCopyManager(
|
|
90
83
|
this.workingCopyTypeId,
|
|
91
84
|
this.untitledWorkingCopyModelFactory,
|
|
92
85
|
async (workingCopy, options) => {
|
|
@@ -98,7 +91,7 @@ let FileWorkingCopyManager = class FileWorkingCopyManager extends Disposable {
|
|
|
98
91
|
logService,
|
|
99
92
|
workingCopyBackupService,
|
|
100
93
|
workingCopyService
|
|
101
|
-
)));
|
|
94
|
+
))));
|
|
102
95
|
this.onDidCreate = Event.any(this.stored.onDidCreate, this.untitled.onDidCreate);
|
|
103
96
|
this.provideDecorations();
|
|
104
97
|
}
|
|
@@ -107,12 +100,8 @@ let FileWorkingCopyManager = class FileWorkingCopyManager extends Disposable {
|
|
|
107
100
|
constructor(stored) {
|
|
108
101
|
super();
|
|
109
102
|
this.stored = stored;
|
|
110
|
-
this.label = ( localizeWithPath(
|
|
111
|
-
|
|
112
|
-
'fileWorkingCopyDecorations',
|
|
113
|
-
"File Working Copy Decorations"
|
|
114
|
-
));
|
|
115
|
-
this._onDidChange = this._register(( new Emitter()));
|
|
103
|
+
this.label = ( localizeWithPath(_moduleId, 2, "File Working Copy Decorations"));
|
|
104
|
+
this._onDidChange = this._register(( (new Emitter())));
|
|
116
105
|
this.onDidChange = this._onDidChange.event;
|
|
117
106
|
this.registerListeners();
|
|
118
107
|
}
|
|
@@ -138,32 +127,20 @@ let FileWorkingCopyManager = class FileWorkingCopyManager extends Disposable {
|
|
|
138
127
|
color: listErrorForeground,
|
|
139
128
|
letter: Codicon.lockSmall,
|
|
140
129
|
strikethrough: true,
|
|
141
|
-
tooltip: ( localizeWithPath(
|
|
142
|
-
'vs/workbench/services/workingCopy/common/fileWorkingCopyManager',
|
|
143
|
-
'readonlyAndDeleted',
|
|
144
|
-
"Deleted, Read-only"
|
|
145
|
-
)),
|
|
130
|
+
tooltip: ( localizeWithPath(_moduleId, 3, "Deleted, Read-only")),
|
|
146
131
|
};
|
|
147
132
|
}
|
|
148
133
|
else if (isReadonly) {
|
|
149
134
|
return {
|
|
150
135
|
letter: Codicon.lockSmall,
|
|
151
|
-
tooltip: ( localizeWithPath(
|
|
152
|
-
'vs/workbench/services/workingCopy/common/fileWorkingCopyManager',
|
|
153
|
-
'readonly',
|
|
154
|
-
"Read-only"
|
|
155
|
-
)),
|
|
136
|
+
tooltip: ( localizeWithPath(_moduleId, 4, "Read-only")),
|
|
156
137
|
};
|
|
157
138
|
}
|
|
158
139
|
else if (isOrphaned) {
|
|
159
140
|
return {
|
|
160
141
|
color: listErrorForeground,
|
|
161
142
|
strikethrough: true,
|
|
162
|
-
tooltip: ( localizeWithPath(
|
|
163
|
-
'vs/workbench/services/workingCopy/common/fileWorkingCopyManager',
|
|
164
|
-
'deleted',
|
|
165
|
-
"Deleted"
|
|
166
|
-
)),
|
|
143
|
+
tooltip: ( localizeWithPath(_moduleId, 5, "Deleted")),
|
|
167
144
|
};
|
|
168
145
|
}
|
|
169
146
|
return undefined;
|
|
@@ -295,23 +272,19 @@ let FileWorkingCopyManager = class FileWorkingCopyManager extends Disposable {
|
|
|
295
272
|
const { confirmed } = await this.dialogService.confirm({
|
|
296
273
|
type: 'warning',
|
|
297
274
|
message: ( localizeWithPath(
|
|
298
|
-
|
|
299
|
-
|
|
275
|
+
_moduleId,
|
|
276
|
+
6,
|
|
300
277
|
"'{0}' already exists. Do you want to replace it?",
|
|
301
278
|
basename(resource)
|
|
302
279
|
)),
|
|
303
280
|
detail: ( localizeWithPath(
|
|
304
|
-
|
|
305
|
-
|
|
281
|
+
_moduleId,
|
|
282
|
+
7,
|
|
306
283
|
"A file or folder with the name '{0}' already exists in the folder '{1}'. Replacing it will overwrite its current contents.",
|
|
307
284
|
basename(resource),
|
|
308
285
|
basename(dirname(resource))
|
|
309
286
|
)),
|
|
310
|
-
primaryButton: ( localizeWithPath(
|
|
311
|
-
'vs/workbench/services/workingCopy/common/fileWorkingCopyManager',
|
|
312
|
-
{ key: 'replaceButtonLabel', comment: ['&& denotes a mnemonic'] },
|
|
313
|
-
"&&Replace"
|
|
314
|
-
))
|
|
287
|
+
primaryButton: ( localizeWithPath(_moduleId, 8, "&&Replace"))
|
|
315
288
|
});
|
|
316
289
|
return confirmed;
|
|
317
290
|
}
|
|
@@ -319,21 +292,13 @@ let FileWorkingCopyManager = class FileWorkingCopyManager extends Disposable {
|
|
|
319
292
|
const { confirmed } = await this.dialogService.confirm({
|
|
320
293
|
type: 'warning',
|
|
321
294
|
message: ( localizeWithPath(
|
|
322
|
-
|
|
323
|
-
|
|
295
|
+
_moduleId,
|
|
296
|
+
9,
|
|
324
297
|
"'{0}' is marked as read-only. Do you want to save anyway?",
|
|
325
298
|
basename(resource)
|
|
326
299
|
)),
|
|
327
|
-
detail: ( localizeWithPath(
|
|
328
|
-
|
|
329
|
-
'confirmMakeWriteableDetail',
|
|
330
|
-
"Paths can be configured as read-only via settings."
|
|
331
|
-
)),
|
|
332
|
-
primaryButton: ( localizeWithPath(
|
|
333
|
-
'vs/workbench/services/workingCopy/common/fileWorkingCopyManager',
|
|
334
|
-
{ key: 'makeWriteableButtonLabel', comment: ['&& denotes a mnemonic'] },
|
|
335
|
-
"&&Save Anyway"
|
|
336
|
-
))
|
|
300
|
+
detail: ( localizeWithPath(_moduleId, 10, "Paths can be configured as read-only via settings.")),
|
|
301
|
+
primaryButton: ( localizeWithPath(_moduleId, 11, "&&Save Anyway"))
|
|
337
302
|
});
|
|
338
303
|
return confirmed;
|
|
339
304
|
}
|
|
@@ -361,25 +326,25 @@ let FileWorkingCopyManager = class FileWorkingCopyManager extends Disposable {
|
|
|
361
326
|
]);
|
|
362
327
|
}
|
|
363
328
|
};
|
|
364
|
-
FileWorkingCopyManager = FileWorkingCopyManager_1 = ( __decorate([
|
|
365
|
-
( __param(3, IFileService)),
|
|
366
|
-
( __param(4, ILifecycleService)),
|
|
367
|
-
( __param(5, ILabelService)),
|
|
368
|
-
( __param(6, ILogService)),
|
|
369
|
-
( __param(7, IWorkingCopyFileService)),
|
|
370
|
-
( __param(8, IWorkingCopyBackupService)),
|
|
371
|
-
( __param(9, IUriIdentityService)),
|
|
372
|
-
( __param(10, IFileDialogService)),
|
|
373
|
-
( __param(11, IFilesConfigurationService)),
|
|
374
|
-
( __param(12, IWorkingCopyService)),
|
|
375
|
-
( __param(13, INotificationService)),
|
|
376
|
-
( __param(14, IWorkingCopyEditorService)),
|
|
377
|
-
( __param(15, IEditorService)),
|
|
378
|
-
( __param(16, IElevatedFileService)),
|
|
379
|
-
( __param(17, IPathService)),
|
|
380
|
-
( __param(18, IWorkbenchEnvironmentService)),
|
|
381
|
-
( __param(19, IDialogService)),
|
|
382
|
-
( __param(20, IDecorationsService))
|
|
383
|
-
], FileWorkingCopyManager));
|
|
329
|
+
FileWorkingCopyManager = FileWorkingCopyManager_1 = ( (__decorate([
|
|
330
|
+
( (__param(3, IFileService))),
|
|
331
|
+
( (__param(4, ILifecycleService))),
|
|
332
|
+
( (__param(5, ILabelService))),
|
|
333
|
+
( (__param(6, ILogService))),
|
|
334
|
+
( (__param(7, IWorkingCopyFileService))),
|
|
335
|
+
( (__param(8, IWorkingCopyBackupService))),
|
|
336
|
+
( (__param(9, IUriIdentityService))),
|
|
337
|
+
( (__param(10, IFileDialogService))),
|
|
338
|
+
( (__param(11, IFilesConfigurationService))),
|
|
339
|
+
( (__param(12, IWorkingCopyService))),
|
|
340
|
+
( (__param(13, INotificationService))),
|
|
341
|
+
( (__param(14, IWorkingCopyEditorService))),
|
|
342
|
+
( (__param(15, IEditorService))),
|
|
343
|
+
( (__param(16, IElevatedFileService))),
|
|
344
|
+
( (__param(17, IPathService))),
|
|
345
|
+
( (__param(18, IWorkbenchEnvironmentService))),
|
|
346
|
+
( (__param(19, IDialogService))),
|
|
347
|
+
( (__param(20, IDecorationsService)))
|
|
348
|
+
], FileWorkingCopyManager)));
|
|
384
349
|
|
|
385
350
|
export { FileWorkingCopyManager };
|
|
@@ -25,6 +25,7 @@ import { IWorkingCopyService } from 'vscode/vscode/vs/workbench/services/working
|
|
|
25
25
|
import { isWeb } from 'vscode/vscode/vs/base/common/platform';
|
|
26
26
|
import { onUnexpectedError } from 'vscode/vscode/vs/base/common/errors';
|
|
27
27
|
|
|
28
|
+
const _moduleId = "vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager";
|
|
28
29
|
let StoredFileWorkingCopyManager = class StoredFileWorkingCopyManager extends BaseFileWorkingCopyManager {
|
|
29
30
|
constructor(workingCopyTypeId, modelFactory, fileService, lifecycleService, labelService, logService, workingCopyFileService, workingCopyBackupService, uriIdentityService, filesConfigurationService, workingCopyService, notificationService, workingCopyEditorService, editorService, elevatedFileService) {
|
|
30
31
|
super(fileService, logService, workingCopyBackupService);
|
|
@@ -40,26 +41,26 @@ let StoredFileWorkingCopyManager = class StoredFileWorkingCopyManager extends Ba
|
|
|
40
41
|
this.workingCopyEditorService = workingCopyEditorService;
|
|
41
42
|
this.editorService = editorService;
|
|
42
43
|
this.elevatedFileService = elevatedFileService;
|
|
43
|
-
this._onDidResolve = this._register(( new Emitter()));
|
|
44
|
+
this._onDidResolve = this._register(( (new Emitter())));
|
|
44
45
|
this.onDidResolve = this._onDidResolve.event;
|
|
45
|
-
this._onDidChangeDirty = this._register(( new Emitter()));
|
|
46
|
+
this._onDidChangeDirty = this._register(( (new Emitter())));
|
|
46
47
|
this.onDidChangeDirty = this._onDidChangeDirty.event;
|
|
47
|
-
this._onDidChangeReadonly = this._register(( new Emitter()));
|
|
48
|
+
this._onDidChangeReadonly = this._register(( (new Emitter())));
|
|
48
49
|
this.onDidChangeReadonly = this._onDidChangeReadonly.event;
|
|
49
|
-
this._onDidChangeOrphaned = this._register(( new Emitter()));
|
|
50
|
+
this._onDidChangeOrphaned = this._register(( (new Emitter())));
|
|
50
51
|
this.onDidChangeOrphaned = this._onDidChangeOrphaned.event;
|
|
51
|
-
this._onDidSaveError = this._register(( new Emitter()));
|
|
52
|
+
this._onDidSaveError = this._register(( (new Emitter())));
|
|
52
53
|
this.onDidSaveError = this._onDidSaveError.event;
|
|
53
|
-
this._onDidSave = this._register(( new Emitter()));
|
|
54
|
+
this._onDidSave = this._register(( (new Emitter())));
|
|
54
55
|
this.onDidSave = this._onDidSave.event;
|
|
55
|
-
this._onDidRevert = this._register(( new Emitter()));
|
|
56
|
+
this._onDidRevert = this._register(( (new Emitter())));
|
|
56
57
|
this.onDidRevert = this._onDidRevert.event;
|
|
57
|
-
this._onDidRemove = this._register(( new Emitter()));
|
|
58
|
+
this._onDidRemove = this._register(( (new Emitter())));
|
|
58
59
|
this.onDidRemove = this._onDidRemove.event;
|
|
59
|
-
this.mapResourceToWorkingCopyListeners = ( new ResourceMap());
|
|
60
|
-
this.mapResourceToPendingWorkingCopyResolve = ( new ResourceMap());
|
|
61
|
-
this.workingCopyResolveQueue = this._register(( new ResourceQueue()));
|
|
62
|
-
this.mapCorrelationIdToWorkingCopiesToRestore = ( new Map());
|
|
60
|
+
this.mapResourceToWorkingCopyListeners = ( (new ResourceMap()));
|
|
61
|
+
this.mapResourceToPendingWorkingCopyResolve = ( (new ResourceMap()));
|
|
62
|
+
this.workingCopyResolveQueue = this._register(( (new ResourceQueue())));
|
|
63
|
+
this.mapCorrelationIdToWorkingCopiesToRestore = ( (new Map()));
|
|
63
64
|
this.registerListeners();
|
|
64
65
|
}
|
|
65
66
|
registerListeners() {
|
|
@@ -73,17 +74,13 @@ let StoredFileWorkingCopyManager = class StoredFileWorkingCopyManager extends Ba
|
|
|
73
74
|
this._register(this.lifecycleService.onBeforeShutdown(event => event.veto(this.onBeforeShutdownWeb(), 'veto.fileWorkingCopyManager')));
|
|
74
75
|
}
|
|
75
76
|
else {
|
|
76
|
-
this._register(this.lifecycleService.onWillShutdown(event => event.join(this.onWillShutdownDesktop(), { id: 'join.fileWorkingCopyManager', label: ( localizeWithPath(
|
|
77
|
-
'vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager',
|
|
78
|
-
'join.fileWorkingCopyManager',
|
|
79
|
-
"Saving working copies"
|
|
80
|
-
)) })));
|
|
77
|
+
this._register(this.lifecycleService.onWillShutdown(event => event.join(this.onWillShutdownDesktop(), { id: 'join.fileWorkingCopyManager', label: ( localizeWithPath(_moduleId, 0, "Saving working copies")) })));
|
|
81
78
|
}
|
|
82
79
|
}
|
|
83
80
|
onBeforeShutdownWeb() {
|
|
84
|
-
if (( this.workingCopies.some(
|
|
81
|
+
if (( (this.workingCopies.some(
|
|
85
82
|
workingCopy => workingCopy.hasState(2 )
|
|
86
|
-
))) {
|
|
83
|
+
)))) {
|
|
87
84
|
return true;
|
|
88
85
|
}
|
|
89
86
|
return false;
|
|
@@ -91,9 +88,9 @@ let StoredFileWorkingCopyManager = class StoredFileWorkingCopyManager extends Ba
|
|
|
91
88
|
async onWillShutdownDesktop() {
|
|
92
89
|
let pendingSavedWorkingCopies;
|
|
93
90
|
while ((pendingSavedWorkingCopies = this.workingCopies.filter(workingCopy => workingCopy.hasState(2 ))).length > 0) {
|
|
94
|
-
await Promises.settled(( pendingSavedWorkingCopies.map(
|
|
91
|
+
await Promises.settled(( (pendingSavedWorkingCopies.map(
|
|
95
92
|
workingCopy => workingCopy.joinState(2 )
|
|
96
|
-
)));
|
|
93
|
+
))));
|
|
97
94
|
}
|
|
98
95
|
}
|
|
99
96
|
onDidChangeFileSystemProviderCapabilities(e) {
|
|
@@ -205,12 +202,12 @@ let StoredFileWorkingCopyManager = class StoredFileWorkingCopyManager extends Ba
|
|
|
205
202
|
const workingCopiesToRestore = this.mapCorrelationIdToWorkingCopiesToRestore.get(e.correlationId);
|
|
206
203
|
if (workingCopiesToRestore) {
|
|
207
204
|
this.mapCorrelationIdToWorkingCopiesToRestore.delete(e.correlationId);
|
|
208
|
-
await Promises.settled(( workingCopiesToRestore.map(async (workingCopyToRestore) => {
|
|
205
|
+
await Promises.settled(( (workingCopiesToRestore.map(async (workingCopyToRestore) => {
|
|
209
206
|
await this.resolve(workingCopyToRestore.target, {
|
|
210
207
|
reload: { async: false },
|
|
211
208
|
contents: workingCopyToRestore.snapshot
|
|
212
209
|
});
|
|
213
|
-
})));
|
|
210
|
+
}))));
|
|
214
211
|
}
|
|
215
212
|
})());
|
|
216
213
|
break;
|
|
@@ -218,7 +215,7 @@ let StoredFileWorkingCopyManager = class StoredFileWorkingCopyManager extends Ba
|
|
|
218
215
|
}
|
|
219
216
|
async reload(workingCopy) {
|
|
220
217
|
await this.joinPendingResolves(workingCopy.resource);
|
|
221
|
-
if (workingCopy.isDirty() || workingCopy.isDisposed() || !( this.has(workingCopy.resource))) {
|
|
218
|
+
if (workingCopy.isDirty() || workingCopy.isDisposed() || !( (this.has(workingCopy.resource)))) {
|
|
222
219
|
return;
|
|
223
220
|
}
|
|
224
221
|
await this.doResolve(workingCopy, { reload: { async: false } });
|
|
@@ -274,7 +271,7 @@ let StoredFileWorkingCopyManager = class StoredFileWorkingCopyManager extends Ba
|
|
|
274
271
|
}
|
|
275
272
|
else {
|
|
276
273
|
didCreateWorkingCopy = true;
|
|
277
|
-
workingCopy = ( new StoredFileWorkingCopy(
|
|
274
|
+
workingCopy = ( (new StoredFileWorkingCopy(
|
|
278
275
|
this.workingCopyTypeId,
|
|
279
276
|
resource,
|
|
280
277
|
this.labelService.getUriBasenameLabel(resource),
|
|
@@ -290,7 +287,7 @@ let StoredFileWorkingCopyManager = class StoredFileWorkingCopyManager extends Ba
|
|
|
290
287
|
this.workingCopyEditorService,
|
|
291
288
|
this.editorService,
|
|
292
289
|
this.elevatedFileService
|
|
293
|
-
));
|
|
290
|
+
)));
|
|
294
291
|
workingCopyResolve = workingCopy.resolve(resolveOptions);
|
|
295
292
|
this.registerWorkingCopy(workingCopy);
|
|
296
293
|
}
|
|
@@ -327,7 +324,7 @@ let StoredFileWorkingCopyManager = class StoredFileWorkingCopyManager extends Ba
|
|
|
327
324
|
}
|
|
328
325
|
async doJoinPendingResolves(resource) {
|
|
329
326
|
let currentWorkingCopyResolve;
|
|
330
|
-
while (( this.mapResourceToPendingWorkingCopyResolve.has(resource))) {
|
|
327
|
+
while (( (this.mapResourceToPendingWorkingCopyResolve.has(resource)))) {
|
|
331
328
|
const nextPendingWorkingCopyResolve = this.mapResourceToPendingWorkingCopyResolve.get(resource);
|
|
332
329
|
if (nextPendingWorkingCopyResolve === currentWorkingCopyResolve) {
|
|
333
330
|
return;
|
|
@@ -341,7 +338,7 @@ let StoredFileWorkingCopyManager = class StoredFileWorkingCopyManager extends Ba
|
|
|
341
338
|
}
|
|
342
339
|
}
|
|
343
340
|
registerWorkingCopy(workingCopy) {
|
|
344
|
-
const workingCopyListeners = ( new DisposableStore());
|
|
341
|
+
const workingCopyListeners = ( (new DisposableStore()));
|
|
345
342
|
workingCopyListeners.add(workingCopy.onDidResolve(() => this._onDidResolve.fire(workingCopy)));
|
|
346
343
|
workingCopyListeners.add(workingCopy.onDidChangeDirty(() => this._onDidChangeDirty.fire(workingCopy)));
|
|
347
344
|
workingCopyListeners.add(workingCopy.onDidChangeReadonly(() => this._onDidChangeReadonly.fire(workingCopy)));
|
|
@@ -365,7 +362,7 @@ let StoredFileWorkingCopyManager = class StoredFileWorkingCopyManager extends Ba
|
|
|
365
362
|
}
|
|
366
363
|
canDispose(workingCopy) {
|
|
367
364
|
if (workingCopy.isDisposed() ||
|
|
368
|
-
(!( this.mapResourceToPendingWorkingCopyResolve.has(workingCopy.resource)) && !workingCopy.isDirty())) {
|
|
365
|
+
(!( (this.mapResourceToPendingWorkingCopyResolve.has(workingCopy.resource))) && !workingCopy.isDirty())) {
|
|
369
366
|
return true;
|
|
370
367
|
}
|
|
371
368
|
return this.doCanDispose(workingCopy);
|
|
@@ -385,24 +382,24 @@ let StoredFileWorkingCopyManager = class StoredFileWorkingCopyManager extends Ba
|
|
|
385
382
|
dispose() {
|
|
386
383
|
super.dispose();
|
|
387
384
|
this.mapResourceToPendingWorkingCopyResolve.clear();
|
|
388
|
-
dispose(( this.mapResourceToWorkingCopyListeners.values()));
|
|
385
|
+
dispose(( (this.mapResourceToWorkingCopyListeners.values())));
|
|
389
386
|
this.mapResourceToWorkingCopyListeners.clear();
|
|
390
387
|
}
|
|
391
388
|
};
|
|
392
|
-
StoredFileWorkingCopyManager = ( __decorate([
|
|
393
|
-
( __param(2, IFileService)),
|
|
394
|
-
( __param(3, ILifecycleService)),
|
|
395
|
-
( __param(4, ILabelService)),
|
|
396
|
-
( __param(5, ILogService)),
|
|
397
|
-
( __param(6, IWorkingCopyFileService)),
|
|
398
|
-
( __param(7, IWorkingCopyBackupService)),
|
|
399
|
-
( __param(8, IUriIdentityService)),
|
|
400
|
-
( __param(9, IFilesConfigurationService)),
|
|
401
|
-
( __param(10, IWorkingCopyService)),
|
|
402
|
-
( __param(11, INotificationService)),
|
|
403
|
-
( __param(12, IWorkingCopyEditorService)),
|
|
404
|
-
( __param(13, IEditorService)),
|
|
405
|
-
( __param(14, IElevatedFileService))
|
|
406
|
-
], StoredFileWorkingCopyManager));
|
|
389
|
+
StoredFileWorkingCopyManager = ( (__decorate([
|
|
390
|
+
( (__param(2, IFileService))),
|
|
391
|
+
( (__param(3, ILifecycleService))),
|
|
392
|
+
( (__param(4, ILabelService))),
|
|
393
|
+
( (__param(5, ILogService))),
|
|
394
|
+
( (__param(6, IWorkingCopyFileService))),
|
|
395
|
+
( (__param(7, IWorkingCopyBackupService))),
|
|
396
|
+
( (__param(8, IUriIdentityService))),
|
|
397
|
+
( (__param(9, IFilesConfigurationService))),
|
|
398
|
+
( (__param(10, IWorkingCopyService))),
|
|
399
|
+
( (__param(11, INotificationService))),
|
|
400
|
+
( (__param(12, IWorkingCopyEditorService))),
|
|
401
|
+
( (__param(13, IEditorService))),
|
|
402
|
+
( (__param(14, IElevatedFileService)))
|
|
403
|
+
], StoredFileWorkingCopyManager)));
|
|
407
404
|
|
|
408
405
|
export { StoredFileWorkingCopyManager };
|