@codingame/monaco-vscode-timeline-service-override 26.0.0 → 26.1.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-timeline-service-override",
|
|
3
|
-
"version": "26.
|
|
3
|
+
"version": "26.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - timeline service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "26.
|
|
18
|
+
"@codingame/monaco-vscode-api": "26.1.0"
|
|
19
19
|
},
|
|
20
20
|
"main": "index.js",
|
|
21
21
|
"module": "index.js",
|
|
@@ -19,8 +19,8 @@ import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codi
|
|
|
19
19
|
import { registerIcon } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/iconRegistry';
|
|
20
20
|
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
21
21
|
|
|
22
|
-
const timelineViewIcon = registerIcon("timeline-view-icon", Codicon.history, ( localize(
|
|
23
|
-
const timelineOpenIcon = registerIcon("timeline-open", Codicon.history, ( localize(
|
|
22
|
+
const timelineViewIcon = registerIcon("timeline-view-icon", Codicon.history, ( localize(13174, "View icon of the timeline view.")));
|
|
23
|
+
const timelineOpenIcon = registerIcon("timeline-open", Codicon.history, ( localize(13175, "Icon for the open timeline action.")));
|
|
24
24
|
class TimelinePaneDescriptor {
|
|
25
25
|
constructor() {
|
|
26
26
|
this.id = TimelinePaneId;
|
|
@@ -43,14 +43,14 @@ const configurationRegistry = ( Registry.as(Extensions.Configuration));
|
|
|
43
43
|
configurationRegistry.registerConfiguration({
|
|
44
44
|
id: "timeline",
|
|
45
45
|
order: 1001,
|
|
46
|
-
title: ( localize(
|
|
46
|
+
title: ( localize(13176, "Timeline")),
|
|
47
47
|
type: "object",
|
|
48
48
|
properties: {
|
|
49
49
|
"timeline.pageSize": {
|
|
50
50
|
type: ["number", "null"],
|
|
51
51
|
default: 50,
|
|
52
52
|
markdownDescription: ( localize(
|
|
53
|
-
|
|
53
|
+
13177,
|
|
54
54
|
"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."
|
|
55
55
|
))
|
|
56
56
|
},
|
|
@@ -58,7 +58,7 @@ configurationRegistry.registerConfiguration({
|
|
|
58
58
|
type: "boolean",
|
|
59
59
|
default: true,
|
|
60
60
|
description: ( localize(
|
|
61
|
-
|
|
61
|
+
13178,
|
|
62
62
|
"Controls whether the Timeline view will load the next page of items when you scroll to the end of the list."
|
|
63
63
|
))
|
|
64
64
|
}
|
|
@@ -68,7 +68,7 @@ configurationRegistry.registerConfiguration({
|
|
|
68
68
|
var OpenTimelineAction;
|
|
69
69
|
(function(OpenTimelineAction) {
|
|
70
70
|
OpenTimelineAction.ID = "files.openTimeline";
|
|
71
|
-
OpenTimelineAction.LABEL = ( localize(
|
|
71
|
+
OpenTimelineAction.LABEL = ( localize(13179, "Open Timeline"));
|
|
72
72
|
function handler() {
|
|
73
73
|
return (accessor, arg) => {
|
|
74
74
|
const service = accessor.get(ITimelineService);
|
|
@@ -90,10 +90,10 @@ MenuRegistry.appendMenuItem(MenuId.ExplorerContext, ({
|
|
|
90
90
|
},
|
|
91
91
|
when: ( ContextKeyExpr.and(( ExplorerFolderContext.toNegated()), ResourceContextKey.HasResource, TimelineHasProviderContext))
|
|
92
92
|
}));
|
|
93
|
-
const timelineFilter = registerIcon("timeline-filter", Codicon.filter, ( localize(
|
|
93
|
+
const timelineFilter = registerIcon("timeline-filter", Codicon.filter, ( localize(13180, "Icon for the filter timeline action.")));
|
|
94
94
|
MenuRegistry.appendMenuItem(MenuId.TimelineTitle, {
|
|
95
95
|
submenu: MenuId.TimelineFilterSubMenu,
|
|
96
|
-
title: ( localize(
|
|
96
|
+
title: ( localize(13181, "Filter Timeline")),
|
|
97
97
|
group: "navigation",
|
|
98
98
|
order: 100,
|
|
99
99
|
icon: timelineFilter
|
|
@@ -178,7 +178,7 @@ class LoadMoreCommand {
|
|
|
178
178
|
return this.label;
|
|
179
179
|
}
|
|
180
180
|
get label() {
|
|
181
|
-
return this.loading ? ( localize(
|
|
181
|
+
return this.loading ? ( localize(13182, "Loading...")) : ( localize(13183, "Load more"));
|
|
182
182
|
}
|
|
183
183
|
get themeIcon() {
|
|
184
184
|
return undefined;
|
|
@@ -189,7 +189,7 @@ const TimelineExcludeSources = ( new RawContextKey("timelineExcludeSources", "[]
|
|
|
189
189
|
const TimelineViewFocusedContext = ( new RawContextKey("timelineFocused", true));
|
|
190
190
|
let TimelinePane = class TimelinePane extends ViewPane {
|
|
191
191
|
static {
|
|
192
|
-
this.TITLE = ( localize2(
|
|
192
|
+
this.TITLE = ( localize2(13184, "Timeline"));
|
|
193
193
|
}
|
|
194
194
|
constructor(
|
|
195
195
|
options,
|
|
@@ -684,7 +684,7 @@ let TimelinePane = class TimelinePane extends ViewPane {
|
|
|
684
684
|
this._isEmpty = !this.hasVisibleItems;
|
|
685
685
|
if (this.uri === undefined) {
|
|
686
686
|
this.updateFilename(undefined);
|
|
687
|
-
this.message = ( localize(
|
|
687
|
+
this.message = ( localize(13185, "The active editor cannot provide timeline information."));
|
|
688
688
|
} else if (this._isEmpty) {
|
|
689
689
|
if (this.pendingRequests.size !== 0) {
|
|
690
690
|
this.setLoadingUriMessage();
|
|
@@ -696,21 +696,21 @@ let TimelinePane = class TimelinePane extends ViewPane {
|
|
|
696
696
|
id
|
|
697
697
|
}
|
|
698
698
|
) => !( this.excludedSources.has(id))).length === 0) {
|
|
699
|
-
this.message = ( localize(
|
|
699
|
+
this.message = ( localize(13186, "All timeline sources have been filtered out."));
|
|
700
700
|
} else {
|
|
701
701
|
if (this.configurationService.getValue("workbench.localHistory.enabled") && !( this.excludedSources.has("timeline.localHistory"))) {
|
|
702
702
|
this.message = ( localize(
|
|
703
|
-
|
|
703
|
+
13187,
|
|
704
704
|
"Local History will track recent changes as you save them unless the file has been excluded or is too large."
|
|
705
705
|
));
|
|
706
706
|
} else if (this.excludedSources.size > 0) {
|
|
707
|
-
this.message = ( localize(
|
|
707
|
+
this.message = ( localize(13188, "No filtered timeline information was provided."));
|
|
708
708
|
} else {
|
|
709
|
-
this.message = ( localize(
|
|
709
|
+
this.message = ( localize(13189, "No timeline information was provided."));
|
|
710
710
|
}
|
|
711
711
|
}
|
|
712
712
|
if (!scmProviderCount || scmProviderCount === 0) {
|
|
713
|
-
this.message += " " + ( localize(
|
|
713
|
+
this.message += " " + ( localize(13190, "Source Control has not been configured."));
|
|
714
714
|
}
|
|
715
715
|
}
|
|
716
716
|
} else {
|
|
@@ -764,7 +764,7 @@ let TimelinePane = class TimelinePane extends ViewPane {
|
|
|
764
764
|
container.classList.add("tree-explorer-viewlet-tree-view", "timeline-tree-view");
|
|
765
765
|
this.$message = append(this.$container, $(".message"));
|
|
766
766
|
this.$message.classList.add("timeline-subtle");
|
|
767
|
-
this.message = ( localize(
|
|
767
|
+
this.message = ( localize(13185, "The active editor cannot provide timeline information."));
|
|
768
768
|
this.$tree = createElement("div");
|
|
769
769
|
this.$tree.classList.add("customview-tree", "file-icon-themable-tree", "hide-arrows");
|
|
770
770
|
container.appendChild(this.$tree);
|
|
@@ -785,7 +785,7 @@ let TimelinePane = class TimelinePane extends ViewPane {
|
|
|
785
785
|
if (isLoadMoreCommand(element)) {
|
|
786
786
|
return element.ariaLabel;
|
|
787
787
|
}
|
|
788
|
-
return element.accessibilityInformation ? element.accessibilityInformation.label : ( localize(
|
|
788
|
+
return element.accessibilityInformation ? element.accessibilityInformation.label : ( localize(13191, "{0}: {1}", element.relativeTimeFullWord ?? "", element.label));
|
|
789
789
|
},
|
|
790
790
|
getRole(element) {
|
|
791
791
|
if (isLoadMoreCommand(element)) {
|
|
@@ -794,7 +794,7 @@ let TimelinePane = class TimelinePane extends ViewPane {
|
|
|
794
794
|
return element.accessibilityInformation && element.accessibilityInformation.role ? element.accessibilityInformation.role : "treeitem";
|
|
795
795
|
},
|
|
796
796
|
getWidgetAriaLabel() {
|
|
797
|
-
return localize(
|
|
797
|
+
return localize(13184, "Timeline");
|
|
798
798
|
}
|
|
799
799
|
},
|
|
800
800
|
keyboardNavigationLabelProvider: ( new TimelineKeyboardNavigationLabelProvider()),
|
|
@@ -857,7 +857,7 @@ let TimelinePane = class TimelinePane extends ViewPane {
|
|
|
857
857
|
setLoadingUriMessage() {
|
|
858
858
|
const file = this.uri && this.labelService.getUriBasenameLabel(this.uri);
|
|
859
859
|
this.updateFilename(file);
|
|
860
|
-
this.message = file ? ( localize(
|
|
860
|
+
this.message = file ? ( localize(13192, "Loading timeline for {0}...", file)) : "";
|
|
861
861
|
}
|
|
862
862
|
onContextMenu(commands, treeEvent) {
|
|
863
863
|
const item = treeEvent.element;
|
|
@@ -1059,9 +1059,9 @@ let TimelineTreeRenderer = class TimelineTreeRenderer {
|
|
|
1059
1059
|
}
|
|
1060
1060
|
};
|
|
1061
1061
|
TimelineTreeRenderer = ( __decorate([( __param(2, IInstantiationService)), ( __param(3, IThemeService))], TimelineTreeRenderer));
|
|
1062
|
-
const timelineRefresh = registerIcon("timeline-refresh", Codicon.refresh, ( localize(
|
|
1063
|
-
const timelinePin = registerIcon("timeline-pin", Codicon.pin, ( localize(
|
|
1064
|
-
const timelineUnpin = registerIcon("timeline-unpin", Codicon.pinned, ( localize(
|
|
1062
|
+
const timelineRefresh = registerIcon("timeline-refresh", Codicon.refresh, ( localize(13193, "Icon for the refresh timeline action.")));
|
|
1063
|
+
const timelinePin = registerIcon("timeline-pin", Codicon.pin, ( localize(13194, "Icon for the pin timeline action.")));
|
|
1064
|
+
const timelineUnpin = registerIcon("timeline-unpin", Codicon.pinned, ( localize(13195, "Icon for the unpin timeline action.")));
|
|
1065
1065
|
let TimelinePaneCommands = class TimelinePaneCommands extends Disposable {
|
|
1066
1066
|
constructor(pane, timelineService, storageService, contextKeyService, menuService) {
|
|
1067
1067
|
super();
|
|
@@ -1075,9 +1075,9 @@ let TimelinePaneCommands = class TimelinePaneCommands extends Disposable {
|
|
|
1075
1075
|
constructor() {
|
|
1076
1076
|
super({
|
|
1077
1077
|
id: "timeline.refresh",
|
|
1078
|
-
title: ( localize2(
|
|
1078
|
+
title: ( localize2(13196, "Refresh")),
|
|
1079
1079
|
icon: timelineRefresh,
|
|
1080
|
-
category: ( localize2(
|
|
1080
|
+
category: ( localize2(13184, "Timeline")),
|
|
1081
1081
|
menu: {
|
|
1082
1082
|
id: MenuId.TimelineTitle,
|
|
1083
1083
|
group: "navigation",
|
|
@@ -1096,9 +1096,9 @@ let TimelinePaneCommands = class TimelinePaneCommands extends Disposable {
|
|
|
1096
1096
|
this._register(MenuRegistry.appendMenuItem(MenuId.TimelineTitle, ({
|
|
1097
1097
|
command: {
|
|
1098
1098
|
id: "timeline.toggleFollowActiveEditor",
|
|
1099
|
-
title: ( localize2(
|
|
1099
|
+
title: ( localize2(13197, "Pin the Current Timeline")),
|
|
1100
1100
|
icon: timelinePin,
|
|
1101
|
-
category: ( localize2(
|
|
1101
|
+
category: ( localize2(13184, "Timeline"))
|
|
1102
1102
|
},
|
|
1103
1103
|
group: "navigation",
|
|
1104
1104
|
order: 98,
|
|
@@ -1107,9 +1107,9 @@ let TimelinePaneCommands = class TimelinePaneCommands extends Disposable {
|
|
|
1107
1107
|
this._register(MenuRegistry.appendMenuItem(MenuId.TimelineTitle, ({
|
|
1108
1108
|
command: {
|
|
1109
1109
|
id: "timeline.toggleFollowActiveEditor",
|
|
1110
|
-
title: ( localize2(
|
|
1110
|
+
title: ( localize2(13198, "Unpin the Current Timeline")),
|
|
1111
1111
|
icon: timelineUnpin,
|
|
1112
|
-
category: ( localize2(
|
|
1112
|
+
category: ( localize2(13184, "Timeline"))
|
|
1113
1113
|
},
|
|
1114
1114
|
group: "navigation",
|
|
1115
1115
|
order: 98,
|