@theia/markers 1.45.0 → 1.46.0-next.72
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/README.md +33 -33
- package/lib/browser/index.d.ts +2 -2
- package/lib/browser/index.js +29 -29
- package/lib/browser/marker-manager.d.ts +47 -47
- package/lib/browser/marker-manager.js +187 -187
- package/lib/browser/marker-tree-label-provider.d.ts +15 -15
- package/lib/browser/marker-tree-label-provider.js +84 -84
- package/lib/browser/marker-tree-label-provider.spec.d.ts +1 -1
- package/lib/browser/marker-tree-label-provider.spec.js +201 -201
- package/lib/browser/marker-tree-model.d.ts +12 -12
- package/lib/browser/marker-tree-model.js +60 -60
- package/lib/browser/marker-tree.d.ts +42 -42
- package/lib/browser/marker-tree.js +143 -143
- package/lib/browser/problem/problem-composite-tree-node.d.ts +11 -11
- package/lib/browser/problem/problem-composite-tree-node.js +76 -76
- package/lib/browser/problem/problem-composite-tree-node.spec.d.ts +1 -1
- package/lib/browser/problem/problem-composite-tree-node.spec.js +238 -238
- package/lib/browser/problem/problem-container.d.ts +8 -8
- package/lib/browser/problem/problem-container.js +46 -46
- package/lib/browser/problem/problem-contribution.d.ts +51 -51
- package/lib/browser/problem/problem-contribution.js +247 -247
- package/lib/browser/problem/problem-decorations-provider.d.ts +21 -21
- package/lib/browser/problem/problem-decorations-provider.js +95 -95
- package/lib/browser/problem/problem-decorator.d.ts +57 -57
- package/lib/browser/problem/problem-decorator.js +233 -233
- package/lib/browser/problem/problem-frontend-module.d.ts +4 -4
- package/lib/browser/problem/problem-frontend-module.js +55 -55
- package/lib/browser/problem/problem-layout-migrations.d.ts +5 -5
- package/lib/browser/problem/problem-layout-migrations.js +43 -43
- package/lib/browser/problem/problem-manager.d.ts +11 -11
- package/lib/browser/problem/problem-manager.js +53 -53
- package/lib/browser/problem/problem-manager.spec.d.ts +1 -1
- package/lib/browser/problem/problem-manager.spec.js +167 -167
- package/lib/browser/problem/problem-preferences.d.ts +13 -13
- package/lib/browser/problem/problem-preferences.js +56 -56
- package/lib/browser/problem/problem-selection.d.ts +12 -12
- package/lib/browser/problem/problem-selection.js +34 -34
- package/lib/browser/problem/problem-tabbar-decorator.d.ts +42 -42
- package/lib/browser/problem/problem-tabbar-decorator.js +160 -160
- package/lib/browser/problem/problem-tree-model.d.ts +32 -32
- package/lib/browser/problem/problem-tree-model.js +131 -131
- package/lib/browser/problem/problem-tree-model.spec.d.ts +1 -1
- package/lib/browser/problem/problem-tree-model.spec.js +172 -172
- package/lib/browser/problem/problem-utils.d.ts +44 -44
- package/lib/browser/problem/problem-utils.js +84 -84
- package/lib/browser/problem/problem-widget-tab-bar-decorator.d.ts +14 -14
- package/lib/browser/problem/problem-widget-tab-bar-decorator.js +69 -69
- package/lib/browser/problem/problem-widget.d.ts +46 -46
- package/lib/browser/problem/problem-widget.js +235 -235
- package/lib/common/marker.d.ts +16 -16
- package/lib/common/marker.js +31 -31
- package/lib/common/problem-marker.d.ts +9 -9
- package/lib/common/problem-marker.js +27 -27
- package/package.json +6 -6
- package/src/browser/index.ts +18 -18
- package/src/browser/marker-manager.ts +205 -205
- package/src/browser/marker-tree-label-provider.spec.ts +245 -245
- package/src/browser/marker-tree-label-provider.ts +75 -75
- package/src/browser/marker-tree-model.ts +47 -47
- package/src/browser/marker-tree.ts +154 -154
- package/src/browser/problem/problem-composite-tree-node.spec.ts +277 -277
- package/src/browser/problem/problem-composite-tree-node.ts +81 -81
- package/src/browser/problem/problem-container.ts +47 -47
- package/src/browser/problem/problem-contribution.ts +247 -247
- package/src/browser/problem/problem-decorations-provider.ts +72 -72
- package/src/browser/problem/problem-decorator.ts +222 -222
- package/src/browser/problem/problem-frontend-module.ts +64 -64
- package/src/browser/problem/problem-layout-migrations.ts +32 -32
- package/src/browser/problem/problem-manager.spec.ts +216 -216
- package/src/browser/problem/problem-manager.ts +51 -51
- package/src/browser/problem/problem-preferences.ts +64 -64
- package/src/browser/problem/problem-selection.ts +45 -45
- package/src/browser/problem/problem-tabbar-decorator.ts +151 -151
- package/src/browser/problem/problem-tree-model.spec.ts +189 -189
- package/src/browser/problem/problem-tree-model.ts +124 -124
- package/src/browser/problem/problem-utils.ts +90 -90
- package/src/browser/problem/problem-widget-tab-bar-decorator.ts +55 -55
- package/src/browser/problem/problem-widget.tsx +246 -246
- package/src/browser/style/index.css +92 -92
- package/src/common/marker.ts +53 -53
- package/src/common/problem-marker.ts +30 -30
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
/********************************************************************************
|
|
2
|
-
* Copyright (C) 2017 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
|
-
.theia-marker-container {
|
|
18
|
-
font-size: var(--theia-ui-font-size1);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.theia-side-panel .theia-marker-container .noMarkers {
|
|
22
|
-
padding-left: 19px;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.theia-marker-container .markerNode,
|
|
26
|
-
.theia-marker-container .markerFileNode {
|
|
27
|
-
display: flex;
|
|
28
|
-
align-items: center;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.theia-marker-container .markerNode div,
|
|
32
|
-
.theia-marker-container .markerFileNode div:not(.file-icon) {
|
|
33
|
-
display: flex;
|
|
34
|
-
margin-right: 5px;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.theia-marker-container .markerFileNode .name,
|
|
38
|
-
.theia-marker-container .markerFileNode .path {
|
|
39
|
-
overflow: hidden;
|
|
40
|
-
text-overflow: ellipsis;
|
|
41
|
-
white-space: nowrap;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.theia-marker-container .markerFileNode .path {
|
|
45
|
-
font-size: var(--theia-ui-font-size0);
|
|
46
|
-
align-self: flex-end;
|
|
47
|
-
white-space: nowrap;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.theia-marker-container .error {
|
|
51
|
-
color: var(--theia-editorError-foreground);
|
|
52
|
-
opacity: 1;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.theia-marker-container .warning {
|
|
56
|
-
color: var(--theia-editorWarning-foreground);
|
|
57
|
-
opacity: 1;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.theia-marker-container .information {
|
|
61
|
-
color: var(--theia-editorInfo-foreground);
|
|
62
|
-
opacity: 1;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.theia-marker-container .hint {
|
|
66
|
-
color: var(--theia-successBackground);
|
|
67
|
-
opacity: 1;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.theia-marker-container .markerNode .position,
|
|
71
|
-
.theia-marker-container .markerNode .owner {
|
|
72
|
-
white-space: nowrap;
|
|
73
|
-
margin-left: 5px;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.theia-marker-container .markerNode .message {
|
|
77
|
-
white-space: nowrap;
|
|
78
|
-
overflow: hidden;
|
|
79
|
-
text-overflow: ellipsis;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.theia-marker-container .row-button-container {
|
|
83
|
-
display: none;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.theia-marker-container .theia-TreeNodeContent:hover .row-button-container {
|
|
87
|
-
display: flex;
|
|
88
|
-
justify-content: flex-end;
|
|
89
|
-
flex: 1;
|
|
90
|
-
align-items: center;
|
|
91
|
-
align-self: center;
|
|
92
|
-
}
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (C) 2017 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
|
+
.theia-marker-container {
|
|
18
|
+
font-size: var(--theia-ui-font-size1);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.theia-side-panel .theia-marker-container .noMarkers {
|
|
22
|
+
padding-left: 19px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.theia-marker-container .markerNode,
|
|
26
|
+
.theia-marker-container .markerFileNode {
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.theia-marker-container .markerNode div,
|
|
32
|
+
.theia-marker-container .markerFileNode div:not(.file-icon) {
|
|
33
|
+
display: flex;
|
|
34
|
+
margin-right: 5px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.theia-marker-container .markerFileNode .name,
|
|
38
|
+
.theia-marker-container .markerFileNode .path {
|
|
39
|
+
overflow: hidden;
|
|
40
|
+
text-overflow: ellipsis;
|
|
41
|
+
white-space: nowrap;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.theia-marker-container .markerFileNode .path {
|
|
45
|
+
font-size: var(--theia-ui-font-size0);
|
|
46
|
+
align-self: flex-end;
|
|
47
|
+
white-space: nowrap;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.theia-marker-container .error {
|
|
51
|
+
color: var(--theia-editorError-foreground);
|
|
52
|
+
opacity: 1;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.theia-marker-container .warning {
|
|
56
|
+
color: var(--theia-editorWarning-foreground);
|
|
57
|
+
opacity: 1;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.theia-marker-container .information {
|
|
61
|
+
color: var(--theia-editorInfo-foreground);
|
|
62
|
+
opacity: 1;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.theia-marker-container .hint {
|
|
66
|
+
color: var(--theia-successBackground);
|
|
67
|
+
opacity: 1;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.theia-marker-container .markerNode .position,
|
|
71
|
+
.theia-marker-container .markerNode .owner {
|
|
72
|
+
white-space: nowrap;
|
|
73
|
+
margin-left: 5px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.theia-marker-container .markerNode .message {
|
|
77
|
+
white-space: nowrap;
|
|
78
|
+
overflow: hidden;
|
|
79
|
+
text-overflow: ellipsis;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.theia-marker-container .row-button-container {
|
|
83
|
+
display: none;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.theia-marker-container .theia-TreeNodeContent:hover .row-button-container {
|
|
87
|
+
display: flex;
|
|
88
|
+
justify-content: flex-end;
|
|
89
|
+
flex: 1;
|
|
90
|
+
align-items: center;
|
|
91
|
+
align-self: center;
|
|
92
|
+
}
|
package/src/common/marker.ts
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
// *****************************************************************************
|
|
2
|
-
// Copyright (C) 2017 Ericsson 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
|
-
import { isObject, isString } from '@theia/core/lib/common/types';
|
|
18
|
-
|
|
19
|
-
/*
|
|
20
|
-
* A marker represents meta information for a given uri
|
|
21
|
-
*/
|
|
22
|
-
export interface Marker<T> {
|
|
23
|
-
/**
|
|
24
|
-
* the uri this marker is associated with.
|
|
25
|
-
*/
|
|
26
|
-
uri: string;
|
|
27
|
-
/*
|
|
28
|
-
* the owner of this marker. Any string provided by the registrar.
|
|
29
|
-
*/
|
|
30
|
-
owner: string;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* the kind, e.g. 'problem'
|
|
34
|
-
*/
|
|
35
|
-
kind?: string;
|
|
36
|
-
|
|
37
|
-
/*
|
|
38
|
-
* marker kind specific data
|
|
39
|
-
*/
|
|
40
|
-
data: T;
|
|
41
|
-
}
|
|
42
|
-
export namespace Marker {
|
|
43
|
-
export function is(value: unknown): value is Marker<object>;
|
|
44
|
-
export function is<T>(value: unknown, subTypeCheck: (value: unknown) => value is T): value is Marker<T>;
|
|
45
|
-
export function is(value: unknown, subTypeCheck?: (value: unknown) => boolean): boolean {
|
|
46
|
-
subTypeCheck ??= isObject;
|
|
47
|
-
return isObject<Marker<object>>(value)
|
|
48
|
-
&& !Array.isArray(value)
|
|
49
|
-
&& subTypeCheck(value.data)
|
|
50
|
-
&& isString(value.uri)
|
|
51
|
-
&& isString(value.owner);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2017 Ericsson 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
|
+
import { isObject, isString } from '@theia/core/lib/common/types';
|
|
18
|
+
|
|
19
|
+
/*
|
|
20
|
+
* A marker represents meta information for a given uri
|
|
21
|
+
*/
|
|
22
|
+
export interface Marker<T> {
|
|
23
|
+
/**
|
|
24
|
+
* the uri this marker is associated with.
|
|
25
|
+
*/
|
|
26
|
+
uri: string;
|
|
27
|
+
/*
|
|
28
|
+
* the owner of this marker. Any string provided by the registrar.
|
|
29
|
+
*/
|
|
30
|
+
owner: string;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* the kind, e.g. 'problem'
|
|
34
|
+
*/
|
|
35
|
+
kind?: string;
|
|
36
|
+
|
|
37
|
+
/*
|
|
38
|
+
* marker kind specific data
|
|
39
|
+
*/
|
|
40
|
+
data: T;
|
|
41
|
+
}
|
|
42
|
+
export namespace Marker {
|
|
43
|
+
export function is(value: unknown): value is Marker<object>;
|
|
44
|
+
export function is<T>(value: unknown, subTypeCheck: (value: unknown) => value is T): value is Marker<T>;
|
|
45
|
+
export function is(value: unknown, subTypeCheck?: (value: unknown) => boolean): boolean {
|
|
46
|
+
subTypeCheck ??= isObject;
|
|
47
|
+
return isObject<Marker<object>>(value)
|
|
48
|
+
&& !Array.isArray(value)
|
|
49
|
+
&& subTypeCheck(value.data)
|
|
50
|
+
&& isString(value.uri)
|
|
51
|
+
&& isString(value.owner);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
// *****************************************************************************
|
|
2
|
-
// Copyright (C) 2017 Ericsson 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
|
-
import { Marker } from './marker';
|
|
18
|
-
import { Diagnostic } from '@theia/core/shared/vscode-languageserver-protocol';
|
|
19
|
-
|
|
20
|
-
export const PROBLEM_KIND = 'problem';
|
|
21
|
-
|
|
22
|
-
export interface ProblemMarker extends Marker<Diagnostic> {
|
|
23
|
-
kind: 'problem';
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export namespace ProblemMarker {
|
|
27
|
-
export function is(node: unknown): node is ProblemMarker {
|
|
28
|
-
return Marker.is(node) && node.kind === PROBLEM_KIND;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2017 Ericsson 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
|
+
import { Marker } from './marker';
|
|
18
|
+
import { Diagnostic } from '@theia/core/shared/vscode-languageserver-protocol';
|
|
19
|
+
|
|
20
|
+
export const PROBLEM_KIND = 'problem';
|
|
21
|
+
|
|
22
|
+
export interface ProblemMarker extends Marker<Diagnostic> {
|
|
23
|
+
kind: 'problem';
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export namespace ProblemMarker {
|
|
27
|
+
export function is(node: unknown): node is ProblemMarker {
|
|
28
|
+
return Marker.is(node) && node.kind === PROBLEM_KIND;
|
|
29
|
+
}
|
|
30
|
+
}
|