@theia/timeline 1.53.0-next.5 → 1.53.0-next.55

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.
@@ -1,84 +1,84 @@
1
- // *****************************************************************************
2
- // Copyright (C) 2020 RedHat and others.
3
- //
4
- // This program and the accompanying materials are made available under the
5
- // terms of the Eclipse Public License v. 2.0 which is available at
6
- // http://www.eclipse.org/legal/epl-2.0.
7
- //
8
- // This Source Code may also be made available under the following Secondary
9
- // Licenses when the conditions for such availability set forth in the Eclipse
10
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
- // with the GNU Classpath Exception which is available at
12
- // https://www.gnu.org/software/classpath/license.html.
13
- //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
- // *****************************************************************************
16
-
17
- /*---------------------------------------------------------------------------------------------
18
- * Copyright (c) Microsoft Corporation. All rights reserved.
19
- * Licensed under the MIT License. See License.txt in the project root for license information.
20
- *--------------------------------------------------------------------------------------------*/
21
- // some code copied and modified from https://github.com/microsoft/vscode/blob/3aab025eaebde6c9544293b6c7554f3f583e15d0/src/vs/workbench/contrib/timeline/common/timeline.ts
22
-
23
- import { Command, Disposable, Event } from '@theia/core/lib/common';
24
- import { URI } from '@theia/core/shared/vscode-uri';
25
-
26
- export interface TimelineItem {
27
- source: string;
28
- uri: string;
29
- handle: string;
30
- timestamp: number;
31
- label: string;
32
- id?: string;
33
- description?: string;
34
- detail?: string;
35
- command?: Command & { arguments?: unknown[] };
36
- contextValue?: string;
37
- }
38
-
39
- export interface TimelineChangeEvent {
40
- id: string;
41
- uri: URI | undefined;
42
- reset: boolean
43
- }
44
-
45
- export interface TimelineProvidersChangeEvent {
46
- readonly added?: string[];
47
- readonly removed?: string[];
48
- }
49
-
50
- export interface TimelineOptions {
51
- cursor?: string;
52
- limit?: number | { timestamp: number; id?: string };
53
- }
54
-
55
- export interface InternalTimelineOptions {
56
- cacheResults: boolean;
57
- resetCache: boolean;
58
- }
59
-
60
- export interface Timeline {
61
- source: string;
62
-
63
- paging?: {
64
- readonly cursor: string | undefined;
65
- }
66
-
67
- items: TimelineItem[];
68
- }
69
-
70
- export interface TimelineProviderDescriptor {
71
- id: string;
72
- label: string;
73
- scheme: string | string[];
74
- }
75
-
76
- export interface TimelineProvider extends TimelineProviderDescriptor, Disposable {
77
- onDidChange?: Event<TimelineChangeEvent>;
78
- provideTimeline(uri: URI, options: TimelineOptions, internalOptions?: InternalTimelineOptions): Promise<Timeline | undefined>;
79
- }
80
-
81
- export interface TimelineSource {
82
- id: string;
83
- label: string;
84
- }
1
+ // *****************************************************************************
2
+ // Copyright (C) 2020 RedHat and others.
3
+ //
4
+ // This program and the accompanying materials are made available under the
5
+ // terms of the Eclipse Public License v. 2.0 which is available at
6
+ // http://www.eclipse.org/legal/epl-2.0.
7
+ //
8
+ // This Source Code may also be made available under the following Secondary
9
+ // Licenses when the conditions for such availability set forth in the Eclipse
10
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
+ // with the GNU Classpath Exception which is available at
12
+ // https://www.gnu.org/software/classpath/license.html.
13
+ //
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
+ // *****************************************************************************
16
+
17
+ /*---------------------------------------------------------------------------------------------
18
+ * Copyright (c) Microsoft Corporation. All rights reserved.
19
+ * Licensed under the MIT License. See License.txt in the project root for license information.
20
+ *--------------------------------------------------------------------------------------------*/
21
+ // some code copied and modified from https://github.com/microsoft/vscode/blob/3aab025eaebde6c9544293b6c7554f3f583e15d0/src/vs/workbench/contrib/timeline/common/timeline.ts
22
+
23
+ import { Command, Disposable, Event } from '@theia/core/lib/common';
24
+ import { URI } from '@theia/core/shared/vscode-uri';
25
+
26
+ export interface TimelineItem {
27
+ source: string;
28
+ uri: string;
29
+ handle: string;
30
+ timestamp: number;
31
+ label: string;
32
+ id?: string;
33
+ description?: string;
34
+ detail?: string;
35
+ command?: Command & { arguments?: unknown[] };
36
+ contextValue?: string;
37
+ }
38
+
39
+ export interface TimelineChangeEvent {
40
+ id: string;
41
+ uri: URI | undefined;
42
+ reset: boolean
43
+ }
44
+
45
+ export interface TimelineProvidersChangeEvent {
46
+ readonly added?: string[];
47
+ readonly removed?: string[];
48
+ }
49
+
50
+ export interface TimelineOptions {
51
+ cursor?: string;
52
+ limit?: number | { timestamp: number; id?: string };
53
+ }
54
+
55
+ export interface InternalTimelineOptions {
56
+ cacheResults: boolean;
57
+ resetCache: boolean;
58
+ }
59
+
60
+ export interface Timeline {
61
+ source: string;
62
+
63
+ paging?: {
64
+ readonly cursor: string | undefined;
65
+ }
66
+
67
+ items: TimelineItem[];
68
+ }
69
+
70
+ export interface TimelineProviderDescriptor {
71
+ id: string;
72
+ label: string;
73
+ scheme: string | string[];
74
+ }
75
+
76
+ export interface TimelineProvider extends TimelineProviderDescriptor, Disposable {
77
+ onDidChange?: Event<TimelineChangeEvent>;
78
+ provideTimeline(uri: URI, options: TimelineOptions, internalOptions?: InternalTimelineOptions): Promise<Timeline | undefined>;
79
+ }
80
+
81
+ export interface TimelineSource {
82
+ id: string;
83
+ label: string;
84
+ }
@@ -1,29 +1,29 @@
1
- // *****************************************************************************
2
- // Copyright (C) 2019 TypeFox and others.
3
- //
4
- // This program and the accompanying materials are made available under the
5
- // terms of the Eclipse Public License v. 2.0 which is available at
6
- // http://www.eclipse.org/legal/epl-2.0.
7
- //
8
- // This Source Code may also be made available under the following Secondary
9
- // Licenses when the conditions for such availability set forth in the Eclipse
10
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
- // with the GNU Classpath Exception which is available at
12
- // https://www.gnu.org/software/classpath/license.html.
13
- //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
- // *****************************************************************************
16
-
17
- /* note: this bogus test file is required so that
18
- we are able to run mocha unit tests on this
19
- package, without having any actual unit tests in it.
20
- This way a coverage report will be generated,
21
- showing 0% coverage, instead of no report.
22
- This file can be removed once we have real unit
23
- tests in place. */
24
-
25
- describe('timeline package', () => {
26
-
27
- it('support code coverage statistics', () => true);
28
-
29
- });
1
+ // *****************************************************************************
2
+ // Copyright (C) 2019 TypeFox and others.
3
+ //
4
+ // This program and the accompanying materials are made available under the
5
+ // terms of the Eclipse Public License v. 2.0 which is available at
6
+ // http://www.eclipse.org/legal/epl-2.0.
7
+ //
8
+ // This Source Code may also be made available under the following Secondary
9
+ // Licenses when the conditions for such availability set forth in the Eclipse
10
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
+ // with the GNU Classpath Exception which is available at
12
+ // https://www.gnu.org/software/classpath/license.html.
13
+ //
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
+ // *****************************************************************************
16
+
17
+ /* note: this bogus test file is required so that
18
+ we are able to run mocha unit tests on this
19
+ package, without having any actual unit tests in it.
20
+ This way a coverage report will be generated,
21
+ showing 0% coverage, instead of no report.
22
+ This file can be removed once we have real unit
23
+ tests in place. */
24
+
25
+ describe('timeline package', () => {
26
+
27
+ it('support code coverage statistics', () => true);
28
+
29
+ });