@codingame/monaco-vscode-timeline-service-override 18.1.3 → 18.2.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": "18.1
|
|
3
|
+
"version": "18.2.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - timeline service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common": "18.1
|
|
19
|
-
"@codingame/monaco-vscode-97284942-b044-5fbb-b53b-3f46d2468746-common": "18.1
|
|
20
|
-
"@codingame/monaco-vscode-api": "18.1
|
|
21
|
-
"@codingame/monaco-vscode-b71b5434-ce96-5581-8993-e8da380bd63f-common": "18.1
|
|
22
|
-
"@codingame/monaco-vscode-f48982c4-9e82-55e2-b800-20e6d1e6096f-common": "18.1
|
|
18
|
+
"@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common": "18.2.1",
|
|
19
|
+
"@codingame/monaco-vscode-97284942-b044-5fbb-b53b-3f46d2468746-common": "18.2.1",
|
|
20
|
+
"@codingame/monaco-vscode-api": "18.2.1",
|
|
21
|
+
"@codingame/monaco-vscode-b71b5434-ce96-5581-8993-e8da380bd63f-common": "18.2.1",
|
|
22
|
+
"@codingame/monaco-vscode-f48982c4-9e82-55e2-b800-20e6d1e6096f-common": "18.2.1"
|
|
23
23
|
},
|
|
24
24
|
"main": "index.js",
|
|
25
25
|
"module": "index.js",
|
|
@@ -18,8 +18,8 @@ import { ResourceContextKey } from '@codingame/monaco-vscode-api/vscode/vs/workb
|
|
|
18
18
|
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
19
19
|
import { registerIcon } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/iconRegistry';
|
|
20
20
|
|
|
21
|
-
const timelineViewIcon = registerIcon('timeline-view-icon', Codicon.history, ( localize(
|
|
22
|
-
const timelineOpenIcon = registerIcon('timeline-open', Codicon.history, ( localize(
|
|
21
|
+
const timelineViewIcon = registerIcon('timeline-view-icon', Codicon.history, ( localize(11416, 'View icon of the timeline view.')));
|
|
22
|
+
const timelineOpenIcon = registerIcon('timeline-open', Codicon.history, ( localize(11417, 'Icon for the open timeline action.')));
|
|
23
23
|
class TimelinePaneDescriptor {
|
|
24
24
|
constructor() {
|
|
25
25
|
this.id = TimelinePaneId;
|
|
@@ -40,14 +40,14 @@ const configurationRegistry = ( Registry.as(Extensions.Configuration));
|
|
|
40
40
|
configurationRegistry.registerConfiguration({
|
|
41
41
|
id: 'timeline',
|
|
42
42
|
order: 1001,
|
|
43
|
-
title: ( localize(
|
|
43
|
+
title: ( localize(11418, "Timeline")),
|
|
44
44
|
type: 'object',
|
|
45
45
|
properties: {
|
|
46
46
|
'timeline.pageSize': {
|
|
47
47
|
type: ['number', 'null'],
|
|
48
48
|
default: 50,
|
|
49
49
|
markdownDescription: ( localize(
|
|
50
|
-
|
|
50
|
+
11419,
|
|
51
51
|
"The number of items to show in the Timeline view by default and when loading more items. Setting to `null` will automatically choose a page size based on the visible area of the Timeline view."
|
|
52
52
|
)),
|
|
53
53
|
},
|
|
@@ -55,7 +55,7 @@ configurationRegistry.registerConfiguration({
|
|
|
55
55
|
type: 'boolean',
|
|
56
56
|
default: true,
|
|
57
57
|
description: ( localize(
|
|
58
|
-
|
|
58
|
+
11420,
|
|
59
59
|
"Controls whether the Timeline view will load the next page of items when you scroll to the end of the list."
|
|
60
60
|
)),
|
|
61
61
|
},
|
|
@@ -65,7 +65,7 @@ configurationRegistry.registerConfiguration({
|
|
|
65
65
|
var OpenTimelineAction;
|
|
66
66
|
(function (OpenTimelineAction) {
|
|
67
67
|
OpenTimelineAction.ID = 'files.openTimeline';
|
|
68
|
-
OpenTimelineAction.LABEL = ( localize(
|
|
68
|
+
OpenTimelineAction.LABEL = ( localize(11421, "Open Timeline"));
|
|
69
69
|
function handler() {
|
|
70
70
|
return (accessor, arg) => {
|
|
71
71
|
const service = accessor.get(ITimelineService);
|
|
@@ -85,10 +85,10 @@ MenuRegistry.appendMenuItem(MenuId.ExplorerContext, ({
|
|
|
85
85
|
},
|
|
86
86
|
when: ( ContextKeyExpr.and(( ExplorerFolderContext.toNegated()), ResourceContextKey.HasResource, TimelineHasProviderContext))
|
|
87
87
|
}));
|
|
88
|
-
const timelineFilter = registerIcon('timeline-filter', Codicon.filter, ( localize(
|
|
88
|
+
const timelineFilter = registerIcon('timeline-filter', Codicon.filter, ( localize(11422, 'Icon for the filter timeline action.')));
|
|
89
89
|
MenuRegistry.appendMenuItem(MenuId.TimelineTitle, {
|
|
90
90
|
submenu: MenuId.TimelineFilterSubMenu,
|
|
91
|
-
title: ( localize(
|
|
91
|
+
title: ( localize(11423, "Filter Timeline")),
|
|
92
92
|
group: 'navigation',
|
|
93
93
|
order: 100,
|
|
94
94
|
icon: timelineFilter
|
|
@@ -179,7 +179,7 @@ class LoadMoreCommand {
|
|
|
179
179
|
return this.label;
|
|
180
180
|
}
|
|
181
181
|
get label() {
|
|
182
|
-
return this.loading ? ( localize(
|
|
182
|
+
return this.loading ? ( localize(11424, "Loading...")) : ( localize(11425, "Load more"));
|
|
183
183
|
}
|
|
184
184
|
get themeIcon() {
|
|
185
185
|
return undefined;
|
|
@@ -189,7 +189,7 @@ const TimelineFollowActiveEditorContext = ( new RawContextKey('timelineFollowAct
|
|
|
189
189
|
const TimelineExcludeSources = ( new RawContextKey('timelineExcludeSources', '[]', true));
|
|
190
190
|
const TimelineViewFocusedContext = ( new RawContextKey('timelineFocused', true));
|
|
191
191
|
let TimelinePane = class TimelinePane extends ViewPane {
|
|
192
|
-
static { this.TITLE = ( localize2(
|
|
192
|
+
static { this.TITLE = ( localize2(11426, "Timeline")); }
|
|
193
193
|
constructor(options, keybindingService, contextMenuService, contextKeyService, configurationService, storageService, viewDescriptorService, instantiationService, editorService, commandService, progressService, timelineService, openerService, themeService, hoverService, labelService, uriIdentityService, extensionService) {
|
|
194
194
|
super({ ...options, titleMenuId: MenuId.TimelineTitle }, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, hoverService);
|
|
195
195
|
this.storageService = storageService;
|
|
@@ -632,7 +632,7 @@ let TimelinePane = class TimelinePane extends ViewPane {
|
|
|
632
632
|
this._isEmpty = !this.hasVisibleItems;
|
|
633
633
|
if (this.uri === undefined) {
|
|
634
634
|
this.updateFilename(undefined);
|
|
635
|
-
this.message = ( localize(
|
|
635
|
+
this.message = ( localize(11427, "The active editor cannot provide timeline information."));
|
|
636
636
|
}
|
|
637
637
|
else if (this._isEmpty) {
|
|
638
638
|
if (this.pendingRequests.size !== 0) {
|
|
@@ -642,24 +642,24 @@ let TimelinePane = class TimelinePane extends ViewPane {
|
|
|
642
642
|
this.updateFilename(this.labelService.getUriBasenameLabel(this.uri));
|
|
643
643
|
const scmProviderCount = this.contextKeyService.getContextKeyValue('scm.providerCount');
|
|
644
644
|
if (this.timelineService.getSources().filter(({ id }) => !( this.excludedSources.has(id))).length === 0) {
|
|
645
|
-
this.message = ( localize(
|
|
645
|
+
this.message = ( localize(11428, "All timeline sources have been filtered out."));
|
|
646
646
|
}
|
|
647
647
|
else {
|
|
648
648
|
if (this.configurationService.getValue('workbench.localHistory.enabled') && !( this.excludedSources.has('timeline.localHistory'))) {
|
|
649
649
|
this.message = ( localize(
|
|
650
|
-
|
|
650
|
+
11429,
|
|
651
651
|
"Local History will track recent changes as you save them unless the file has been excluded or is too large."
|
|
652
652
|
));
|
|
653
653
|
}
|
|
654
654
|
else if (this.excludedSources.size > 0) {
|
|
655
|
-
this.message = ( localize(
|
|
655
|
+
this.message = ( localize(11430, "No filtered timeline information was provided."));
|
|
656
656
|
}
|
|
657
657
|
else {
|
|
658
|
-
this.message = ( localize(
|
|
658
|
+
this.message = ( localize(11431, "No timeline information was provided."));
|
|
659
659
|
}
|
|
660
660
|
}
|
|
661
661
|
if (!scmProviderCount || scmProviderCount === 0) {
|
|
662
|
-
this.message += ' ' + ( localize(
|
|
662
|
+
this.message += ' ' + ( localize(11432, "Source Control has not been configured."));
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
665
|
}
|
|
@@ -716,7 +716,7 @@ let TimelinePane = class TimelinePane extends ViewPane {
|
|
|
716
716
|
container.classList.add('tree-explorer-viewlet-tree-view', 'timeline-tree-view');
|
|
717
717
|
this.$message = append(this.$container, $('.message'));
|
|
718
718
|
this.$message.classList.add('timeline-subtle');
|
|
719
|
-
this.message = ( localize(
|
|
719
|
+
this.message = ( localize(11427, "The active editor cannot provide timeline information."));
|
|
720
720
|
this.$tree = document.createElement('div');
|
|
721
721
|
this.$tree.classList.add('customview-tree', 'file-icon-themable-tree', 'hide-arrows');
|
|
722
722
|
container.appendChild(this.$tree);
|
|
@@ -733,7 +733,7 @@ let TimelinePane = class TimelinePane extends ViewPane {
|
|
|
733
733
|
if (isLoadMoreCommand(element)) {
|
|
734
734
|
return element.ariaLabel;
|
|
735
735
|
}
|
|
736
|
-
return element.accessibilityInformation ? element.accessibilityInformation.label : ( localize(
|
|
736
|
+
return element.accessibilityInformation ? element.accessibilityInformation.label : ( localize(11433, "{0}: {1}", element.relativeTimeFullWord ?? '', element.label));
|
|
737
737
|
},
|
|
738
738
|
getRole(element) {
|
|
739
739
|
if (isLoadMoreCommand(element)) {
|
|
@@ -742,7 +742,7 @@ let TimelinePane = class TimelinePane extends ViewPane {
|
|
|
742
742
|
return element.accessibilityInformation && element.accessibilityInformation.role ? element.accessibilityInformation.role : 'treeitem';
|
|
743
743
|
},
|
|
744
744
|
getWidgetAriaLabel() {
|
|
745
|
-
return localize(
|
|
745
|
+
return localize(11426, "Timeline");
|
|
746
746
|
}
|
|
747
747
|
},
|
|
748
748
|
keyboardNavigationLabelProvider: ( new TimelineKeyboardNavigationLabelProvider()),
|
|
@@ -802,7 +802,7 @@ let TimelinePane = class TimelinePane extends ViewPane {
|
|
|
802
802
|
setLoadingUriMessage() {
|
|
803
803
|
const file = this.uri && this.labelService.getUriBasenameLabel(this.uri);
|
|
804
804
|
this.updateFilename(file);
|
|
805
|
-
this.message = file ? ( localize(
|
|
805
|
+
this.message = file ? ( localize(11434, "Loading timeline for {0}...", file)) : '';
|
|
806
806
|
}
|
|
807
807
|
onContextMenu(commands, treeEvent) {
|
|
808
808
|
const item = treeEvent.element;
|
|
@@ -992,9 +992,9 @@ TimelineTreeRenderer = ( __decorate([
|
|
|
992
992
|
( __param(1, IInstantiationService)),
|
|
993
993
|
( __param(2, IThemeService))
|
|
994
994
|
], TimelineTreeRenderer));
|
|
995
|
-
const timelineRefresh = registerIcon('timeline-refresh', Codicon.refresh, ( localize(
|
|
996
|
-
const timelinePin = registerIcon('timeline-pin', Codicon.pin, ( localize(
|
|
997
|
-
const timelineUnpin = registerIcon('timeline-unpin', Codicon.pinned, ( localize(
|
|
995
|
+
const timelineRefresh = registerIcon('timeline-refresh', Codicon.refresh, ( localize(11435, 'Icon for the refresh timeline action.')));
|
|
996
|
+
const timelinePin = registerIcon('timeline-pin', Codicon.pin, ( localize(11436, 'Icon for the pin timeline action.')));
|
|
997
|
+
const timelineUnpin = registerIcon('timeline-unpin', Codicon.pinned, ( localize(11437, 'Icon for the unpin timeline action.')));
|
|
998
998
|
let TimelinePaneCommands = class TimelinePaneCommands extends Disposable {
|
|
999
999
|
constructor(pane, timelineService, storageService, contextKeyService, menuService) {
|
|
1000
1000
|
super();
|
|
@@ -1008,9 +1008,9 @@ let TimelinePaneCommands = class TimelinePaneCommands extends Disposable {
|
|
|
1008
1008
|
constructor() {
|
|
1009
1009
|
super({
|
|
1010
1010
|
id: 'timeline.refresh',
|
|
1011
|
-
title: ( localize2(
|
|
1011
|
+
title: ( localize2(11438, "Refresh")),
|
|
1012
1012
|
icon: timelineRefresh,
|
|
1013
|
-
category: ( localize2(
|
|
1013
|
+
category: ( localize2(11426, "Timeline")),
|
|
1014
1014
|
menu: {
|
|
1015
1015
|
id: MenuId.TimelineTitle,
|
|
1016
1016
|
group: 'navigation',
|
|
@@ -1026,9 +1026,9 @@ let TimelinePaneCommands = class TimelinePaneCommands extends Disposable {
|
|
|
1026
1026
|
this._register(MenuRegistry.appendMenuItem(MenuId.TimelineTitle, ({
|
|
1027
1027
|
command: {
|
|
1028
1028
|
id: 'timeline.toggleFollowActiveEditor',
|
|
1029
|
-
title: ( localize2(
|
|
1029
|
+
title: ( localize2(11439, 'Pin the Current Timeline')),
|
|
1030
1030
|
icon: timelinePin,
|
|
1031
|
-
category: ( localize2(
|
|
1031
|
+
category: ( localize2(11426, "Timeline")),
|
|
1032
1032
|
},
|
|
1033
1033
|
group: 'navigation',
|
|
1034
1034
|
order: 98,
|
|
@@ -1037,9 +1037,9 @@ let TimelinePaneCommands = class TimelinePaneCommands extends Disposable {
|
|
|
1037
1037
|
this._register(MenuRegistry.appendMenuItem(MenuId.TimelineTitle, ({
|
|
1038
1038
|
command: {
|
|
1039
1039
|
id: 'timeline.toggleFollowActiveEditor',
|
|
1040
|
-
title: ( localize2(
|
|
1040
|
+
title: ( localize2(11440, 'Unpin the Current Timeline')),
|
|
1041
1041
|
icon: timelineUnpin,
|
|
1042
|
-
category: ( localize2(
|
|
1042
|
+
category: ( localize2(11426, "Timeline")),
|
|
1043
1043
|
},
|
|
1044
1044
|
group: 'navigation',
|
|
1045
1045
|
order: 98,
|