@codingame/monaco-vscode-timeline-service-override 10.0.0 → 10.0.1
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-timeline-service-override",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.1",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@10.0.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@10.0.1"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -23,7 +23,7 @@ function getLocalHistoryDateFormatter() {
|
|
|
23
23
|
}
|
|
24
24
|
const LOCAL_HISTORY_MENU_CONTEXT_VALUE = 'localHistory:item';
|
|
25
25
|
const LOCAL_HISTORY_MENU_CONTEXT_KEY = ( (ContextKeyExpr.equals('timelineItem', LOCAL_HISTORY_MENU_CONTEXT_VALUE)));
|
|
26
|
-
const LOCAL_HISTORY_ICON_ENTRY = registerIcon('localHistory-icon', Codicon.circleOutline, ( localize(
|
|
27
|
-
const LOCAL_HISTORY_ICON_RESTORE = registerIcon('localHistory-restore', Codicon.check, ( localize(
|
|
26
|
+
const LOCAL_HISTORY_ICON_ENTRY = registerIcon('localHistory-icon', Codicon.circleOutline, ( localize(10664, "Icon for a local history entry in the timeline view.")));
|
|
27
|
+
const LOCAL_HISTORY_ICON_RESTORE = registerIcon('localHistory-restore', Codicon.check, ( localize(10665, "Icon for restoring contents of a local history entry.")));
|
|
28
28
|
|
|
29
29
|
export { LOCAL_HISTORY_ICON_ENTRY, LOCAL_HISTORY_ICON_RESTORE, LOCAL_HISTORY_MENU_CONTEXT_KEY, LOCAL_HISTORY_MENU_CONTEXT_VALUE, getLocalHistoryDateFormatter };
|
|
@@ -30,9 +30,9 @@ import { ResourceSet } from 'vscode/vscode/vs/base/common/map';
|
|
|
30
30
|
import { IHistoryService } from 'vscode/vscode/vs/workbench/services/history/common/history.service';
|
|
31
31
|
import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
32
32
|
|
|
33
|
-
const LOCAL_HISTORY_CATEGORY = ( localize2(
|
|
33
|
+
const LOCAL_HISTORY_CATEGORY = ( localize2(6694, 'Local History'));
|
|
34
34
|
const CTX_LOCAL_HISTORY_ENABLED = ( (ContextKeyExpr.has('config.workbench.localHistory.enabled')));
|
|
35
|
-
const COMPARE_WITH_FILE_LABEL = ( localize2(
|
|
35
|
+
const COMPARE_WITH_FILE_LABEL = ( localize2(6695, 'Compare with File'));
|
|
36
36
|
registerAction2(class extends Action2 {
|
|
37
37
|
constructor() {
|
|
38
38
|
super({
|
|
@@ -59,7 +59,7 @@ registerAction2(class extends Action2 {
|
|
|
59
59
|
constructor() {
|
|
60
60
|
super({
|
|
61
61
|
id: 'workbench.action.localHistory.compareWithPrevious',
|
|
62
|
-
title: ( localize2(
|
|
62
|
+
title: ( localize2(6696, 'Compare with Previous')),
|
|
63
63
|
menu: {
|
|
64
64
|
id: MenuId.TimelineItemContext,
|
|
65
65
|
group: '1_compare',
|
|
@@ -87,7 +87,7 @@ registerAction2(class extends Action2 {
|
|
|
87
87
|
constructor() {
|
|
88
88
|
super({
|
|
89
89
|
id: 'workbench.action.localHistory.selectForCompare',
|
|
90
|
-
title: ( localize2(
|
|
90
|
+
title: ( localize2(6697, 'Select for Compare')),
|
|
91
91
|
menu: {
|
|
92
92
|
id: MenuId.TimelineItemContext,
|
|
93
93
|
group: '2_compare_with',
|
|
@@ -110,7 +110,7 @@ registerAction2(class extends Action2 {
|
|
|
110
110
|
constructor() {
|
|
111
111
|
super({
|
|
112
112
|
id: 'workbench.action.localHistory.compareWithSelected',
|
|
113
|
-
title: ( localize2(
|
|
113
|
+
title: ( localize2(6698, 'Compare with Selected')),
|
|
114
114
|
menu: {
|
|
115
115
|
id: MenuId.TimelineItemContext,
|
|
116
116
|
group: '2_compare_with',
|
|
@@ -139,7 +139,7 @@ registerAction2(class extends Action2 {
|
|
|
139
139
|
constructor() {
|
|
140
140
|
super({
|
|
141
141
|
id: 'workbench.action.localHistory.open',
|
|
142
|
-
title: ( localize2(
|
|
142
|
+
title: ( localize2(6699, 'Show Contents')),
|
|
143
143
|
menu: {
|
|
144
144
|
id: MenuId.TimelineItemContext,
|
|
145
145
|
group: '3_contents',
|
|
@@ -157,7 +157,7 @@ registerAction2(class extends Action2 {
|
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
});
|
|
160
|
-
const RESTORE_CONTENTS_LABEL = ( localize2(
|
|
160
|
+
const RESTORE_CONTENTS_LABEL = ( localize2(6700, 'Restore Contents'));
|
|
161
161
|
registerAction2(class extends Action2 {
|
|
162
162
|
constructor() {
|
|
163
163
|
super({
|
|
@@ -194,7 +194,7 @@ registerAction2(class extends Action2 {
|
|
|
194
194
|
return restore(accessor, item);
|
|
195
195
|
}
|
|
196
196
|
});
|
|
197
|
-
const restoreSaveSource = SaveSourceRegistry.registerSource('localHistoryRestore.source', ( localize(
|
|
197
|
+
const restoreSaveSource = SaveSourceRegistry.registerSource('localHistoryRestore.source', ( localize(6701, "File Restored")));
|
|
198
198
|
async function restore(accessor, item) {
|
|
199
199
|
const fileService = accessor.get(IFileService);
|
|
200
200
|
const dialogService = accessor.get(IDialogService);
|
|
@@ -206,12 +206,12 @@ async function restore(accessor, item) {
|
|
|
206
206
|
const { confirmed } = await dialogService.confirm({
|
|
207
207
|
type: 'warning',
|
|
208
208
|
message: ( localize(
|
|
209
|
-
|
|
209
|
+
6702,
|
|
210
210
|
"Do you want to restore the contents of '{0}'?",
|
|
211
211
|
basename(entry.workingCopy.resource)
|
|
212
212
|
)),
|
|
213
|
-
detail: ( localize(
|
|
214
|
-
primaryButton: ( localize(
|
|
213
|
+
detail: ( localize(6703, "Restoring will discard any unsaved changes.")),
|
|
214
|
+
primaryButton: ( localize(6704, "&&Restore"))
|
|
215
215
|
});
|
|
216
216
|
if (!confirmed) {
|
|
217
217
|
return;
|
|
@@ -228,7 +228,7 @@ async function restore(accessor, item) {
|
|
|
228
228
|
await fileService.cloneFile(entry.location, entry.workingCopy.resource);
|
|
229
229
|
}
|
|
230
230
|
catch (error) {
|
|
231
|
-
await dialogService.error(( localize(
|
|
231
|
+
await dialogService.error(( localize(6705, "Unable to restore '{0}'.", basename(entry.workingCopy.resource))), toErrorMessage(error));
|
|
232
232
|
return;
|
|
233
233
|
}
|
|
234
234
|
if (workingCopies) {
|
|
@@ -248,7 +248,7 @@ registerAction2(class extends Action2 {
|
|
|
248
248
|
constructor() {
|
|
249
249
|
super({
|
|
250
250
|
id: 'workbench.action.localHistory.restoreViaPicker',
|
|
251
|
-
title: ( localize2(
|
|
251
|
+
title: ( localize2(6706, 'Find Entry to Restore')),
|
|
252
252
|
f1: true,
|
|
253
253
|
category: LOCAL_HISTORY_CATEGORY,
|
|
254
254
|
precondition: CTX_LOCAL_HISTORY_ENABLED
|
|
@@ -283,7 +283,7 @@ registerAction2(class extends Action2 {
|
|
|
283
283
|
}
|
|
284
284
|
resourcesSortedByRecency.push(...[...resources].sort((r1, r2) => r1.fsPath < r2.fsPath ? -1 : 1));
|
|
285
285
|
resourcePicker.busy = false;
|
|
286
|
-
resourcePicker.placeholder = ( localize(
|
|
286
|
+
resourcePicker.placeholder = ( localize(6707, "Select the file to show local history for"));
|
|
287
287
|
resourcePicker.matchOnLabel = true;
|
|
288
288
|
resourcePicker.matchOnDescription = true;
|
|
289
289
|
resourcePicker.items = ( ([...resourcesSortedByRecency].map(resource => ({
|
|
@@ -307,7 +307,7 @@ registerAction2(class extends Action2 {
|
|
|
307
307
|
const entries = await workingCopyHistoryService.getEntries(resource, cts.token);
|
|
308
308
|
entryPicker.busy = false;
|
|
309
309
|
entryPicker.canAcceptInBackground = true;
|
|
310
|
-
entryPicker.placeholder = ( localize(
|
|
310
|
+
entryPicker.placeholder = ( localize(6708, "Select the local history entry to open"));
|
|
311
311
|
entryPicker.matchOnLabel = true;
|
|
312
312
|
entryPicker.matchOnDescription = true;
|
|
313
313
|
entryPicker.items = ( (Array.from(entries).reverse().map(entry => ({
|
|
@@ -331,12 +331,12 @@ registerAction2(class extends Action2 {
|
|
|
331
331
|
}));
|
|
332
332
|
}
|
|
333
333
|
});
|
|
334
|
-
MenuRegistry.appendMenuItem(MenuId.TimelineTitle, { command: { id: 'workbench.action.localHistory.restoreViaPicker', title: ( localize2(
|
|
334
|
+
MenuRegistry.appendMenuItem(MenuId.TimelineTitle, { command: { id: 'workbench.action.localHistory.restoreViaPicker', title: ( localize2(6709, 'Local History: Find Entry to Restore...')) }, group: 'submenu', order: 1, when: CTX_LOCAL_HISTORY_ENABLED });
|
|
335
335
|
registerAction2(class extends Action2 {
|
|
336
336
|
constructor() {
|
|
337
337
|
super({
|
|
338
338
|
id: 'workbench.action.localHistory.rename',
|
|
339
|
-
title: ( localize2(
|
|
339
|
+
title: ( localize2(6710, 'Rename')),
|
|
340
340
|
menu: {
|
|
341
341
|
id: MenuId.TimelineItemContext,
|
|
342
342
|
group: '5_edit',
|
|
@@ -352,9 +352,9 @@ registerAction2(class extends Action2 {
|
|
|
352
352
|
if (entry) {
|
|
353
353
|
const disposables = ( (new DisposableStore()));
|
|
354
354
|
const inputBox = disposables.add(quickInputService.createInputBox());
|
|
355
|
-
inputBox.title = ( localize(
|
|
355
|
+
inputBox.title = ( localize(6711, "Rename Local History Entry"));
|
|
356
356
|
inputBox.ignoreFocusOut = true;
|
|
357
|
-
inputBox.placeholder = ( localize(
|
|
357
|
+
inputBox.placeholder = ( localize(6712, "Enter the new name of the local history entry"));
|
|
358
358
|
inputBox.value = SaveSourceRegistry.getSourceLabel(entry.source);
|
|
359
359
|
inputBox.show();
|
|
360
360
|
disposables.add(inputBox.onDidAccept(() => {
|
|
@@ -370,7 +370,7 @@ registerAction2(class extends Action2 {
|
|
|
370
370
|
constructor() {
|
|
371
371
|
super({
|
|
372
372
|
id: 'workbench.action.localHistory.delete',
|
|
373
|
-
title: ( localize2(
|
|
373
|
+
title: ( localize2(6713, 'Delete')),
|
|
374
374
|
menu: {
|
|
375
375
|
id: MenuId.TimelineItemContext,
|
|
376
376
|
group: '5_edit',
|
|
@@ -388,13 +388,13 @@ registerAction2(class extends Action2 {
|
|
|
388
388
|
const { confirmed } = await dialogService.confirm({
|
|
389
389
|
type: 'warning',
|
|
390
390
|
message: ( localize(
|
|
391
|
-
|
|
391
|
+
6714,
|
|
392
392
|
"Do you want to delete the local history entry of '{0}' from {1}?",
|
|
393
393
|
entry.workingCopy.name,
|
|
394
394
|
toLocalHistoryEntryDateLabel(entry.timestamp)
|
|
395
395
|
)),
|
|
396
|
-
detail: ( localize(
|
|
397
|
-
primaryButton: ( localize(
|
|
396
|
+
detail: ( localize(6715, "This action is irreversible!")),
|
|
397
|
+
primaryButton: ( localize(6716, "&&Delete")),
|
|
398
398
|
});
|
|
399
399
|
if (!confirmed) {
|
|
400
400
|
return;
|
|
@@ -408,7 +408,7 @@ registerAction2(class extends Action2 {
|
|
|
408
408
|
constructor() {
|
|
409
409
|
super({
|
|
410
410
|
id: 'workbench.action.localHistory.deleteAll',
|
|
411
|
-
title: ( localize2(
|
|
411
|
+
title: ( localize2(6717, 'Delete All')),
|
|
412
412
|
f1: true,
|
|
413
413
|
category: LOCAL_HISTORY_CATEGORY,
|
|
414
414
|
precondition: CTX_LOCAL_HISTORY_ENABLED
|
|
@@ -419,9 +419,9 @@ registerAction2(class extends Action2 {
|
|
|
419
419
|
const workingCopyHistoryService = accessor.get(IWorkingCopyHistoryService);
|
|
420
420
|
const { confirmed } = await dialogService.confirm({
|
|
421
421
|
type: 'warning',
|
|
422
|
-
message: ( localize(
|
|
423
|
-
detail: ( localize(
|
|
424
|
-
primaryButton: ( localize(
|
|
422
|
+
message: ( localize(6718, "Do you want to delete all entries of all files in local history?")),
|
|
423
|
+
detail: ( localize(6719, "This action is irreversible!")),
|
|
424
|
+
primaryButton: ( localize(6720, "&&Delete All")),
|
|
425
425
|
});
|
|
426
426
|
if (!confirmed) {
|
|
427
427
|
return;
|
|
@@ -433,7 +433,7 @@ registerAction2(class extends Action2 {
|
|
|
433
433
|
constructor() {
|
|
434
434
|
super({
|
|
435
435
|
id: 'workbench.action.localHistory.create',
|
|
436
|
-
title: ( localize2(
|
|
436
|
+
title: ( localize2(6721, 'Create Entry')),
|
|
437
437
|
f1: true,
|
|
438
438
|
category: LOCAL_HISTORY_CATEGORY,
|
|
439
439
|
precondition: ( (ContextKeyExpr.and(CTX_LOCAL_HISTORY_ENABLED, ActiveEditorContext)))
|
|
@@ -451,10 +451,10 @@ registerAction2(class extends Action2 {
|
|
|
451
451
|
}
|
|
452
452
|
const disposables = ( (new DisposableStore()));
|
|
453
453
|
const inputBox = disposables.add(quickInputService.createInputBox());
|
|
454
|
-
inputBox.title = ( localize(
|
|
454
|
+
inputBox.title = ( localize(6722, "Create Local History Entry"));
|
|
455
455
|
inputBox.ignoreFocusOut = true;
|
|
456
456
|
inputBox.placeholder = ( localize(
|
|
457
|
-
|
|
457
|
+
6723,
|
|
458
458
|
"Enter the new name of the local history entry for '{0}'",
|
|
459
459
|
labelService.getUriBasenameLabel(resource)
|
|
460
460
|
));
|
|
@@ -473,7 +473,7 @@ async function openEntry(entry, editorService, options) {
|
|
|
473
473
|
await editorService.openEditor({
|
|
474
474
|
resource,
|
|
475
475
|
label: ( localize(
|
|
476
|
-
|
|
476
|
+
6724,
|
|
477
477
|
"{0} ({1} • {2})",
|
|
478
478
|
entry.workingCopy.name,
|
|
479
479
|
SaveSourceRegistry.getSourceLabel(entry.source),
|
|
@@ -495,7 +495,7 @@ function toDiffEditorArguments(arg1, arg2, options) {
|
|
|
495
495
|
const resource = arg2;
|
|
496
496
|
modifiedResource = resource;
|
|
497
497
|
label = ( localize(
|
|
498
|
-
|
|
498
|
+
6725,
|
|
499
499
|
"{0} ({1} • {2}) ↔ {3}",
|
|
500
500
|
arg1.workingCopy.name,
|
|
501
501
|
SaveSourceRegistry.getSourceLabel(arg1.source),
|
|
@@ -507,7 +507,7 @@ function toDiffEditorArguments(arg1, arg2, options) {
|
|
|
507
507
|
const modified = arg2;
|
|
508
508
|
modifiedResource = LocalHistoryFileSystemProvider.toLocalHistoryFileSystem({ location: modified.location, associatedResource: modified.workingCopy.resource });
|
|
509
509
|
label = ( localize(
|
|
510
|
-
|
|
510
|
+
6726,
|
|
511
511
|
"{0} ({1} • {2}) ↔ {3} ({4} • {5})",
|
|
512
512
|
arg1.workingCopy.name,
|
|
513
513
|
SaveSourceRegistry.getSourceLabel(arg1.source),
|
|
@@ -173,7 +173,7 @@ class LoadMoreCommand {
|
|
|
173
173
|
return this.label;
|
|
174
174
|
}
|
|
175
175
|
get label() {
|
|
176
|
-
return this.loading ? ( localize(
|
|
176
|
+
return this.loading ? ( localize(6677, "Loading...")) : ( localize(6678, "Load more"));
|
|
177
177
|
}
|
|
178
178
|
get themeIcon() {
|
|
179
179
|
return undefined;
|
|
@@ -182,7 +182,7 @@ class LoadMoreCommand {
|
|
|
182
182
|
const TimelineFollowActiveEditorContext = ( (new RawContextKey('timelineFollowActiveEditor', true, true)));
|
|
183
183
|
const TimelineExcludeSources = ( (new RawContextKey('timelineExcludeSources', '[]', true)));
|
|
184
184
|
let TimelinePane = class TimelinePane extends ViewPane {
|
|
185
|
-
static { this.TITLE = ( localize2(
|
|
185
|
+
static { this.TITLE = ( localize2(6679, "Timeline")); }
|
|
186
186
|
constructor(options, keybindingService, contextMenuService, contextKeyService, configurationService, storageService, viewDescriptorService, instantiationService, editorService, commandService, progressService, timelineService, openerService, themeService, telemetryService, hoverService, labelService, uriIdentityService, extensionService) {
|
|
187
187
|
super({ ...options, titleMenuId: MenuId.TimelineTitle }, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, telemetryService, hoverService);
|
|
188
188
|
this.storageService = storageService;
|
|
@@ -618,7 +618,7 @@ let TimelinePane = class TimelinePane extends ViewPane {
|
|
|
618
618
|
this._isEmpty = !this.hasVisibleItems;
|
|
619
619
|
if (this.uri === undefined) {
|
|
620
620
|
this.updateFilename(undefined);
|
|
621
|
-
this.message = ( localize(
|
|
621
|
+
this.message = ( localize(6680, "The active editor cannot provide timeline information."));
|
|
622
622
|
}
|
|
623
623
|
else if (this._isEmpty) {
|
|
624
624
|
if (this.pendingRequests.size !== 0) {
|
|
@@ -628,24 +628,24 @@ let TimelinePane = class TimelinePane extends ViewPane {
|
|
|
628
628
|
this.updateFilename(this.labelService.getUriBasenameLabel(this.uri));
|
|
629
629
|
const scmProviderCount = this.contextKeyService.getContextKeyValue('scm.providerCount');
|
|
630
630
|
if (this.timelineService.getSources().filter(({ id }) => !( (this.excludedSources.has(id)))).length === 0) {
|
|
631
|
-
this.message = ( localize(
|
|
631
|
+
this.message = ( localize(6681, "All timeline sources have been filtered out."));
|
|
632
632
|
}
|
|
633
633
|
else {
|
|
634
634
|
if (this.configurationService.getValue('workbench.localHistory.enabled') && !( (this.excludedSources.has('timeline.localHistory')))) {
|
|
635
635
|
this.message = ( localize(
|
|
636
|
-
|
|
636
|
+
6682,
|
|
637
637
|
"Local History will track recent changes as you save them unless the file has been excluded or is too large."
|
|
638
638
|
));
|
|
639
639
|
}
|
|
640
640
|
else if (this.excludedSources.size > 0) {
|
|
641
|
-
this.message = ( localize(
|
|
641
|
+
this.message = ( localize(6683, "No filtered timeline information was provided."));
|
|
642
642
|
}
|
|
643
643
|
else {
|
|
644
|
-
this.message = ( localize(
|
|
644
|
+
this.message = ( localize(6684, "No timeline information was provided."));
|
|
645
645
|
}
|
|
646
646
|
}
|
|
647
647
|
if (!scmProviderCount || scmProviderCount === 0) {
|
|
648
|
-
this.message += ' ' + ( localize(
|
|
648
|
+
this.message += ' ' + ( localize(6685, "Source Control has not been configured."));
|
|
649
649
|
}
|
|
650
650
|
}
|
|
651
651
|
}
|
|
@@ -702,7 +702,7 @@ let TimelinePane = class TimelinePane extends ViewPane {
|
|
|
702
702
|
container.classList.add('tree-explorer-viewlet-tree-view', 'timeline-tree-view');
|
|
703
703
|
this.$message = append(this.$container, $('.message'));
|
|
704
704
|
this.$message.classList.add('timeline-subtle');
|
|
705
|
-
this.message = ( localize(
|
|
705
|
+
this.message = ( localize(6680, "The active editor cannot provide timeline information."));
|
|
706
706
|
this.$tree = document.createElement('div');
|
|
707
707
|
this.$tree.classList.add('customview-tree', 'file-icon-themable-tree', 'hide-arrows');
|
|
708
708
|
container.appendChild(this.$tree);
|
|
@@ -719,7 +719,7 @@ let TimelinePane = class TimelinePane extends ViewPane {
|
|
|
719
719
|
if (isLoadMoreCommand(element)) {
|
|
720
720
|
return element.ariaLabel;
|
|
721
721
|
}
|
|
722
|
-
return element.accessibilityInformation ? element.accessibilityInformation.label : ( localize(
|
|
722
|
+
return element.accessibilityInformation ? element.accessibilityInformation.label : ( localize(6686, "{0}: {1}", element.relativeTimeFullWord ?? '', element.label));
|
|
723
723
|
},
|
|
724
724
|
getRole(element) {
|
|
725
725
|
if (isLoadMoreCommand(element)) {
|
|
@@ -728,7 +728,7 @@ let TimelinePane = class TimelinePane extends ViewPane {
|
|
|
728
728
|
return element.accessibilityInformation && element.accessibilityInformation.role ? element.accessibilityInformation.role : 'treeitem';
|
|
729
729
|
},
|
|
730
730
|
getWidgetAriaLabel() {
|
|
731
|
-
return ( localize(
|
|
731
|
+
return ( localize(6679, "Timeline"));
|
|
732
732
|
}
|
|
733
733
|
},
|
|
734
734
|
keyboardNavigationLabelProvider: ( (new TimelineKeyboardNavigationLabelProvider())),
|
|
@@ -789,7 +789,7 @@ let TimelinePane = class TimelinePane extends ViewPane {
|
|
|
789
789
|
setLoadingUriMessage() {
|
|
790
790
|
const file = this.uri && this.labelService.getUriBasenameLabel(this.uri);
|
|
791
791
|
this.updateFilename(file);
|
|
792
|
-
this.message = file ? ( localize(
|
|
792
|
+
this.message = file ? ( localize(6687, "Loading timeline for {0}...", file)) : '';
|
|
793
793
|
}
|
|
794
794
|
onContextMenu(commands, treeEvent) {
|
|
795
795
|
const item = treeEvent.element;
|
|
@@ -977,9 +977,9 @@ TimelineTreeRenderer = ( (__decorate([
|
|
|
977
977
|
( (__param(1, IInstantiationService))),
|
|
978
978
|
( (__param(2, IThemeService)))
|
|
979
979
|
], TimelineTreeRenderer)));
|
|
980
|
-
const timelineRefresh = registerIcon('timeline-refresh', Codicon.refresh, ( localize(
|
|
981
|
-
const timelinePin = registerIcon('timeline-pin', Codicon.pin, ( localize(
|
|
982
|
-
const timelineUnpin = registerIcon('timeline-unpin', Codicon.pinned, ( localize(
|
|
980
|
+
const timelineRefresh = registerIcon('timeline-refresh', Codicon.refresh, ( localize(6688, 'Icon for the refresh timeline action.')));
|
|
981
|
+
const timelinePin = registerIcon('timeline-pin', Codicon.pin, ( localize(6689, 'Icon for the pin timeline action.')));
|
|
982
|
+
const timelineUnpin = registerIcon('timeline-unpin', Codicon.pinned, ( localize(6690, 'Icon for the unpin timeline action.')));
|
|
983
983
|
let TimelinePaneCommands = class TimelinePaneCommands extends Disposable {
|
|
984
984
|
constructor(pane, timelineService, storageService, contextKeyService, menuService) {
|
|
985
985
|
super();
|
|
@@ -993,9 +993,9 @@ let TimelinePaneCommands = class TimelinePaneCommands extends Disposable {
|
|
|
993
993
|
constructor() {
|
|
994
994
|
super({
|
|
995
995
|
id: 'timeline.refresh',
|
|
996
|
-
title: ( localize2(
|
|
996
|
+
title: ( localize2(6691, "Refresh")),
|
|
997
997
|
icon: timelineRefresh,
|
|
998
|
-
category: ( localize2(
|
|
998
|
+
category: ( localize2(6679, "Timeline")),
|
|
999
999
|
menu: {
|
|
1000
1000
|
id: MenuId.TimelineTitle,
|
|
1001
1001
|
group: 'navigation',
|
|
@@ -1011,9 +1011,9 @@ let TimelinePaneCommands = class TimelinePaneCommands extends Disposable {
|
|
|
1011
1011
|
this._register(MenuRegistry.appendMenuItem(MenuId.TimelineTitle, ({
|
|
1012
1012
|
command: {
|
|
1013
1013
|
id: 'timeline.toggleFollowActiveEditor',
|
|
1014
|
-
title: ( localize2(
|
|
1014
|
+
title: ( localize2(6692, 'Pin the Current Timeline')),
|
|
1015
1015
|
icon: timelinePin,
|
|
1016
|
-
category: ( localize2(
|
|
1016
|
+
category: ( localize2(6679, "Timeline")),
|
|
1017
1017
|
},
|
|
1018
1018
|
group: 'navigation',
|
|
1019
1019
|
order: 98,
|
|
@@ -1022,9 +1022,9 @@ let TimelinePaneCommands = class TimelinePaneCommands extends Disposable {
|
|
|
1022
1022
|
this._register(MenuRegistry.appendMenuItem(MenuId.TimelineTitle, ({
|
|
1023
1023
|
command: {
|
|
1024
1024
|
id: 'timeline.toggleFollowActiveEditor',
|
|
1025
|
-
title: ( localize2(
|
|
1025
|
+
title: ( localize2(6693, 'Unpin the Current Timeline')),
|
|
1026
1026
|
icon: timelineUnpin,
|
|
1027
|
-
category: ( localize2(
|
|
1027
|
+
category: ( localize2(6679, "Timeline")),
|
|
1028
1028
|
},
|
|
1029
1029
|
group: 'navigation',
|
|
1030
1030
|
order: 98,
|