@codingame/monaco-vscode-timeline-service-override 11.1.2 → 12.0.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/index.d.ts +2 -1
- package/index.js +15 -1
- package/package.json +25 -7
- package/vscode/src/vs/workbench/contrib/localHistory/browser/localHistory.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/localHistory/browser/localHistory.contribution.js +3 -2
- package/vscode/src/vs/workbench/contrib/localHistory/browser/localHistory.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/localHistory/browser/localHistory.js +6 -10
- package/vscode/src/vs/workbench/contrib/localHistory/browser/localHistoryCommands.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/localHistory/browser/localHistoryCommands.js +53 -54
- package/vscode/src/vs/workbench/contrib/localHistory/browser/localHistoryFileSystemProvider.d.ts +35 -0
- package/vscode/src/vs/workbench/contrib/localHistory/browser/localHistoryFileSystemProvider.js +3 -2
- package/vscode/src/vs/workbench/contrib/localHistory/browser/localHistoryTimeline.d.ts +36 -0
- package/vscode/src/vs/workbench/contrib/localHistory/browser/localHistoryTimeline.js +21 -20
- package/vscode/src/vs/workbench/contrib/timeline/browser/media/timelinePane.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/timeline/browser/timeline.contribution.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/timeline/browser/timeline.contribution.js +18 -20
- package/vscode/src/vs/workbench/contrib/timeline/browser/timelinePane.d.ts +136 -0
- package/vscode/src/vs/workbench/contrib/timeline/browser/timelinePane.js +118 -121
- package/vscode/src/vs/workbench/contrib/timeline/common/timelineService.d.ts +44 -0
- package/vscode/src/vs/workbench/contrib/timeline/common/timelineService.js +2 -1
- package/timeline.js +0 -13
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { localize } from 'vscode/vscode/vs/nls';
|
|
3
4
|
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
4
5
|
import { Disposable, MutableDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
@@ -6,7 +7,7 @@ import { ITimelineService } from 'vscode/vscode/vs/workbench/contrib/timeline/co
|
|
|
6
7
|
import { IWorkingCopyHistoryService } from 'vscode/vscode/vs/workbench/services/workingCopy/common/workingCopyHistory.service';
|
|
7
8
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
8
9
|
import { IPathService } from 'vscode/vscode/vs/workbench/services/path/common/pathService.service';
|
|
9
|
-
import { API_OPEN_DIFF_EDITOR_COMMAND_ID } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorCommands';
|
|
10
|
+
import { API_OPEN_DIFF_EDITOR_COMMAND_ID } from '@codingame/monaco-vscode-f48982c4-9e82-55e2-b800-20e6d1e6096f-common/vscode/vs/workbench/browser/parts/editor/editorCommands';
|
|
10
11
|
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';
|
|
11
12
|
import { LocalHistoryFileSystemProvider } from './localHistoryFileSystemProvider.js';
|
|
12
13
|
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
@@ -17,7 +18,7 @@ import { MarkdownString } from 'vscode/vscode/vs/base/common/htmlContent';
|
|
|
17
18
|
import { getLocalHistoryDateFormatter, LOCAL_HISTORY_ICON_ENTRY, LOCAL_HISTORY_MENU_CONTEXT_VALUE } from './localHistory.js';
|
|
18
19
|
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
19
20
|
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace.service';
|
|
20
|
-
import { getVirtualWorkspaceAuthority } from 'vscode/vscode/vs/platform/workspace/common/virtualWorkspace';
|
|
21
|
+
import { getVirtualWorkspaceAuthority } from '@codingame/monaco-vscode-d6e33d82-c101-549d-a885-0807ab3e0cfb-common/vscode/vs/platform/workspace/common/virtualWorkspace';
|
|
21
22
|
|
|
22
23
|
var LocalHistoryTimeline_1;
|
|
23
24
|
let LocalHistoryTimeline = class LocalHistoryTimeline extends Disposable {
|
|
@@ -34,17 +35,17 @@ let LocalHistoryTimeline = class LocalHistoryTimeline extends Disposable {
|
|
|
34
35
|
this.configurationService = configurationService;
|
|
35
36
|
this.contextService = contextService;
|
|
36
37
|
this.id = 'timeline.localHistory';
|
|
37
|
-
this.label = ( localize(
|
|
38
|
+
this.label = ( localize(6995, "Local History"));
|
|
38
39
|
this.scheme = '*';
|
|
39
|
-
this._onDidChange = this._register((
|
|
40
|
+
this._onDidChange = this._register(( new Emitter()));
|
|
40
41
|
this.onDidChange = this._onDidChange.event;
|
|
41
|
-
this.timelineProviderDisposable = this._register((
|
|
42
|
+
this.timelineProviderDisposable = this._register(( new MutableDisposable()));
|
|
42
43
|
this.registerComponents();
|
|
43
44
|
this.registerListeners();
|
|
44
45
|
}
|
|
45
46
|
registerComponents() {
|
|
46
47
|
this.updateTimelineRegistration();
|
|
47
|
-
this._register(this.fileService.registerProvider(LocalHistoryFileSystemProvider.SCHEMA, (
|
|
48
|
+
this._register(this.fileService.registerProvider(LocalHistoryFileSystemProvider.SCHEMA, ( new LocalHistoryFileSystemProvider(this.fileService))));
|
|
48
49
|
}
|
|
49
50
|
updateTimelineRegistration() {
|
|
50
51
|
if (this.configurationService.getValue(LocalHistoryTimeline_1.LOCAL_HISTORY_ENABLED_SETTINGS_KEY)) {
|
|
@@ -84,11 +85,11 @@ let LocalHistoryTimeline = class LocalHistoryTimeline extends Disposable {
|
|
|
84
85
|
resource = uri;
|
|
85
86
|
}
|
|
86
87
|
else if (this.fileService.hasProvider(uri)) {
|
|
87
|
-
resource = (
|
|
88
|
+
resource = ( URI.from({
|
|
88
89
|
scheme: this.pathService.defaultUriScheme,
|
|
89
90
|
authority: this.environmentService.remoteAuthority ?? getVirtualWorkspaceAuthority(this.contextService.getWorkspace()),
|
|
90
91
|
path: uri.path
|
|
91
|
-
}))
|
|
92
|
+
}));
|
|
92
93
|
}
|
|
93
94
|
if (resource) {
|
|
94
95
|
const entries = await this.workingCopyHistoryService.getEntries(resource, token);
|
|
@@ -105,10 +106,10 @@ let LocalHistoryTimeline = class LocalHistoryTimeline extends Disposable {
|
|
|
105
106
|
return {
|
|
106
107
|
handle: entry.id,
|
|
107
108
|
label: SaveSourceRegistry.getSourceLabel(entry.source),
|
|
108
|
-
tooltip: (
|
|
109
|
+
tooltip: ( new MarkdownString(
|
|
109
110
|
`$(history) ${getLocalHistoryDateFormatter().format(entry.timestamp)}\n\n${SaveSourceRegistry.getSourceLabel(entry.source)}${entry.sourceDescription ? ` (${entry.sourceDescription})` : ``}`,
|
|
110
111
|
{ supportThemeIcons: true }
|
|
111
|
-
))
|
|
112
|
+
)),
|
|
112
113
|
source: this.id,
|
|
113
114
|
timestamp: entry.timestamp,
|
|
114
115
|
themeIcon: LOCAL_HISTORY_ICON_ENTRY,
|
|
@@ -121,14 +122,14 @@ let LocalHistoryTimeline = class LocalHistoryTimeline extends Disposable {
|
|
|
121
122
|
};
|
|
122
123
|
}
|
|
123
124
|
};
|
|
124
|
-
LocalHistoryTimeline = LocalHistoryTimeline_1 = (
|
|
125
|
-
(
|
|
126
|
-
(
|
|
127
|
-
(
|
|
128
|
-
(
|
|
129
|
-
(
|
|
130
|
-
(
|
|
131
|
-
(
|
|
132
|
-
], LocalHistoryTimeline))
|
|
125
|
+
LocalHistoryTimeline = LocalHistoryTimeline_1 = ( __decorate([
|
|
126
|
+
( __param(0, ITimelineService)),
|
|
127
|
+
( __param(1, IWorkingCopyHistoryService)),
|
|
128
|
+
( __param(2, IPathService)),
|
|
129
|
+
( __param(3, IFileService)),
|
|
130
|
+
( __param(4, IWorkbenchEnvironmentService)),
|
|
131
|
+
( __param(5, IConfigurationService)),
|
|
132
|
+
( __param(6, IWorkspaceContextService))
|
|
133
|
+
], LocalHistoryTimeline));
|
|
133
134
|
|
|
134
135
|
export { LocalHistoryTimeline };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import n from 'vscode/external/rollup-plugin-styles/dist/runtime/inject-css
|
|
1
|
+
import n from 'vscode/external/rollup-plugin-styles/dist/runtime/inject-css';
|
|
2
2
|
|
|
3
3
|
var css = ".monaco-workbench .timeline-tree-view{position:relative}.monaco-workbench .timeline-tree-view .message.timeline-subtle{opacity:.5;padding:10px 22px 0;pointer-events:none;position:absolute;z-index:1}.timeline-tree-view .monaco-list .monaco-list-row .custom-view-tree-node-item .monaco-icon-label{flex:1;overflow:hidden;text-overflow:ellipsis}.timeline-tree-view .monaco-list .monaco-list-row .custom-view-tree-node-item .timeline-timestamp-container{margin-left:2px;margin-right:4px;opacity:.5;overflow:hidden;text-overflow:ellipsis}.timeline-tree-view .monaco-list .monaco-list-row .custom-view-tree-node-item .timeline-timestamp-container.timeline-timestamp--duplicate:before{border-right:1px solid;content:\" \";display:block;height:100%;opacity:.25;position:absolute;right:10px;width:1px}.timeline-tree-view .monaco-list .monaco-list-row.focused .custom-view-tree-node-item .timeline-timestamp-container.timeline-timestamp--duplicate:before,.timeline-tree-view .monaco-list .monaco-list-row.selected .custom-view-tree-node-item .timeline-timestamp-container.timeline-timestamp--duplicate:before,.timeline-tree-view .monaco-list .monaco-list-row:hover .custom-view-tree-node-item .timeline-timestamp-container.timeline-timestamp--duplicate:before{display:none}.timeline-tree-view .monaco-list .monaco-list-row .custom-view-tree-node-item .timeline-timestamp-container .timeline-timestamp{display:inline-block}.timeline-tree-view .monaco-list .monaco-list-row .custom-view-tree-node-item .timeline-timestamp-container.timeline-timestamp--duplicate .timeline-timestamp{visibility:hidden;width:10px}.timeline-tree-view .monaco-list .monaco-list-row.focused .custom-view-tree-node-item .timeline-timestamp-container.timeline-timestamp--duplicate .timeline-timestamp,.timeline-tree-view .monaco-list .monaco-list-row.selected .custom-view-tree-node-item .timeline-timestamp-container.timeline-timestamp--duplicate .timeline-timestamp,.timeline-tree-view .monaco-list .monaco-list-row:hover .custom-view-tree-node-item .timeline-timestamp-container.timeline-timestamp--duplicate .timeline-timestamp{visibility:visible!important;width:auto}";
|
|
4
4
|
n(css,{});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SyncDescriptor } from "vscode/vscode/vs/platform/instantiation/common/descriptors";
|
|
2
|
+
import { IViewDescriptor } from "vscode/vscode/vs/workbench/common/views";
|
|
3
|
+
import { TimelinePane } from "./timelinePane.js";
|
|
4
|
+
import { ILocalizedString } from "vscode/vscode/vs/platform/action/common/action";
|
|
5
|
+
export declare class TimelinePaneDescriptor implements IViewDescriptor {
|
|
6
|
+
readonly id = "timeline";
|
|
7
|
+
readonly name: ILocalizedString;
|
|
8
|
+
readonly containerIcon: import("vscode/vscode/vs/base/common/themables").ThemeIcon;
|
|
9
|
+
readonly ctorDescriptor: SyncDescriptor<TimelinePane>;
|
|
10
|
+
readonly order = 2;
|
|
11
|
+
readonly weight = 30;
|
|
12
|
+
readonly collapsed = true;
|
|
13
|
+
readonly canToggleVisibility = true;
|
|
14
|
+
readonly hideByDefault = false;
|
|
15
|
+
readonly canMoveView = true;
|
|
16
|
+
readonly when: import("vscode/vscode/vs/platform/contextkey/common/contextkey").RawContextKey<boolean>;
|
|
17
|
+
focusCommand: {
|
|
18
|
+
id: string;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
|
|
1
2
|
import { localize } from 'vscode/vscode/vs/nls';
|
|
2
3
|
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
4
|
+
import 'vscode/vscode/vs/platform/instantiation/common/extensions';
|
|
3
5
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
4
6
|
import { Extensions as Extensions$1 } from 'vscode/vscode/vs/workbench/common/views';
|
|
5
|
-
import { VIEW_CONTAINER } from 'vscode/vscode/vs/workbench/contrib/files/browser/explorerViewlet';
|
|
7
|
+
import { VIEW_CONTAINER } from '@codingame/monaco-vscode-b71b5434-ce96-5581-8993-e8da380bd63f-common/vscode/vs/workbench/contrib/files/browser/explorerViewlet';
|
|
6
8
|
import { TimelinePaneId } from 'vscode/vscode/vs/workbench/contrib/timeline/common/timeline';
|
|
7
9
|
import { ITimelineService } from 'vscode/vscode/vs/workbench/contrib/timeline/common/timeline.service';
|
|
8
10
|
import { TimelineHasProviderContext } from '../common/timelineService.js';
|
|
@@ -11,19 +13,19 @@ import { Extensions } from 'vscode/vscode/vs/platform/configuration/common/confi
|
|
|
11
13
|
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
12
14
|
import { MenuRegistry, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
13
15
|
import { CommandsRegistry } from 'vscode/vscode/vs/platform/commands/common/commands';
|
|
14
|
-
import { ExplorerFolderContext } from 'vscode/vscode/vs/workbench/contrib/files/common/files';
|
|
16
|
+
import { ExplorerFolderContext } from '@codingame/monaco-vscode-cc9ccbec-e2a1-599d-84ae-46f5efc666e3-common/vscode/vs/workbench/contrib/files/common/files';
|
|
15
17
|
import { ResourceContextKey } from 'vscode/vscode/vs/workbench/common/contextkeys';
|
|
16
18
|
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
17
19
|
import { registerIcon } from 'vscode/vscode/vs/platform/theme/common/iconRegistry';
|
|
18
20
|
|
|
19
|
-
const timelineViewIcon = registerIcon('timeline-view-icon', Codicon.history, ( localize(
|
|
20
|
-
const timelineOpenIcon = registerIcon('timeline-open', Codicon.history, ( localize(
|
|
21
|
+
const timelineViewIcon = registerIcon('timeline-view-icon', Codicon.history, ( localize(10369, 'View icon of the timeline view.')));
|
|
22
|
+
const timelineOpenIcon = registerIcon('timeline-open', Codicon.history, ( localize(10370, 'Icon for the open timeline action.')));
|
|
21
23
|
class TimelinePaneDescriptor {
|
|
22
24
|
constructor() {
|
|
23
25
|
this.id = TimelinePaneId;
|
|
24
26
|
this.name = TimelinePane.TITLE;
|
|
25
27
|
this.containerIcon = timelineViewIcon;
|
|
26
|
-
this.ctorDescriptor = (
|
|
28
|
+
this.ctorDescriptor = ( new SyncDescriptor(TimelinePane));
|
|
27
29
|
this.order = 2;
|
|
28
30
|
this.weight = 30;
|
|
29
31
|
this.collapsed = true;
|
|
@@ -34,18 +36,18 @@ class TimelinePaneDescriptor {
|
|
|
34
36
|
this.focusCommand = { id: 'timeline.focus' };
|
|
35
37
|
}
|
|
36
38
|
}
|
|
37
|
-
const configurationRegistry = (
|
|
39
|
+
const configurationRegistry = ( Registry.as(Extensions.Configuration));
|
|
38
40
|
configurationRegistry.registerConfiguration({
|
|
39
41
|
id: 'timeline',
|
|
40
42
|
order: 1001,
|
|
41
|
-
title: ( localize(
|
|
43
|
+
title: ( localize(10371, "Timeline")),
|
|
42
44
|
type: 'object',
|
|
43
45
|
properties: {
|
|
44
46
|
'timeline.pageSize': {
|
|
45
47
|
type: ['number', 'null'],
|
|
46
48
|
default: null,
|
|
47
49
|
markdownDescription: ( localize(
|
|
48
|
-
|
|
50
|
+
10372,
|
|
49
51
|
"The number of items to show in the Timeline view by default and when loading more items. Setting to `null` (the default) will automatically choose a page size based on the visible area of the Timeline view."
|
|
50
52
|
)),
|
|
51
53
|
},
|
|
@@ -53,17 +55,17 @@ configurationRegistry.registerConfiguration({
|
|
|
53
55
|
type: 'boolean',
|
|
54
56
|
default: false,
|
|
55
57
|
description: ( localize(
|
|
56
|
-
|
|
58
|
+
10373,
|
|
57
59
|
"Experimental. Controls whether the Timeline view will load the next page of items when you scroll to the end of the list."
|
|
58
60
|
)),
|
|
59
61
|
},
|
|
60
62
|
}
|
|
61
63
|
});
|
|
62
|
-
(
|
|
64
|
+
( Registry.as(Extensions$1.ViewsRegistry)).registerViews([( new TimelinePaneDescriptor())], VIEW_CONTAINER);
|
|
63
65
|
var OpenTimelineAction;
|
|
64
|
-
( (
|
|
66
|
+
(function (OpenTimelineAction) {
|
|
65
67
|
OpenTimelineAction.ID = 'files.openTimeline';
|
|
66
|
-
OpenTimelineAction.LABEL = ( localize(
|
|
68
|
+
OpenTimelineAction.LABEL = ( localize(10374, "Open Timeline"));
|
|
67
69
|
function handler() {
|
|
68
70
|
return (accessor, arg) => {
|
|
69
71
|
const service = accessor.get(ITimelineService);
|
|
@@ -71,7 +73,7 @@ var OpenTimelineAction;
|
|
|
71
73
|
};
|
|
72
74
|
}
|
|
73
75
|
OpenTimelineAction.handler = handler;
|
|
74
|
-
})(OpenTimelineAction || (OpenTimelineAction = {}))
|
|
76
|
+
})(OpenTimelineAction || (OpenTimelineAction = {}));
|
|
75
77
|
CommandsRegistry.registerCommand(OpenTimelineAction.ID, OpenTimelineAction.handler());
|
|
76
78
|
MenuRegistry.appendMenuItem(MenuId.ExplorerContext, ({
|
|
77
79
|
group: '4_timeline',
|
|
@@ -81,16 +83,12 @@ MenuRegistry.appendMenuItem(MenuId.ExplorerContext, ({
|
|
|
81
83
|
title: OpenTimelineAction.LABEL,
|
|
82
84
|
icon: timelineOpenIcon
|
|
83
85
|
},
|
|
84
|
-
when: (
|
|
85
|
-
(ExplorerFolderContext.toNegated()),
|
|
86
|
-
ResourceContextKey.HasResource,
|
|
87
|
-
TimelineHasProviderContext
|
|
88
|
-
)))
|
|
86
|
+
when: ( ContextKeyExpr.and(( ExplorerFolderContext.toNegated()), ResourceContextKey.HasResource, TimelineHasProviderContext))
|
|
89
87
|
}));
|
|
90
|
-
const timelineFilter = registerIcon('timeline-filter', Codicon.filter, ( localize(
|
|
88
|
+
const timelineFilter = registerIcon('timeline-filter', Codicon.filter, ( localize(10375, 'Icon for the filter timeline action.')));
|
|
91
89
|
MenuRegistry.appendMenuItem(MenuId.TimelineTitle, {
|
|
92
90
|
submenu: MenuId.TimelineFilterSubMenu,
|
|
93
|
-
title: ( localize(
|
|
91
|
+
title: ( localize(10376, "Filter Timeline")),
|
|
94
92
|
group: 'navigation',
|
|
95
93
|
order: 100,
|
|
96
94
|
icon: timelineFilter
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { ILabelService } from "vscode/vscode/vs/platform/label/common/label.service";
|
|
2
|
+
import { URI } from "vscode/vscode/vs/base/common/uri";
|
|
3
|
+
import { IListVirtualDelegate, IIdentityProvider, IKeyboardNavigationLabelProvider } from "vscode/vscode/vs/base/browser/ui/list/list";
|
|
4
|
+
import { ViewPane, IViewPaneOptions } from "@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common/vscode/vs/workbench/browser/parts/views/viewPane";
|
|
5
|
+
import { IKeybindingService } from "vscode/vscode/vs/platform/keybinding/common/keybinding.service";
|
|
6
|
+
import { IContextMenuService } from "vscode/vscode/vs/platform/contextview/browser/contextView.service";
|
|
7
|
+
import { RawContextKey } from "vscode/vscode/vs/platform/contextkey/common/contextkey";
|
|
8
|
+
import { IContextKeyService } from "vscode/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
9
|
+
import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
|
|
10
|
+
import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
11
|
+
import { TimelineItem } from "vscode/vscode/vs/workbench/contrib/timeline/common/timeline";
|
|
12
|
+
import { ITimelineService } from "vscode/vscode/vs/workbench/contrib/timeline/common/timeline.service";
|
|
13
|
+
import { IEditorService } from "vscode/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
14
|
+
import { ICommandService } from "vscode/vscode/vs/platform/commands/common/commands.service";
|
|
15
|
+
import { IThemeService } from "vscode/vscode/vs/platform/theme/common/themeService.service";
|
|
16
|
+
import { ThemeIcon } from "vscode/vscode/vs/base/common/themables";
|
|
17
|
+
import { IViewDescriptorService } from "vscode/vscode/vs/workbench/common/views.service";
|
|
18
|
+
import { IProgressService } from "vscode/vscode/vs/platform/progress/common/progress.service";
|
|
19
|
+
import { IOpenerService } from "vscode/vscode/vs/platform/opener/common/opener.service";
|
|
20
|
+
import { ITelemetryService } from "vscode/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
21
|
+
import { IUriIdentityService } from "vscode/vscode/vs/platform/uriIdentity/common/uriIdentity.service";
|
|
22
|
+
import { IExtensionService } from "vscode/vscode/vs/workbench/services/extensions/common/extensions.service";
|
|
23
|
+
import { IStorageService } from "vscode/vscode/vs/platform/storage/common/storage.service";
|
|
24
|
+
import { ILocalizedString } from "vscode/vscode/vs/platform/action/common/action";
|
|
25
|
+
import { IHoverService } from "vscode/vscode/vs/platform/hover/browser/hover.service";
|
|
26
|
+
type TreeElement = TimelineItem | LoadMoreCommand;
|
|
27
|
+
declare class LoadMoreCommand {
|
|
28
|
+
readonly handle = "vscode-command:loadMore";
|
|
29
|
+
readonly timestamp = 0;
|
|
30
|
+
readonly description: undefined;
|
|
31
|
+
readonly tooltip: undefined;
|
|
32
|
+
readonly contextValue: undefined;
|
|
33
|
+
readonly id: undefined;
|
|
34
|
+
readonly icon: undefined;
|
|
35
|
+
readonly iconDark: undefined;
|
|
36
|
+
readonly source: undefined;
|
|
37
|
+
readonly relativeTime: undefined;
|
|
38
|
+
readonly relativeTimeFullWord: undefined;
|
|
39
|
+
readonly hideRelativeTime: undefined;
|
|
40
|
+
constructor(loading: boolean);
|
|
41
|
+
private _loading;
|
|
42
|
+
get loading(): boolean;
|
|
43
|
+
set loading(value: boolean);
|
|
44
|
+
get ariaLabel(): string;
|
|
45
|
+
get label(): string;
|
|
46
|
+
get themeIcon(): ThemeIcon | undefined;
|
|
47
|
+
}
|
|
48
|
+
export declare const TimelineFollowActiveEditorContext: RawContextKey<boolean>;
|
|
49
|
+
export declare const TimelineExcludeSources: RawContextKey<string>;
|
|
50
|
+
export declare const TimelineViewFocusedContext: RawContextKey<boolean>;
|
|
51
|
+
export declare class TimelinePane extends ViewPane {
|
|
52
|
+
private readonly storageService;
|
|
53
|
+
protected editorService: IEditorService;
|
|
54
|
+
protected commandService: ICommandService;
|
|
55
|
+
private readonly progressService;
|
|
56
|
+
protected timelineService: ITimelineService;
|
|
57
|
+
private readonly labelService;
|
|
58
|
+
private readonly uriIdentityService;
|
|
59
|
+
private readonly extensionService;
|
|
60
|
+
static readonly TITLE: ILocalizedString;
|
|
61
|
+
private $container;
|
|
62
|
+
private $message;
|
|
63
|
+
private $tree;
|
|
64
|
+
private tree;
|
|
65
|
+
private treeRenderer;
|
|
66
|
+
private commands;
|
|
67
|
+
private visibilityDisposables;
|
|
68
|
+
private followActiveEditorContext;
|
|
69
|
+
private timelineExcludeSourcesContext;
|
|
70
|
+
private excludedSources;
|
|
71
|
+
private pendingRequests;
|
|
72
|
+
private timelinesBySource;
|
|
73
|
+
private uri;
|
|
74
|
+
constructor(options: IViewPaneOptions, keybindingService: IKeybindingService, contextMenuService: IContextMenuService, contextKeyService: IContextKeyService, configurationService: IConfigurationService, storageService: IStorageService, viewDescriptorService: IViewDescriptorService, instantiationService: IInstantiationService, editorService: IEditorService, commandService: ICommandService, progressService: IProgressService, timelineService: ITimelineService, openerService: IOpenerService, themeService: IThemeService, telemetryService: ITelemetryService, hoverService: IHoverService, labelService: ILabelService, uriIdentityService: IUriIdentityService, extensionService: IExtensionService);
|
|
75
|
+
private _followActiveEditor;
|
|
76
|
+
get followActiveEditor(): boolean;
|
|
77
|
+
set followActiveEditor(value: boolean);
|
|
78
|
+
private _pageOnScroll;
|
|
79
|
+
get pageOnScroll(): boolean;
|
|
80
|
+
get pageSize(): number;
|
|
81
|
+
reset(): void;
|
|
82
|
+
setUri(uri: URI): void;
|
|
83
|
+
private setUriCore;
|
|
84
|
+
private onStorageServiceChanged;
|
|
85
|
+
private onConfigurationChanged;
|
|
86
|
+
private onActiveEditorChanged;
|
|
87
|
+
private onProvidersChanged;
|
|
88
|
+
private onTimelineChanged;
|
|
89
|
+
private _filename;
|
|
90
|
+
updateFilename(filename: string | undefined): void;
|
|
91
|
+
private _message;
|
|
92
|
+
get message(): string | undefined;
|
|
93
|
+
set message(message: string | undefined);
|
|
94
|
+
private updateMessage;
|
|
95
|
+
private showMessage;
|
|
96
|
+
private hideMessage;
|
|
97
|
+
private resetMessageElement;
|
|
98
|
+
private _isEmpty;
|
|
99
|
+
private _maxItemCount;
|
|
100
|
+
private _visibleItemCount;
|
|
101
|
+
private get hasVisibleItems();
|
|
102
|
+
private clear;
|
|
103
|
+
private loadTimeline;
|
|
104
|
+
private loadTimelineForSource;
|
|
105
|
+
private updateTimeline;
|
|
106
|
+
private _pendingRefresh;
|
|
107
|
+
private handleRequest;
|
|
108
|
+
private getItems;
|
|
109
|
+
private refresh;
|
|
110
|
+
private refreshDebounced;
|
|
111
|
+
focus(): void;
|
|
112
|
+
setExpanded(expanded: boolean): boolean;
|
|
113
|
+
setVisible(visible: boolean): void;
|
|
114
|
+
protected layoutBody(height: number, width: number): void;
|
|
115
|
+
protected renderHeaderTitle(container: HTMLElement): void;
|
|
116
|
+
protected renderBody(container: HTMLElement): void;
|
|
117
|
+
private loadMore;
|
|
118
|
+
ensureValidItems(): boolean;
|
|
119
|
+
setLoadingUriMessage(): void;
|
|
120
|
+
private onContextMenu;
|
|
121
|
+
}
|
|
122
|
+
export declare class TimelineIdentityProvider implements IIdentityProvider<TreeElement> {
|
|
123
|
+
getId(item: TreeElement): {
|
|
124
|
+
toString(): string;
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
export declare class TimelineKeyboardNavigationLabelProvider implements IKeyboardNavigationLabelProvider<TreeElement> {
|
|
128
|
+
getKeyboardNavigationLabel(element: TreeElement): {
|
|
129
|
+
toString(): string;
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
export declare class TimelineListVirtualDelegate implements IListVirtualDelegate<TreeElement> {
|
|
133
|
+
getHeight(_element: TreeElement): number;
|
|
134
|
+
getTemplateId(element: TreeElement): string;
|
|
135
|
+
}
|
|
136
|
+
export {};
|