@theia/markers 1.34.3 → 1.34.4

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.
Files changed (82) hide show
  1. package/LICENSE +641 -641
  2. package/README.md +33 -33
  3. package/lib/browser/index.d.ts +2 -2
  4. package/lib/browser/index.js +29 -29
  5. package/lib/browser/marker-manager.d.ts +47 -47
  6. package/lib/browser/marker-manager.js +187 -187
  7. package/lib/browser/marker-tree-label-provider.d.ts +15 -15
  8. package/lib/browser/marker-tree-label-provider.js +84 -84
  9. package/lib/browser/marker-tree-label-provider.spec.d.ts +1 -1
  10. package/lib/browser/marker-tree-label-provider.spec.js +201 -201
  11. package/lib/browser/marker-tree-model.d.ts +12 -12
  12. package/lib/browser/marker-tree-model.js +60 -60
  13. package/lib/browser/marker-tree.d.ts +42 -42
  14. package/lib/browser/marker-tree.js +143 -143
  15. package/lib/browser/problem/problem-composite-tree-node.d.ts +8 -8
  16. package/lib/browser/problem/problem-composite-tree-node.js +68 -68
  17. package/lib/browser/problem/problem-composite-tree-node.spec.d.ts +1 -1
  18. package/lib/browser/problem/problem-composite-tree-node.spec.js +216 -216
  19. package/lib/browser/problem/problem-container.d.ts +8 -8
  20. package/lib/browser/problem/problem-container.js +42 -42
  21. package/lib/browser/problem/problem-contribution.d.ts +51 -51
  22. package/lib/browser/problem/problem-contribution.js +247 -247
  23. package/lib/browser/problem/problem-decorations-provider.d.ts +18 -18
  24. package/lib/browser/problem/problem-decorations-provider.js +92 -92
  25. package/lib/browser/problem/problem-decorator.d.ts +57 -57
  26. package/lib/browser/problem/problem-decorator.js +233 -233
  27. package/lib/browser/problem/problem-frontend-module.d.ts +4 -4
  28. package/lib/browser/problem/problem-frontend-module.js +55 -55
  29. package/lib/browser/problem/problem-layout-migrations.d.ts +5 -5
  30. package/lib/browser/problem/problem-layout-migrations.js +43 -43
  31. package/lib/browser/problem/problem-manager.d.ts +11 -11
  32. package/lib/browser/problem/problem-manager.js +53 -53
  33. package/lib/browser/problem/problem-manager.spec.d.ts +1 -1
  34. package/lib/browser/problem/problem-manager.spec.js +167 -167
  35. package/lib/browser/problem/problem-preferences.d.ts +13 -13
  36. package/lib/browser/problem/problem-preferences.js +56 -56
  37. package/lib/browser/problem/problem-selection.d.ts +12 -12
  38. package/lib/browser/problem/problem-selection.js +34 -34
  39. package/lib/browser/problem/problem-tabbar-decorator.d.ts +42 -42
  40. package/lib/browser/problem/problem-tabbar-decorator.js +160 -160
  41. package/lib/browser/problem/problem-tree-model.d.ts +26 -26
  42. package/lib/browser/problem/problem-tree-model.js +122 -122
  43. package/lib/browser/problem/problem-tree-model.spec.d.ts +1 -1
  44. package/lib/browser/problem/problem-tree-model.spec.js +172 -172
  45. package/lib/browser/problem/problem-utils.d.ts +44 -44
  46. package/lib/browser/problem/problem-utils.js +84 -84
  47. package/lib/browser/problem/problem-widget-tab-bar-decorator.d.ts +14 -14
  48. package/lib/browser/problem/problem-widget-tab-bar-decorator.js +69 -69
  49. package/lib/browser/problem/problem-widget.d.ts +45 -45
  50. package/lib/browser/problem/problem-widget.js +231 -231
  51. package/lib/common/marker.d.ts +16 -16
  52. package/lib/common/marker.js +31 -31
  53. package/lib/common/problem-marker.d.ts +9 -9
  54. package/lib/common/problem-marker.js +27 -27
  55. package/package.json +6 -6
  56. package/src/browser/index.ts +18 -18
  57. package/src/browser/marker-manager.ts +205 -205
  58. package/src/browser/marker-tree-label-provider.spec.ts +245 -245
  59. package/src/browser/marker-tree-label-provider.ts +75 -75
  60. package/src/browser/marker-tree-model.ts +47 -47
  61. package/src/browser/marker-tree.ts +154 -154
  62. package/src/browser/problem/problem-composite-tree-node.spec.ts +255 -255
  63. package/src/browser/problem/problem-composite-tree-node.ts +68 -68
  64. package/src/browser/problem/problem-container.ts +47 -47
  65. package/src/browser/problem/problem-contribution.ts +247 -247
  66. package/src/browser/problem/problem-decorations-provider.ts +67 -67
  67. package/src/browser/problem/problem-decorator.ts +222 -222
  68. package/src/browser/problem/problem-frontend-module.ts +64 -64
  69. package/src/browser/problem/problem-layout-migrations.ts +32 -32
  70. package/src/browser/problem/problem-manager.spec.ts +216 -216
  71. package/src/browser/problem/problem-manager.ts +51 -51
  72. package/src/browser/problem/problem-preferences.ts +64 -64
  73. package/src/browser/problem/problem-selection.ts +45 -45
  74. package/src/browser/problem/problem-tabbar-decorator.ts +151 -151
  75. package/src/browser/problem/problem-tree-model.spec.ts +189 -189
  76. package/src/browser/problem/problem-tree-model.ts +113 -113
  77. package/src/browser/problem/problem-utils.ts +90 -90
  78. package/src/browser/problem/problem-widget-tab-bar-decorator.ts +55 -55
  79. package/src/browser/problem/problem-widget.tsx +241 -241
  80. package/src/browser/style/index.css +92 -92
  81. package/src/common/marker.ts +53 -53
  82. package/src/common/problem-marker.ts +30 -30
@@ -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 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 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 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 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
+ }