@theia/typehierarchy 1.45.1 → 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 (36) hide show
  1. package/README.md +30 -30
  2. package/lib/browser/index.d.ts +4 -4
  3. package/lib/browser/index.js +31 -31
  4. package/lib/browser/tree/typehierarchy-tree-container.d.ts +3 -3
  5. package/lib/browser/tree/typehierarchy-tree-container.js +34 -34
  6. package/lib/browser/tree/typehierarchy-tree-model.d.ts +16 -16
  7. package/lib/browser/tree/typehierarchy-tree-model.js +92 -92
  8. package/lib/browser/tree/typehierarchy-tree-widget.d.ts +36 -36
  9. package/lib/browser/tree/typehierarchy-tree-widget.js +119 -119
  10. package/lib/browser/tree/typehierarchy-tree.d.ts +38 -38
  11. package/lib/browser/tree/typehierarchy-tree.js +174 -174
  12. package/lib/browser/tree/typehierarchy-tree.js.map +1 -1
  13. package/lib/browser/typehierarchy-contribution.d.ts +49 -49
  14. package/lib/browser/typehierarchy-contribution.js +172 -172
  15. package/lib/browser/typehierarchy-frontend-module.d.ts +4 -4
  16. package/lib/browser/typehierarchy-frontend-module.js +37 -37
  17. package/lib/browser/typehierarchy-provider.d.ts +104 -104
  18. package/lib/browser/typehierarchy-provider.js +46 -46
  19. package/lib/browser/typehierarchy-service.d.ts +28 -28
  20. package/lib/browser/typehierarchy-service.js +85 -85
  21. package/lib/browser/typehierarchy.d.ts +13 -13
  22. package/lib/browser/typehierarchy.js +17 -17
  23. package/lib/package.spec.js +25 -25
  24. package/package.json +5 -7
  25. package/src/browser/index.ts +20 -20
  26. package/src/browser/style/index.css +28 -28
  27. package/src/browser/tree/typehierarchy-tree-container.ts +35 -35
  28. package/src/browser/tree/typehierarchy-tree-model.ts +83 -83
  29. package/src/browser/tree/typehierarchy-tree-widget.tsx +108 -108
  30. package/src/browser/tree/typehierarchy-tree.ts +190 -190
  31. package/src/browser/typehierarchy-contribution.ts +175 -175
  32. package/src/browser/typehierarchy-frontend-module.ts +38 -38
  33. package/src/browser/typehierarchy-provider.ts +163 -163
  34. package/src/browser/typehierarchy-service.ts +89 -89
  35. package/src/browser/typehierarchy.ts +31 -31
  36. package/src/package.spec.ts +29 -29
package/README.md CHANGED
@@ -1,30 +1,30 @@
1
- <div align='center'>
2
-
3
- <br />
4
-
5
- <img src='https://raw.githubusercontent.com/eclipse-theia/theia/master/logo/theia.svg?sanitize=true' alt='theia-ext-logo' width='100px' />
6
-
7
- <h2>ECLIPSE THEIA - TYPEHIERARCHY EXTENSION</h2>
8
-
9
- <hr />
10
-
11
- </div>
12
-
13
- ## Description
14
-
15
- The `@theia/typehierarchy` extension includes support for `super` and `subtype` information for document symbols.
16
-
17
- ## Additional Information
18
-
19
- - [API documentation for `@theia/typehierarchy`](https://eclipse-theia.github.io/theia/docs/next/modules/typehierarchy.html)
20
- - [Theia - GitHub](https://github.com/eclipse-theia/theia)
21
- - [Theia - Website](https://theia-ide.org/)
22
-
23
- ## License
24
-
25
- - [Eclipse Public License 2.0](http://www.eclipse.org/legal/epl-2.0/)
26
- - [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)
27
-
28
- ## Trademark
29
- "Theia" is a trademark of the Eclipse Foundation
30
- https://www.eclipse.org/theia
1
+ <div align='center'>
2
+
3
+ <br />
4
+
5
+ <img src='https://raw.githubusercontent.com/eclipse-theia/theia/master/logo/theia.svg?sanitize=true' alt='theia-ext-logo' width='100px' />
6
+
7
+ <h2>ECLIPSE THEIA - TYPEHIERARCHY EXTENSION</h2>
8
+
9
+ <hr />
10
+
11
+ </div>
12
+
13
+ ## Description
14
+
15
+ The `@theia/typehierarchy` extension includes support for `super` and `subtype` information for document symbols.
16
+
17
+ ## Additional Information
18
+
19
+ - [API documentation for `@theia/typehierarchy`](https://eclipse-theia.github.io/theia/docs/next/modules/typehierarchy.html)
20
+ - [Theia - GitHub](https://github.com/eclipse-theia/theia)
21
+ - [Theia - Website](https://theia-ide.org/)
22
+
23
+ ## License
24
+
25
+ - [Eclipse Public License 2.0](http://www.eclipse.org/legal/epl-2.0/)
26
+ - [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)
27
+
28
+ ## Trademark
29
+ "Theia" is a trademark of the Eclipse Foundation
30
+ https://www.eclipse.org/theia
@@ -1,5 +1,5 @@
1
- export * from './typehierarchy';
2
- export * from './typehierarchy-contribution';
3
- export * from './typehierarchy-frontend-module';
4
- export * from './typehierarchy-service';
1
+ export * from './typehierarchy';
2
+ export * from './typehierarchy-contribution';
3
+ export * from './typehierarchy-frontend-module';
4
+ export * from './typehierarchy-service';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1,32 +1,32 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2022 Ericsson 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
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
- if (k2 === undefined) k2 = k;
19
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
20
- }) : (function(o, m, k, k2) {
21
- if (k2 === undefined) k2 = k;
22
- o[k2] = m[k];
23
- }));
24
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
25
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
26
- };
27
- Object.defineProperty(exports, "__esModule", { value: true });
28
- __exportStar(require("./typehierarchy"), exports);
29
- __exportStar(require("./typehierarchy-contribution"), exports);
30
- __exportStar(require("./typehierarchy-frontend-module"), exports);
31
- __exportStar(require("./typehierarchy-service"), exports);
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2022 Ericsson 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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
25
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ __exportStar(require("./typehierarchy"), exports);
29
+ __exportStar(require("./typehierarchy-contribution"), exports);
30
+ __exportStar(require("./typehierarchy-frontend-module"), exports);
31
+ __exportStar(require("./typehierarchy-service"), exports);
32
32
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import { interfaces } from '@theia/core/shared/inversify';
2
- import { TypeHierarchyTreeWidget } from './typehierarchy-tree-widget';
3
- export declare function createHierarchyTreeWidget(parent: interfaces.Container): TypeHierarchyTreeWidget;
1
+ import { interfaces } from '@theia/core/shared/inversify';
2
+ import { TypeHierarchyTreeWidget } from './typehierarchy-tree-widget';
3
+ export declare function createHierarchyTreeWidget(parent: interfaces.Container): TypeHierarchyTreeWidget;
4
4
  //# sourceMappingURL=typehierarchy-tree-container.d.ts.map
@@ -1,35 +1,35 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2019 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.createHierarchyTreeWidget = void 0;
19
- const tree_1 = require("@theia/core/lib/browser/tree");
20
- const typehierarchy_tree_1 = require("./typehierarchy-tree");
21
- const typehierarchy_tree_model_1 = require("./typehierarchy-tree-model");
22
- const typehierarchy_tree_widget_1 = require("./typehierarchy-tree-widget");
23
- function createHierarchyTreeContainer(parent) {
24
- const child = (0, tree_1.createTreeContainer)(parent, {
25
- tree: typehierarchy_tree_1.TypeHierarchyTree,
26
- model: typehierarchy_tree_model_1.TypeHierarchyTreeModel,
27
- widget: typehierarchy_tree_widget_1.TypeHierarchyTreeWidget
28
- });
29
- return child;
30
- }
31
- function createHierarchyTreeWidget(parent) {
32
- return createHierarchyTreeContainer(parent).get(typehierarchy_tree_widget_1.TypeHierarchyTreeWidget);
33
- }
34
- exports.createHierarchyTreeWidget = createHierarchyTreeWidget;
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2019 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.createHierarchyTreeWidget = void 0;
19
+ const tree_1 = require("@theia/core/lib/browser/tree");
20
+ const typehierarchy_tree_1 = require("./typehierarchy-tree");
21
+ const typehierarchy_tree_model_1 = require("./typehierarchy-tree-model");
22
+ const typehierarchy_tree_widget_1 = require("./typehierarchy-tree-widget");
23
+ function createHierarchyTreeContainer(parent) {
24
+ const child = (0, tree_1.createTreeContainer)(parent, {
25
+ tree: typehierarchy_tree_1.TypeHierarchyTree,
26
+ model: typehierarchy_tree_model_1.TypeHierarchyTreeModel,
27
+ widget: typehierarchy_tree_widget_1.TypeHierarchyTreeWidget
28
+ });
29
+ return child;
30
+ }
31
+ function createHierarchyTreeWidget(parent) {
32
+ return createHierarchyTreeContainer(parent).get(typehierarchy_tree_widget_1.TypeHierarchyTreeWidget);
33
+ }
34
+ exports.createHierarchyTreeWidget = createHierarchyTreeWidget;
35
35
  //# sourceMappingURL=typehierarchy-tree-container.js.map
@@ -1,17 +1,17 @@
1
- import { TreeNode } from '@theia/core/lib/browser/tree/tree';
2
- import { TreeModelImpl } from '@theia/core/lib/browser/tree/tree-model';
3
- import { TypeHierarchyRegistry } from '../typehierarchy-provider';
4
- import { TypeHierarchyTree } from './typehierarchy-tree';
5
- export declare class TypeHierarchyTreeModel extends TreeModelImpl {
6
- protected readonly registry: TypeHierarchyRegistry;
7
- protected doOpenNode(node: TreeNode): void;
8
- /**
9
- * Initializes the tree by calculating and setting a new tree root node.
10
- */
11
- initialize(options: TypeHierarchyTree.InitOptions): Promise<void>;
12
- /**
13
- * If the tree root is set, it resets it with the inverse type hierarchy direction.
14
- */
15
- flipDirection(): Promise<void>;
16
- }
1
+ import { TreeNode } from '@theia/core/lib/browser/tree/tree';
2
+ import { TreeModelImpl } from '@theia/core/lib/browser/tree/tree-model';
3
+ import { TypeHierarchyRegistry } from '../typehierarchy-provider';
4
+ import { TypeHierarchyTree } from './typehierarchy-tree';
5
+ export declare class TypeHierarchyTreeModel extends TreeModelImpl {
6
+ protected readonly registry: TypeHierarchyRegistry;
7
+ protected doOpenNode(node: TreeNode): void;
8
+ /**
9
+ * Initializes the tree by calculating and setting a new tree root node.
10
+ */
11
+ initialize(options: TypeHierarchyTree.InitOptions): Promise<void>;
12
+ /**
13
+ * If the tree root is set, it resets it with the inverse type hierarchy direction.
14
+ */
15
+ flipDirection(): Promise<void>;
16
+ }
17
17
  //# sourceMappingURL=typehierarchy-tree-model.d.ts.map
@@ -1,93 +1,93 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2019 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
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
18
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
21
- return c > 3 && r && Object.defineProperty(target, key, r), r;
22
- };
23
- var __metadata = (this && this.__metadata) || function (k, v) {
24
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
25
- };
26
- Object.defineProperty(exports, "__esModule", { value: true });
27
- exports.TypeHierarchyTreeModel = void 0;
28
- const inversify_1 = require("@theia/core/shared/inversify");
29
- const tree_model_1 = require("@theia/core/lib/browser/tree/tree-model");
30
- const typehierarchy_provider_1 = require("../typehierarchy-provider");
31
- const typehierarchy_tree_1 = require("./typehierarchy-tree");
32
- let TypeHierarchyTreeModel = class TypeHierarchyTreeModel extends tree_model_1.TreeModelImpl {
33
- doOpenNode(node) {
34
- // do nothing (in particular do not expand the node)
35
- }
36
- /**
37
- * Initializes the tree by calculating and setting a new tree root node.
38
- */
39
- async initialize(options) {
40
- this.tree.root = undefined;
41
- this.tree.provider = undefined;
42
- const { location, languageId, direction } = options;
43
- if (languageId && location) {
44
- const provider = await this.registry.get(languageId);
45
- if (provider) {
46
- const params = {
47
- textDocument: {
48
- uri: location.uri
49
- },
50
- position: location.range.start,
51
- direction,
52
- resolve: 1
53
- };
54
- const symbol = await provider.get(params);
55
- if (symbol) {
56
- const root = typehierarchy_tree_1.TypeHierarchyTree.RootNode.create(symbol, direction);
57
- root.expanded = true;
58
- this.tree.root = root;
59
- this.tree.provider = provider;
60
- }
61
- }
62
- }
63
- }
64
- /**
65
- * If the tree root is set, it resets it with the inverse type hierarchy direction.
66
- */
67
- async flipDirection() {
68
- const { root } = this.tree;
69
- const service = this.tree.provider;
70
- if (typehierarchy_tree_1.TypeHierarchyTree.RootNode.is(root) && !!service) {
71
- const { direction, item } = root;
72
- const { uri, selectionRange } = item;
73
- const location = {
74
- uri,
75
- range: selectionRange
76
- };
77
- this.initialize({
78
- direction: direction === 0 /* Children */ ? 1 /* Parents */ : 0 /* Children */,
79
- location,
80
- languageId: service.languageId
81
- });
82
- }
83
- }
84
- };
85
- __decorate([
86
- (0, inversify_1.inject)(typehierarchy_provider_1.TypeHierarchyRegistry),
87
- __metadata("design:type", typehierarchy_provider_1.TypeHierarchyRegistry)
88
- ], TypeHierarchyTreeModel.prototype, "registry", void 0);
89
- TypeHierarchyTreeModel = __decorate([
90
- (0, inversify_1.injectable)()
91
- ], TypeHierarchyTreeModel);
92
- exports.TypeHierarchyTreeModel = TypeHierarchyTreeModel;
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2019 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
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
18
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
21
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
22
+ };
23
+ var __metadata = (this && this.__metadata) || function (k, v) {
24
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
25
+ };
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.TypeHierarchyTreeModel = void 0;
28
+ const inversify_1 = require("@theia/core/shared/inversify");
29
+ const tree_model_1 = require("@theia/core/lib/browser/tree/tree-model");
30
+ const typehierarchy_provider_1 = require("../typehierarchy-provider");
31
+ const typehierarchy_tree_1 = require("./typehierarchy-tree");
32
+ let TypeHierarchyTreeModel = class TypeHierarchyTreeModel extends tree_model_1.TreeModelImpl {
33
+ doOpenNode(node) {
34
+ // do nothing (in particular do not expand the node)
35
+ }
36
+ /**
37
+ * Initializes the tree by calculating and setting a new tree root node.
38
+ */
39
+ async initialize(options) {
40
+ this.tree.root = undefined;
41
+ this.tree.provider = undefined;
42
+ const { location, languageId, direction } = options;
43
+ if (languageId && location) {
44
+ const provider = await this.registry.get(languageId);
45
+ if (provider) {
46
+ const params = {
47
+ textDocument: {
48
+ uri: location.uri
49
+ },
50
+ position: location.range.start,
51
+ direction,
52
+ resolve: 1
53
+ };
54
+ const symbol = await provider.get(params);
55
+ if (symbol) {
56
+ const root = typehierarchy_tree_1.TypeHierarchyTree.RootNode.create(symbol, direction);
57
+ root.expanded = true;
58
+ this.tree.root = root;
59
+ this.tree.provider = provider;
60
+ }
61
+ }
62
+ }
63
+ }
64
+ /**
65
+ * If the tree root is set, it resets it with the inverse type hierarchy direction.
66
+ */
67
+ async flipDirection() {
68
+ const { root } = this.tree;
69
+ const service = this.tree.provider;
70
+ if (typehierarchy_tree_1.TypeHierarchyTree.RootNode.is(root) && !!service) {
71
+ const { direction, item } = root;
72
+ const { uri, selectionRange } = item;
73
+ const location = {
74
+ uri,
75
+ range: selectionRange
76
+ };
77
+ this.initialize({
78
+ direction: direction === 0 /* Children */ ? 1 /* Parents */ : 0 /* Children */,
79
+ location,
80
+ languageId: service.languageId
81
+ });
82
+ }
83
+ }
84
+ };
85
+ __decorate([
86
+ (0, inversify_1.inject)(typehierarchy_provider_1.TypeHierarchyRegistry),
87
+ __metadata("design:type", typehierarchy_provider_1.TypeHierarchyRegistry)
88
+ ], TypeHierarchyTreeModel.prototype, "registry", void 0);
89
+ TypeHierarchyTreeModel = __decorate([
90
+ (0, inversify_1.injectable)()
91
+ ], TypeHierarchyTreeModel);
92
+ exports.TypeHierarchyTreeModel = TypeHierarchyTreeModel;
93
93
  //# sourceMappingURL=typehierarchy-tree-model.js.map
@@ -1,37 +1,37 @@
1
- /// <reference types="react" />
2
- import * as React from '@theia/core/shared/react';
3
- import { TreeNode } from '@theia/core/lib/browser/tree/tree';
4
- import { EditorManager } from '@theia/editor/lib/browser/editor-manager';
5
- import { ContextMenuRenderer } from '@theia/core/lib/browser/context-menu-renderer';
6
- import { TreeWidget, TreeProps } from '@theia/core/lib/browser/tree/tree-widget';
7
- import { TypeHierarchyTreeModel } from './typehierarchy-tree-model';
8
- import { TypeHierarchyTree } from './typehierarchy-tree';
9
- export declare class TypeHierarchyTreeWidget extends TreeWidget {
10
- readonly model: TypeHierarchyTreeModel;
11
- protected readonly icons: Map<number, string>;
12
- readonly editorManager: EditorManager;
13
- constructor(props: TreeProps, model: TypeHierarchyTreeModel, contextMenuRenderer: ContextMenuRenderer);
14
- /**
15
- * Initializes the widget with the new input.
16
- */
17
- initialize(options: TypeHierarchyTree.InitOptions): Promise<void>;
18
- /**
19
- * See: `TreeWidget#renderIcon`.
20
- */
21
- protected renderIcon(node: TreeNode): React.ReactNode;
22
- /**
23
- * Opens up the node in the editor. On demand (`keepFocus`) it reveals the location in the editor.
24
- */
25
- protected openEditor(node: TreeNode, keepFocus?: boolean): Promise<void>;
26
- }
27
- export declare namespace TypeHierarchyTreeWidget {
28
- const WIDGET_ID = "theia-typehierarchy";
29
- const WIDGET_LABEL: string;
30
- /**
31
- * CSS styles for the `Type Hierarchy` widget.
32
- */
33
- namespace Styles {
34
- const TYPE_HIERARCHY_TREE_CLASS = "theia-type-hierarchy-tree";
35
- }
36
- }
1
+ /// <reference types="react" />
2
+ import * as React from '@theia/core/shared/react';
3
+ import { TreeNode } from '@theia/core/lib/browser/tree/tree';
4
+ import { EditorManager } from '@theia/editor/lib/browser/editor-manager';
5
+ import { ContextMenuRenderer } from '@theia/core/lib/browser/context-menu-renderer';
6
+ import { TreeWidget, TreeProps } from '@theia/core/lib/browser/tree/tree-widget';
7
+ import { TypeHierarchyTreeModel } from './typehierarchy-tree-model';
8
+ import { TypeHierarchyTree } from './typehierarchy-tree';
9
+ export declare class TypeHierarchyTreeWidget extends TreeWidget {
10
+ readonly model: TypeHierarchyTreeModel;
11
+ protected readonly icons: Map<number, string>;
12
+ readonly editorManager: EditorManager;
13
+ constructor(props: TreeProps, model: TypeHierarchyTreeModel, contextMenuRenderer: ContextMenuRenderer);
14
+ /**
15
+ * Initializes the widget with the new input.
16
+ */
17
+ initialize(options: TypeHierarchyTree.InitOptions): Promise<void>;
18
+ /**
19
+ * See: `TreeWidget#renderIcon`.
20
+ */
21
+ protected renderIcon(node: TreeNode): React.ReactNode;
22
+ /**
23
+ * Opens up the node in the editor. On demand (`keepFocus`) it reveals the location in the editor.
24
+ */
25
+ protected openEditor(node: TreeNode, keepFocus?: boolean): Promise<void>;
26
+ }
27
+ export declare namespace TypeHierarchyTreeWidget {
28
+ const WIDGET_ID = "theia-typehierarchy";
29
+ const WIDGET_LABEL: string;
30
+ /**
31
+ * CSS styles for the `Type Hierarchy` widget.
32
+ */
33
+ namespace Styles {
34
+ const TYPE_HIERARCHY_TREE_CLASS = "theia-type-hierarchy-tree";
35
+ }
36
+ }
37
37
  //# sourceMappingURL=typehierarchy-tree-widget.d.ts.map