@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.
Files changed (81) hide show
  1. package/README.md +33 -33
  2. package/lib/browser/index.d.ts +2 -2
  3. package/lib/browser/index.js +29 -29
  4. package/lib/browser/marker-manager.d.ts +47 -47
  5. package/lib/browser/marker-manager.js +187 -187
  6. package/lib/browser/marker-tree-label-provider.d.ts +15 -15
  7. package/lib/browser/marker-tree-label-provider.js +84 -84
  8. package/lib/browser/marker-tree-label-provider.spec.d.ts +1 -1
  9. package/lib/browser/marker-tree-label-provider.spec.js +201 -201
  10. package/lib/browser/marker-tree-model.d.ts +12 -12
  11. package/lib/browser/marker-tree-model.js +60 -60
  12. package/lib/browser/marker-tree.d.ts +42 -42
  13. package/lib/browser/marker-tree.js +143 -143
  14. package/lib/browser/problem/problem-composite-tree-node.d.ts +11 -11
  15. package/lib/browser/problem/problem-composite-tree-node.js +76 -76
  16. package/lib/browser/problem/problem-composite-tree-node.spec.d.ts +1 -1
  17. package/lib/browser/problem/problem-composite-tree-node.spec.js +238 -238
  18. package/lib/browser/problem/problem-container.d.ts +8 -8
  19. package/lib/browser/problem/problem-container.js +46 -46
  20. package/lib/browser/problem/problem-contribution.d.ts +51 -51
  21. package/lib/browser/problem/problem-contribution.js +247 -247
  22. package/lib/browser/problem/problem-decorations-provider.d.ts +21 -21
  23. package/lib/browser/problem/problem-decorations-provider.js +95 -95
  24. package/lib/browser/problem/problem-decorator.d.ts +57 -57
  25. package/lib/browser/problem/problem-decorator.js +233 -233
  26. package/lib/browser/problem/problem-frontend-module.d.ts +4 -4
  27. package/lib/browser/problem/problem-frontend-module.js +55 -55
  28. package/lib/browser/problem/problem-layout-migrations.d.ts +5 -5
  29. package/lib/browser/problem/problem-layout-migrations.js +43 -43
  30. package/lib/browser/problem/problem-manager.d.ts +11 -11
  31. package/lib/browser/problem/problem-manager.js +53 -53
  32. package/lib/browser/problem/problem-manager.spec.d.ts +1 -1
  33. package/lib/browser/problem/problem-manager.spec.js +167 -167
  34. package/lib/browser/problem/problem-preferences.d.ts +13 -13
  35. package/lib/browser/problem/problem-preferences.js +56 -56
  36. package/lib/browser/problem/problem-selection.d.ts +12 -12
  37. package/lib/browser/problem/problem-selection.js +34 -34
  38. package/lib/browser/problem/problem-tabbar-decorator.d.ts +42 -42
  39. package/lib/browser/problem/problem-tabbar-decorator.js +160 -160
  40. package/lib/browser/problem/problem-tree-model.d.ts +32 -32
  41. package/lib/browser/problem/problem-tree-model.js +131 -131
  42. package/lib/browser/problem/problem-tree-model.spec.d.ts +1 -1
  43. package/lib/browser/problem/problem-tree-model.spec.js +172 -172
  44. package/lib/browser/problem/problem-utils.d.ts +44 -44
  45. package/lib/browser/problem/problem-utils.js +84 -84
  46. package/lib/browser/problem/problem-widget-tab-bar-decorator.d.ts +14 -14
  47. package/lib/browser/problem/problem-widget-tab-bar-decorator.js +69 -69
  48. package/lib/browser/problem/problem-widget.d.ts +46 -46
  49. package/lib/browser/problem/problem-widget.js +235 -235
  50. package/lib/common/marker.d.ts +16 -16
  51. package/lib/common/marker.js +31 -31
  52. package/lib/common/problem-marker.d.ts +9 -9
  53. package/lib/common/problem-marker.js +27 -27
  54. package/package.json +6 -6
  55. package/src/browser/index.ts +18 -18
  56. package/src/browser/marker-manager.ts +205 -205
  57. package/src/browser/marker-tree-label-provider.spec.ts +245 -245
  58. package/src/browser/marker-tree-label-provider.ts +75 -75
  59. package/src/browser/marker-tree-model.ts +47 -47
  60. package/src/browser/marker-tree.ts +154 -154
  61. package/src/browser/problem/problem-composite-tree-node.spec.ts +277 -277
  62. package/src/browser/problem/problem-composite-tree-node.ts +81 -81
  63. package/src/browser/problem/problem-container.ts +47 -47
  64. package/src/browser/problem/problem-contribution.ts +247 -247
  65. package/src/browser/problem/problem-decorations-provider.ts +72 -72
  66. package/src/browser/problem/problem-decorator.ts +222 -222
  67. package/src/browser/problem/problem-frontend-module.ts +64 -64
  68. package/src/browser/problem/problem-layout-migrations.ts +32 -32
  69. package/src/browser/problem/problem-manager.spec.ts +216 -216
  70. package/src/browser/problem/problem-manager.ts +51 -51
  71. package/src/browser/problem/problem-preferences.ts +64 -64
  72. package/src/browser/problem/problem-selection.ts +45 -45
  73. package/src/browser/problem/problem-tabbar-decorator.ts +151 -151
  74. package/src/browser/problem/problem-tree-model.spec.ts +189 -189
  75. package/src/browser/problem/problem-tree-model.ts +124 -124
  76. package/src/browser/problem/problem-utils.ts +90 -90
  77. package/src/browser/problem/problem-widget-tab-bar-decorator.ts +55 -55
  78. package/src/browser/problem/problem-widget.tsx +246 -246
  79. package/src/browser/style/index.css +92 -92
  80. package/src/common/marker.ts +53 -53
  81. package/src/common/problem-marker.ts +30 -30
@@ -1,9 +1,9 @@
1
- import { interfaces, Container } from '@theia/core/shared/inversify';
2
- import { MarkerOptions } from '../marker-tree';
3
- import { ProblemWidget } from './problem-widget';
4
- import { TreeProps } from '@theia/core/lib/browser';
5
- export declare const PROBLEM_TREE_PROPS: TreeProps;
6
- export declare const PROBLEM_OPTIONS: MarkerOptions;
7
- export declare function createProblemTreeContainer(parent: interfaces.Container): Container;
8
- export declare function createProblemWidget(parent: interfaces.Container): ProblemWidget;
1
+ import { interfaces, Container } from '@theia/core/shared/inversify';
2
+ import { MarkerOptions } from '../marker-tree';
3
+ import { ProblemWidget } from './problem-widget';
4
+ import { TreeProps } from '@theia/core/lib/browser';
5
+ export declare const PROBLEM_TREE_PROPS: TreeProps;
6
+ export declare const PROBLEM_OPTIONS: MarkerOptions;
7
+ export declare function createProblemTreeContainer(parent: interfaces.Container): Container;
8
+ export declare function createProblemWidget(parent: interfaces.Container): ProblemWidget;
9
9
  //# sourceMappingURL=problem-container.d.ts.map
@@ -1,47 +1,47 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2017 TypeFox and others.
4
- //
5
- // This program and the accompanying materials are made available under the
6
- // terms of the Eclipse Public License v. 2.0 which is available at
7
- // http://www.eclipse.org/legal/epl-2.0.
8
- //
9
- // This Source Code may also be made available under the following Secondary
10
- // Licenses when the conditions for such availability set forth in the Eclipse
11
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
- // with the GNU Classpath Exception which is available at
13
- // https://www.gnu.org/software/classpath/license.html.
14
- //
15
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
- // *****************************************************************************
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.createProblemWidget = exports.createProblemTreeContainer = exports.PROBLEM_OPTIONS = exports.PROBLEM_TREE_PROPS = void 0;
19
- const marker_tree_1 = require("../marker-tree");
20
- const problem_widget_1 = require("./problem-widget");
21
- const problem_tree_model_1 = require("./problem-tree-model");
22
- const browser_1 = require("@theia/core/lib/browser");
23
- const problem_marker_1 = require("../../common/problem-marker");
24
- exports.PROBLEM_TREE_PROPS = {
25
- ...browser_1.defaultTreeProps,
26
- contextMenuPath: [problem_marker_1.PROBLEM_KIND],
27
- globalSelection: true
28
- };
29
- exports.PROBLEM_OPTIONS = {
30
- kind: 'problem'
31
- };
32
- function createProblemTreeContainer(parent) {
33
- const child = (0, browser_1.createTreeContainer)(parent, {
34
- tree: problem_tree_model_1.ProblemTree,
35
- widget: problem_widget_1.ProblemWidget,
36
- model: problem_tree_model_1.ProblemTreeModel,
37
- props: exports.PROBLEM_TREE_PROPS,
38
- });
39
- child.bind(marker_tree_1.MarkerOptions).toConstantValue(exports.PROBLEM_OPTIONS);
40
- return child;
41
- }
42
- exports.createProblemTreeContainer = createProblemTreeContainer;
43
- function createProblemWidget(parent) {
44
- return createProblemTreeContainer(parent).get(problem_widget_1.ProblemWidget);
45
- }
46
- exports.createProblemWidget = createProblemWidget;
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2017 TypeFox and others.
4
+ //
5
+ // This program and the accompanying materials are made available under the
6
+ // terms of the Eclipse Public License v. 2.0 which is available at
7
+ // http://www.eclipse.org/legal/epl-2.0.
8
+ //
9
+ // This Source Code may also be made available under the following Secondary
10
+ // Licenses when the conditions for such availability set forth in the Eclipse
11
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
+ // with the GNU Classpath Exception which is available at
13
+ // https://www.gnu.org/software/classpath/license.html.
14
+ //
15
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
+ // *****************************************************************************
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.createProblemWidget = exports.createProblemTreeContainer = exports.PROBLEM_OPTIONS = exports.PROBLEM_TREE_PROPS = void 0;
19
+ const marker_tree_1 = require("../marker-tree");
20
+ const problem_widget_1 = require("./problem-widget");
21
+ const problem_tree_model_1 = require("./problem-tree-model");
22
+ const browser_1 = require("@theia/core/lib/browser");
23
+ const problem_marker_1 = require("../../common/problem-marker");
24
+ exports.PROBLEM_TREE_PROPS = {
25
+ ...browser_1.defaultTreeProps,
26
+ contextMenuPath: [problem_marker_1.PROBLEM_KIND],
27
+ globalSelection: true
28
+ };
29
+ exports.PROBLEM_OPTIONS = {
30
+ kind: 'problem'
31
+ };
32
+ function createProblemTreeContainer(parent) {
33
+ const child = (0, browser_1.createTreeContainer)(parent, {
34
+ tree: problem_tree_model_1.ProblemTree,
35
+ widget: problem_widget_1.ProblemWidget,
36
+ model: problem_tree_model_1.ProblemTreeModel,
37
+ props: exports.PROBLEM_TREE_PROPS,
38
+ });
39
+ child.bind(marker_tree_1.MarkerOptions).toConstantValue(exports.PROBLEM_OPTIONS);
40
+ return child;
41
+ }
42
+ exports.createProblemTreeContainer = createProblemTreeContainer;
43
+ function createProblemWidget(parent) {
44
+ return createProblemTreeContainer(parent).get(problem_widget_1.ProblemWidget);
45
+ }
46
+ exports.createProblemWidget = createProblemWidget;
47
47
  //# sourceMappingURL=problem-container.js.map
@@ -1,52 +1,52 @@
1
- /// <reference types="lodash" />
2
- import { FrontendApplication, FrontendApplicationContribution, Widget } from '@theia/core/lib/browser';
3
- import { StatusBar } from '@theia/core/lib/browser/status-bar/status-bar';
4
- import { AbstractViewContribution } from '@theia/core/lib/browser/shell/view-contribution';
5
- import { ProblemManager, ProblemStat } from './problem-manager';
6
- import { ProblemWidget } from './problem-widget';
7
- import { MenuPath, MenuModelRegistry } from '@theia/core/lib/common/menu';
8
- import { Command, CommandRegistry } from '@theia/core/lib/common/command';
9
- import { TabBarToolbarContribution, TabBarToolbarRegistry } from '@theia/core/lib/browser/shell/tab-bar-toolbar';
10
- import { SelectionService } from '@theia/core/lib/common/selection-service';
11
- import { ProblemSelection } from './problem-selection';
12
- export declare const PROBLEMS_CONTEXT_MENU: MenuPath;
13
- export declare namespace ProblemsMenu {
14
- const CLIPBOARD: string[];
15
- const PROBLEMS: string[];
16
- }
17
- export declare namespace ProblemsCommands {
18
- const COLLAPSE_ALL: Command;
19
- const COLLAPSE_ALL_TOOLBAR: Command;
20
- const COPY: Command;
21
- const COPY_MESSAGE: Command;
22
- const CLEAR_ALL: Command;
23
- }
24
- export declare class ProblemContribution extends AbstractViewContribution<ProblemWidget> implements FrontendApplicationContribution, TabBarToolbarContribution {
25
- protected readonly problemManager: ProblemManager;
26
- protected readonly statusBar: StatusBar;
27
- protected readonly selectionService: SelectionService;
28
- constructor();
29
- onStart(app: FrontendApplication): void;
30
- initializeLayout(app: FrontendApplication): Promise<void>;
31
- protected updateStatusBarElement: import("lodash").DebouncedFunc<() => void>;
32
- protected setStatusBarElement(problemStat: ProblemStat): void;
33
- /**
34
- * Get the tooltip to be displayed when hovering over the problem statusbar item.
35
- * - Displays `No Problems` when no problems are present.
36
- * - Displays a human-readable label which describes for each type of problem stat properties,
37
- * their overall count and type when any one of these properties has a positive count.
38
- * @param stat the problem stat describing the number of `errors`, `warnings` and `infos`.
39
- *
40
- * @return the tooltip to be displayed in the statusbar.
41
- */
42
- protected getStatusBarTooltip(stat: ProblemStat): string;
43
- registerCommands(commands: CommandRegistry): void;
44
- registerMenus(menus: MenuModelRegistry): void;
45
- registerToolbarItems(toolbarRegistry: TabBarToolbarRegistry): Promise<void>;
46
- protected collapseAllProblems(): Promise<void>;
47
- protected addToClipboard(content: string): void;
48
- protected copy(selection: ProblemSelection): void;
49
- protected copyMessage(selection: ProblemSelection): void;
50
- protected withWidget<T>(widget: Widget | undefined, cb: (problems: ProblemWidget) => T): T | false;
51
- }
1
+ /// <reference types="lodash" />
2
+ import { FrontendApplication, FrontendApplicationContribution, Widget } from '@theia/core/lib/browser';
3
+ import { StatusBar } from '@theia/core/lib/browser/status-bar/status-bar';
4
+ import { AbstractViewContribution } from '@theia/core/lib/browser/shell/view-contribution';
5
+ import { ProblemManager, ProblemStat } from './problem-manager';
6
+ import { ProblemWidget } from './problem-widget';
7
+ import { MenuPath, MenuModelRegistry } from '@theia/core/lib/common/menu';
8
+ import { Command, CommandRegistry } from '@theia/core/lib/common/command';
9
+ import { TabBarToolbarContribution, TabBarToolbarRegistry } from '@theia/core/lib/browser/shell/tab-bar-toolbar';
10
+ import { SelectionService } from '@theia/core/lib/common/selection-service';
11
+ import { ProblemSelection } from './problem-selection';
12
+ export declare const PROBLEMS_CONTEXT_MENU: MenuPath;
13
+ export declare namespace ProblemsMenu {
14
+ const CLIPBOARD: string[];
15
+ const PROBLEMS: string[];
16
+ }
17
+ export declare namespace ProblemsCommands {
18
+ const COLLAPSE_ALL: Command;
19
+ const COLLAPSE_ALL_TOOLBAR: Command;
20
+ const COPY: Command;
21
+ const COPY_MESSAGE: Command;
22
+ const CLEAR_ALL: Command;
23
+ }
24
+ export declare class ProblemContribution extends AbstractViewContribution<ProblemWidget> implements FrontendApplicationContribution, TabBarToolbarContribution {
25
+ protected readonly problemManager: ProblemManager;
26
+ protected readonly statusBar: StatusBar;
27
+ protected readonly selectionService: SelectionService;
28
+ constructor();
29
+ onStart(app: FrontendApplication): void;
30
+ initializeLayout(app: FrontendApplication): Promise<void>;
31
+ protected updateStatusBarElement: import("lodash").DebouncedFunc<() => void>;
32
+ protected setStatusBarElement(problemStat: ProblemStat): void;
33
+ /**
34
+ * Get the tooltip to be displayed when hovering over the problem statusbar item.
35
+ * - Displays `No Problems` when no problems are present.
36
+ * - Displays a human-readable label which describes for each type of problem stat properties,
37
+ * their overall count and type when any one of these properties has a positive count.
38
+ * @param stat the problem stat describing the number of `errors`, `warnings` and `infos`.
39
+ *
40
+ * @return the tooltip to be displayed in the statusbar.
41
+ */
42
+ protected getStatusBarTooltip(stat: ProblemStat): string;
43
+ registerCommands(commands: CommandRegistry): void;
44
+ registerMenus(menus: MenuModelRegistry): void;
45
+ registerToolbarItems(toolbarRegistry: TabBarToolbarRegistry): Promise<void>;
46
+ protected collapseAllProblems(): Promise<void>;
47
+ protected addToClipboard(content: string): void;
48
+ protected copy(selection: ProblemSelection): void;
49
+ protected copyMessage(selection: ProblemSelection): void;
50
+ protected withWidget<T>(widget: Widget | undefined, cb: (problems: ProblemWidget) => T): T | false;
51
+ }
52
52
  //# sourceMappingURL=problem-contribution.d.ts.map