@codingame/monaco-vscode-timeline-service-override 22.1.5 → 22.1.6
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": "22.1.
|
|
3
|
+
"version": "22.1.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - timeline service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common": "22.1.
|
|
19
|
-
"@codingame/monaco-vscode-af7aa6ff-f023-5da1-803d-a085ef0e5dc3-common": "22.1.
|
|
20
|
-
"@codingame/monaco-vscode-api": "22.1.
|
|
21
|
-
"@codingame/monaco-vscode-b71b5434-ce96-5581-8993-e8da380bd63f-common": "22.1.
|
|
22
|
-
"@codingame/monaco-vscode-dbfe5f85-b426-55ed-a79b-5f811b395762-common": "22.1.
|
|
23
|
-
"@codingame/monaco-vscode-f24e325c-2ce0-5bba-8236-bfc4f53180ab-common": "22.1.
|
|
18
|
+
"@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common": "22.1.6",
|
|
19
|
+
"@codingame/monaco-vscode-af7aa6ff-f023-5da1-803d-a085ef0e5dc3-common": "22.1.6",
|
|
20
|
+
"@codingame/monaco-vscode-api": "22.1.6",
|
|
21
|
+
"@codingame/monaco-vscode-b71b5434-ce96-5581-8993-e8da380bd63f-common": "22.1.6",
|
|
22
|
+
"@codingame/monaco-vscode-dbfe5f85-b426-55ed-a79b-5f811b395762-common": "22.1.6",
|
|
23
|
+
"@codingame/monaco-vscode-f24e325c-2ce0-5bba-8236-bfc4f53180ab-common": "22.1.6"
|
|
24
24
|
},
|
|
25
25
|
"main": "index.js",
|
|
26
26
|
"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(12290, 'View icon of the timeline view.')));
|
|
22
|
+
const timelineOpenIcon = registerIcon('timeline-open', Codicon.history, ( localize(12291, '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(12292, "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
|
+
12293,
|
|
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
|
+
12294,
|
|
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(12295, "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(12296, 'Icon for the filter timeline action.')));
|
|
89
89
|
MenuRegistry.appendMenuItem(MenuId.TimelineTitle, {
|
|
90
90
|
submenu: MenuId.TimelineFilterSubMenu,
|
|
91
|
-
title: ( localize(
|
|
91
|
+
title: ( localize(12297, "Filter Timeline")),
|
|
92
92
|
group: 'navigation',
|
|
93
93
|
order: 100,
|
|
94
94
|
icon: timelineFilter
|
|
@@ -180,7 +180,7 @@ class LoadMoreCommand {
|
|
|
180
180
|
return this.label;
|
|
181
181
|
}
|
|
182
182
|
get label() {
|
|
183
|
-
return this.loading ? ( localize(
|
|
183
|
+
return this.loading ? ( localize(12298, "Loading...")) : ( localize(12299, "Load more"));
|
|
184
184
|
}
|
|
185
185
|
get themeIcon() {
|
|
186
186
|
return undefined;
|
|
@@ -190,7 +190,7 @@ const TimelineFollowActiveEditorContext = ( new RawContextKey('timelineFollowAct
|
|
|
190
190
|
const TimelineExcludeSources = ( new RawContextKey('timelineExcludeSources', '[]', true));
|
|
191
191
|
const TimelineViewFocusedContext = ( new RawContextKey('timelineFocused', true));
|
|
192
192
|
let TimelinePane = class TimelinePane extends ViewPane {
|
|
193
|
-
static { this.TITLE = ( localize2(
|
|
193
|
+
static { this.TITLE = ( localize2(12300, "Timeline")); }
|
|
194
194
|
constructor(options, keybindingService, contextMenuService, contextKeyService, configurationService, storageService, viewDescriptorService, instantiationService, editorService, commandService, progressService, timelineService, openerService, themeService, hoverService, labelService, uriIdentityService, extensionService) {
|
|
195
195
|
super({ ...options, titleMenuId: MenuId.TimelineTitle }, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, hoverService);
|
|
196
196
|
this.storageService = storageService;
|
|
@@ -633,7 +633,7 @@ let TimelinePane = class TimelinePane extends ViewPane {
|
|
|
633
633
|
this._isEmpty = !this.hasVisibleItems;
|
|
634
634
|
if (this.uri === undefined) {
|
|
635
635
|
this.updateFilename(undefined);
|
|
636
|
-
this.message = ( localize(
|
|
636
|
+
this.message = ( localize(12301, "The active editor cannot provide timeline information."));
|
|
637
637
|
}
|
|
638
638
|
else if (this._isEmpty) {
|
|
639
639
|
if (this.pendingRequests.size !== 0) {
|
|
@@ -643,24 +643,24 @@ let TimelinePane = class TimelinePane extends ViewPane {
|
|
|
643
643
|
this.updateFilename(this.labelService.getUriBasenameLabel(this.uri));
|
|
644
644
|
const scmProviderCount = this.contextKeyService.getContextKeyValue('scm.providerCount');
|
|
645
645
|
if (this.timelineService.getSources().filter(({ id }) => !( this.excludedSources.has(id))).length === 0) {
|
|
646
|
-
this.message = ( localize(
|
|
646
|
+
this.message = ( localize(12302, "All timeline sources have been filtered out."));
|
|
647
647
|
}
|
|
648
648
|
else {
|
|
649
649
|
if (this.configurationService.getValue('workbench.localHistory.enabled') && !( this.excludedSources.has('timeline.localHistory'))) {
|
|
650
650
|
this.message = ( localize(
|
|
651
|
-
|
|
651
|
+
12303,
|
|
652
652
|
"Local History will track recent changes as you save them unless the file has been excluded or is too large."
|
|
653
653
|
));
|
|
654
654
|
}
|
|
655
655
|
else if (this.excludedSources.size > 0) {
|
|
656
|
-
this.message = ( localize(
|
|
656
|
+
this.message = ( localize(12304, "No filtered timeline information was provided."));
|
|
657
657
|
}
|
|
658
658
|
else {
|
|
659
|
-
this.message = ( localize(
|
|
659
|
+
this.message = ( localize(12305, "No timeline information was provided."));
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
662
|
if (!scmProviderCount || scmProviderCount === 0) {
|
|
663
|
-
this.message += ' ' + ( localize(
|
|
663
|
+
this.message += ' ' + ( localize(12306, "Source Control has not been configured."));
|
|
664
664
|
}
|
|
665
665
|
}
|
|
666
666
|
}
|
|
@@ -717,7 +717,7 @@ let TimelinePane = class TimelinePane extends ViewPane {
|
|
|
717
717
|
container.classList.add('tree-explorer-viewlet-tree-view', 'timeline-tree-view');
|
|
718
718
|
this.$message = append(this.$container, $('.message'));
|
|
719
719
|
this.$message.classList.add('timeline-subtle');
|
|
720
|
-
this.message = ( localize(
|
|
720
|
+
this.message = ( localize(12301, "The active editor cannot provide timeline information."));
|
|
721
721
|
this.$tree = createElement('div');
|
|
722
722
|
this.$tree.classList.add('customview-tree', 'file-icon-themable-tree', 'hide-arrows');
|
|
723
723
|
container.appendChild(this.$tree);
|
|
@@ -734,7 +734,7 @@ let TimelinePane = class TimelinePane extends ViewPane {
|
|
|
734
734
|
if (isLoadMoreCommand(element)) {
|
|
735
735
|
return element.ariaLabel;
|
|
736
736
|
}
|
|
737
|
-
return element.accessibilityInformation ? element.accessibilityInformation.label : ( localize(
|
|
737
|
+
return element.accessibilityInformation ? element.accessibilityInformation.label : ( localize(12307, "{0}: {1}", element.relativeTimeFullWord ?? '', element.label));
|
|
738
738
|
},
|
|
739
739
|
getRole(element) {
|
|
740
740
|
if (isLoadMoreCommand(element)) {
|
|
@@ -743,7 +743,7 @@ let TimelinePane = class TimelinePane extends ViewPane {
|
|
|
743
743
|
return element.accessibilityInformation && element.accessibilityInformation.role ? element.accessibilityInformation.role : 'treeitem';
|
|
744
744
|
},
|
|
745
745
|
getWidgetAriaLabel() {
|
|
746
|
-
return localize(
|
|
746
|
+
return localize(12300, "Timeline");
|
|
747
747
|
}
|
|
748
748
|
},
|
|
749
749
|
keyboardNavigationLabelProvider: ( new TimelineKeyboardNavigationLabelProvider()),
|
|
@@ -803,7 +803,7 @@ let TimelinePane = class TimelinePane extends ViewPane {
|
|
|
803
803
|
setLoadingUriMessage() {
|
|
804
804
|
const file = this.uri && this.labelService.getUriBasenameLabel(this.uri);
|
|
805
805
|
this.updateFilename(file);
|
|
806
|
-
this.message = file ? ( localize(
|
|
806
|
+
this.message = file ? ( localize(12308, "Loading timeline for {0}...", file)) : '';
|
|
807
807
|
}
|
|
808
808
|
onContextMenu(commands, treeEvent) {
|
|
809
809
|
const item = treeEvent.element;
|
|
@@ -996,9 +996,9 @@ TimelineTreeRenderer = ( __decorate([
|
|
|
996
996
|
( __param(2, IInstantiationService)),
|
|
997
997
|
( __param(3, IThemeService))
|
|
998
998
|
], TimelineTreeRenderer));
|
|
999
|
-
const timelineRefresh = registerIcon('timeline-refresh', Codicon.refresh, ( localize(
|
|
1000
|
-
const timelinePin = registerIcon('timeline-pin', Codicon.pin, ( localize(
|
|
1001
|
-
const timelineUnpin = registerIcon('timeline-unpin', Codicon.pinned, ( localize(
|
|
999
|
+
const timelineRefresh = registerIcon('timeline-refresh', Codicon.refresh, ( localize(12309, 'Icon for the refresh timeline action.')));
|
|
1000
|
+
const timelinePin = registerIcon('timeline-pin', Codicon.pin, ( localize(12310, 'Icon for the pin timeline action.')));
|
|
1001
|
+
const timelineUnpin = registerIcon('timeline-unpin', Codicon.pinned, ( localize(12311, 'Icon for the unpin timeline action.')));
|
|
1002
1002
|
let TimelinePaneCommands = class TimelinePaneCommands extends Disposable {
|
|
1003
1003
|
constructor(pane, timelineService, storageService, contextKeyService, menuService) {
|
|
1004
1004
|
super();
|
|
@@ -1012,9 +1012,9 @@ let TimelinePaneCommands = class TimelinePaneCommands extends Disposable {
|
|
|
1012
1012
|
constructor() {
|
|
1013
1013
|
super({
|
|
1014
1014
|
id: 'timeline.refresh',
|
|
1015
|
-
title: ( localize2(
|
|
1015
|
+
title: ( localize2(12312, "Refresh")),
|
|
1016
1016
|
icon: timelineRefresh,
|
|
1017
|
-
category: ( localize2(
|
|
1017
|
+
category: ( localize2(12300, "Timeline")),
|
|
1018
1018
|
menu: {
|
|
1019
1019
|
id: MenuId.TimelineTitle,
|
|
1020
1020
|
group: 'navigation',
|
|
@@ -1030,9 +1030,9 @@ let TimelinePaneCommands = class TimelinePaneCommands extends Disposable {
|
|
|
1030
1030
|
this._register(MenuRegistry.appendMenuItem(MenuId.TimelineTitle, ({
|
|
1031
1031
|
command: {
|
|
1032
1032
|
id: 'timeline.toggleFollowActiveEditor',
|
|
1033
|
-
title: ( localize2(
|
|
1033
|
+
title: ( localize2(12313, 'Pin the Current Timeline')),
|
|
1034
1034
|
icon: timelinePin,
|
|
1035
|
-
category: ( localize2(
|
|
1035
|
+
category: ( localize2(12300, "Timeline")),
|
|
1036
1036
|
},
|
|
1037
1037
|
group: 'navigation',
|
|
1038
1038
|
order: 98,
|
|
@@ -1041,9 +1041,9 @@ let TimelinePaneCommands = class TimelinePaneCommands extends Disposable {
|
|
|
1041
1041
|
this._register(MenuRegistry.appendMenuItem(MenuId.TimelineTitle, ({
|
|
1042
1042
|
command: {
|
|
1043
1043
|
id: 'timeline.toggleFollowActiveEditor',
|
|
1044
|
-
title: ( localize2(
|
|
1044
|
+
title: ( localize2(12314, 'Unpin the Current Timeline')),
|
|
1045
1045
|
icon: timelineUnpin,
|
|
1046
|
-
category: ( localize2(
|
|
1046
|
+
category: ( localize2(12300, "Timeline")),
|
|
1047
1047
|
},
|
|
1048
1048
|
group: 'navigation',
|
|
1049
1049
|
order: 98,
|