@theia/callhierarchy 1.34.2 → 1.34.3
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/LICENSE +641 -641
- package/README.md +30 -30
- package/lib/browser/callhierarchy-contribution.d.ts +25 -25
- package/lib/browser/callhierarchy-contribution.js +124 -124
- package/lib/browser/callhierarchy-frontend-module.d.ts +4 -4
- package/lib/browser/callhierarchy-frontend-module.js +34 -34
- package/lib/browser/callhierarchy-service.d.ts +28 -28
- package/lib/browser/callhierarchy-service.js +85 -85
- package/lib/browser/callhierarchy-tree/callhierarchy-tree-container.d.ts +3 -3
- package/lib/browser/callhierarchy-tree/callhierarchy-tree-container.js +34 -34
- package/lib/browser/callhierarchy-tree/callhierarchy-tree-model.d.ts +14 -14
- package/lib/browser/callhierarchy-tree/callhierarchy-tree-model.js +82 -82
- package/lib/browser/callhierarchy-tree/callhierarchy-tree-widget.d.ts +30 -30
- package/lib/browser/callhierarchy-tree/callhierarchy-tree-widget.js +208 -208
- package/lib/browser/callhierarchy-tree/callhierarchy-tree.d.ts +25 -25
- package/lib/browser/callhierarchy-tree/callhierarchy-tree.js +114 -114
- package/lib/browser/callhierarchy-tree/index.d.ts +4 -4
- package/lib/browser/callhierarchy-tree/index.js +31 -31
- package/lib/browser/callhierarchy.d.ts +25 -25
- package/lib/browser/callhierarchy.js +22 -22
- package/lib/browser/index.d.ts +4 -4
- package/lib/browser/index.js +31 -31
- package/lib/browser/utils.d.ts +11 -11
- package/lib/browser/utils.js +101 -101
- package/lib/package.spec.js +25 -25
- package/package.json +5 -5
- package/src/browser/callhierarchy-contribution.ts +103 -103
- package/src/browser/callhierarchy-frontend-module.ts +37 -37
- package/src/browser/callhierarchy-service.ts +89 -89
- package/src/browser/callhierarchy-tree/callhierarchy-tree-container.ts +35 -35
- package/src/browser/callhierarchy-tree/callhierarchy-tree-model.ts +71 -71
- package/src/browser/callhierarchy-tree/callhierarchy-tree-widget.tsx +223 -223
- package/src/browser/callhierarchy-tree/callhierarchy-tree.ts +119 -119
- package/src/browser/callhierarchy-tree/index.ts +20 -20
- package/src/browser/callhierarchy.ts +47 -47
- package/src/browser/index.ts +20 -20
- package/src/browser/style/index.css +63 -63
- package/src/browser/utils.ts +102 -102
- package/src/package.spec.ts +28 -28
|
@@ -1,119 +1,119 @@
|
|
|
1
|
-
// *****************************************************************************
|
|
2
|
-
// Copyright (C) 2018 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 WITH Classpath-exception-2.0
|
|
15
|
-
// *****************************************************************************
|
|
16
|
-
|
|
17
|
-
import { injectable } from '@theia/core/shared/inversify';
|
|
18
|
-
import { TreeNode, CompositeTreeNode, SelectableTreeNode, ExpandableTreeNode, TreeImpl } from '@theia/core/lib/browser';
|
|
19
|
-
import { CallHierarchyItem, CallHierarchyIncomingCall } from '../callhierarchy';
|
|
20
|
-
import { CallHierarchyService } from '../callhierarchy-service';
|
|
21
|
-
import { Md5 } from 'ts-md5';
|
|
22
|
-
import { CancellationTokenSource } from '@theia/core/lib/common/cancellation';
|
|
23
|
-
|
|
24
|
-
@injectable()
|
|
25
|
-
export class CallHierarchyTree extends TreeImpl {
|
|
26
|
-
|
|
27
|
-
protected _callHierarchyService: CallHierarchyService | undefined;
|
|
28
|
-
|
|
29
|
-
set callHierarchyService(callHierarchyService: CallHierarchyService | undefined) {
|
|
30
|
-
this._callHierarchyService = callHierarchyService;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
get callHierarchyService(): CallHierarchyService | undefined {
|
|
34
|
-
return this._callHierarchyService;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
override async resolveChildren(parent: CompositeTreeNode): Promise<TreeNode[]> {
|
|
38
|
-
if (!this.callHierarchyService) {
|
|
39
|
-
return Promise.resolve([]);
|
|
40
|
-
}
|
|
41
|
-
if (parent.children.length > 0) {
|
|
42
|
-
return Promise.resolve([...parent.children]);
|
|
43
|
-
}
|
|
44
|
-
let definition: CallHierarchyItem | undefined;
|
|
45
|
-
if (ItemNode.is(parent)) {
|
|
46
|
-
definition = parent.definition;
|
|
47
|
-
} else if (CallerNode.is(parent)) {
|
|
48
|
-
definition = parent.caller.from;
|
|
49
|
-
}
|
|
50
|
-
if (definition) {
|
|
51
|
-
const cancellationSource = new CancellationTokenSource();
|
|
52
|
-
const callers = await this.callHierarchyService.getCallers(definition, cancellationSource.token);
|
|
53
|
-
if (!callers) {
|
|
54
|
-
return Promise.resolve([]);
|
|
55
|
-
}
|
|
56
|
-
return this.toNodes(callers, parent);
|
|
57
|
-
}
|
|
58
|
-
return Promise.resolve([]);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
protected toNodes(callers: CallHierarchyIncomingCall[], parent: CompositeTreeNode): TreeNode[] {
|
|
62
|
-
return callers.map(caller => this.toNode(caller, parent));
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
protected toNode(caller: CallHierarchyIncomingCall, parent: CompositeTreeNode | undefined): TreeNode {
|
|
66
|
-
return CallerNode.create(caller, parent as TreeNode);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export interface ItemNode extends SelectableTreeNode, ExpandableTreeNode {
|
|
71
|
-
definition: CallHierarchyItem;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export namespace ItemNode {
|
|
75
|
-
export function is(node: TreeNode | undefined): node is ItemNode {
|
|
76
|
-
return !!node && 'definition' in node;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export function create(definition: CallHierarchyItem, parent: TreeNode | undefined): ItemNode {
|
|
80
|
-
const name = definition.name;
|
|
81
|
-
const id = createId(definition, parent);
|
|
82
|
-
return <ItemNode>{
|
|
83
|
-
id, definition, name, parent,
|
|
84
|
-
visible: true,
|
|
85
|
-
children: [],
|
|
86
|
-
expanded: false,
|
|
87
|
-
selected: false,
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export interface CallerNode extends SelectableTreeNode, ExpandableTreeNode {
|
|
93
|
-
caller: CallHierarchyIncomingCall;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export namespace CallerNode {
|
|
97
|
-
export function is(node: TreeNode | undefined): node is CallerNode {
|
|
98
|
-
return !!node && 'caller' in node;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export function create(caller: CallHierarchyIncomingCall, parent: TreeNode | undefined): CallerNode {
|
|
102
|
-
const callerDefinition = caller.from;
|
|
103
|
-
const name = callerDefinition.name;
|
|
104
|
-
const id = createId(callerDefinition, parent);
|
|
105
|
-
return <CallerNode>{
|
|
106
|
-
id, caller, name, parent,
|
|
107
|
-
visible: true,
|
|
108
|
-
children: [],
|
|
109
|
-
expanded: false,
|
|
110
|
-
selected: false,
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
function createId(definition: CallHierarchyItem, parent: TreeNode | undefined): string {
|
|
116
|
-
const idPrefix = (parent) ? parent.id + '/' : '';
|
|
117
|
-
const id = idPrefix + Md5.hashStr(JSON.stringify(definition));
|
|
118
|
-
return id;
|
|
119
|
-
}
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2018 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 WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
|
+
|
|
17
|
+
import { injectable } from '@theia/core/shared/inversify';
|
|
18
|
+
import { TreeNode, CompositeTreeNode, SelectableTreeNode, ExpandableTreeNode, TreeImpl } from '@theia/core/lib/browser';
|
|
19
|
+
import { CallHierarchyItem, CallHierarchyIncomingCall } from '../callhierarchy';
|
|
20
|
+
import { CallHierarchyService } from '../callhierarchy-service';
|
|
21
|
+
import { Md5 } from 'ts-md5';
|
|
22
|
+
import { CancellationTokenSource } from '@theia/core/lib/common/cancellation';
|
|
23
|
+
|
|
24
|
+
@injectable()
|
|
25
|
+
export class CallHierarchyTree extends TreeImpl {
|
|
26
|
+
|
|
27
|
+
protected _callHierarchyService: CallHierarchyService | undefined;
|
|
28
|
+
|
|
29
|
+
set callHierarchyService(callHierarchyService: CallHierarchyService | undefined) {
|
|
30
|
+
this._callHierarchyService = callHierarchyService;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
get callHierarchyService(): CallHierarchyService | undefined {
|
|
34
|
+
return this._callHierarchyService;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
override async resolveChildren(parent: CompositeTreeNode): Promise<TreeNode[]> {
|
|
38
|
+
if (!this.callHierarchyService) {
|
|
39
|
+
return Promise.resolve([]);
|
|
40
|
+
}
|
|
41
|
+
if (parent.children.length > 0) {
|
|
42
|
+
return Promise.resolve([...parent.children]);
|
|
43
|
+
}
|
|
44
|
+
let definition: CallHierarchyItem | undefined;
|
|
45
|
+
if (ItemNode.is(parent)) {
|
|
46
|
+
definition = parent.definition;
|
|
47
|
+
} else if (CallerNode.is(parent)) {
|
|
48
|
+
definition = parent.caller.from;
|
|
49
|
+
}
|
|
50
|
+
if (definition) {
|
|
51
|
+
const cancellationSource = new CancellationTokenSource();
|
|
52
|
+
const callers = await this.callHierarchyService.getCallers(definition, cancellationSource.token);
|
|
53
|
+
if (!callers) {
|
|
54
|
+
return Promise.resolve([]);
|
|
55
|
+
}
|
|
56
|
+
return this.toNodes(callers, parent);
|
|
57
|
+
}
|
|
58
|
+
return Promise.resolve([]);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
protected toNodes(callers: CallHierarchyIncomingCall[], parent: CompositeTreeNode): TreeNode[] {
|
|
62
|
+
return callers.map(caller => this.toNode(caller, parent));
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
protected toNode(caller: CallHierarchyIncomingCall, parent: CompositeTreeNode | undefined): TreeNode {
|
|
66
|
+
return CallerNode.create(caller, parent as TreeNode);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export interface ItemNode extends SelectableTreeNode, ExpandableTreeNode {
|
|
71
|
+
definition: CallHierarchyItem;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export namespace ItemNode {
|
|
75
|
+
export function is(node: TreeNode | undefined): node is ItemNode {
|
|
76
|
+
return !!node && 'definition' in node;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function create(definition: CallHierarchyItem, parent: TreeNode | undefined): ItemNode {
|
|
80
|
+
const name = definition.name;
|
|
81
|
+
const id = createId(definition, parent);
|
|
82
|
+
return <ItemNode>{
|
|
83
|
+
id, definition, name, parent,
|
|
84
|
+
visible: true,
|
|
85
|
+
children: [],
|
|
86
|
+
expanded: false,
|
|
87
|
+
selected: false,
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export interface CallerNode extends SelectableTreeNode, ExpandableTreeNode {
|
|
93
|
+
caller: CallHierarchyIncomingCall;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export namespace CallerNode {
|
|
97
|
+
export function is(node: TreeNode | undefined): node is CallerNode {
|
|
98
|
+
return !!node && 'caller' in node;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function create(caller: CallHierarchyIncomingCall, parent: TreeNode | undefined): CallerNode {
|
|
102
|
+
const callerDefinition = caller.from;
|
|
103
|
+
const name = callerDefinition.name;
|
|
104
|
+
const id = createId(callerDefinition, parent);
|
|
105
|
+
return <CallerNode>{
|
|
106
|
+
id, caller, name, parent,
|
|
107
|
+
visible: true,
|
|
108
|
+
children: [],
|
|
109
|
+
expanded: false,
|
|
110
|
+
selected: false,
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
function createId(definition: CallHierarchyItem, parent: TreeNode | undefined): string {
|
|
116
|
+
const idPrefix = (parent) ? parent.id + '/' : '';
|
|
117
|
+
const id = idPrefix + Md5.hashStr(JSON.stringify(definition));
|
|
118
|
+
return id;
|
|
119
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
// *****************************************************************************
|
|
2
|
-
// Copyright (C) 2018 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 WITH Classpath-exception-2.0
|
|
15
|
-
// *****************************************************************************
|
|
16
|
-
|
|
17
|
-
export * from './callhierarchy-tree';
|
|
18
|
-
export * from './callhierarchy-tree-model';
|
|
19
|
-
export * from './callhierarchy-tree-widget';
|
|
20
|
-
export * from './callhierarchy-tree-container';
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2018 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 WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
|
+
|
|
17
|
+
export * from './callhierarchy-tree';
|
|
18
|
+
export * from './callhierarchy-tree-model';
|
|
19
|
+
export * from './callhierarchy-tree-widget';
|
|
20
|
+
export * from './callhierarchy-tree-container';
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
// *****************************************************************************
|
|
2
|
-
// Copyright (C) 2018 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 WITH Classpath-exception-2.0
|
|
15
|
-
// *****************************************************************************
|
|
16
|
-
|
|
17
|
-
import { nls } from '@theia/core';
|
|
18
|
-
import { UriComponents } from '@theia/core/lib/common/uri';
|
|
19
|
-
import { Range, SymbolKind, SymbolTag } from '@theia/core/shared/vscode-languageserver-protocol';
|
|
20
|
-
|
|
21
|
-
export const CALLHIERARCHY_ID = 'callhierarchy';
|
|
22
|
-
export const CALL_HIERARCHY_TOGGLE_COMMAND_ID = 'callhierarchy:toggle';
|
|
23
|
-
export const CALL_HIERARCHY_LABEL = nls.localizeByDefault('Call Hierarchy');
|
|
24
|
-
|
|
25
|
-
export interface CallHierarchyItem {
|
|
26
|
-
_sessionId?: string;
|
|
27
|
-
_itemId?: string;
|
|
28
|
-
|
|
29
|
-
kind: SymbolKind;
|
|
30
|
-
name: string;
|
|
31
|
-
detail?: string;
|
|
32
|
-
uri: UriComponents;
|
|
33
|
-
range: Range;
|
|
34
|
-
selectionRange: Range;
|
|
35
|
-
tags?: readonly SymbolTag[];
|
|
36
|
-
data?: unknown;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export interface CallHierarchyIncomingCall {
|
|
40
|
-
from: CallHierarchyItem;
|
|
41
|
-
fromRanges: Range[];
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export interface CallHierarchyOutgoingCall {
|
|
45
|
-
to: CallHierarchyItem;
|
|
46
|
-
fromRanges: Range[];
|
|
47
|
-
}
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2018 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 WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
|
+
|
|
17
|
+
import { nls } from '@theia/core';
|
|
18
|
+
import { UriComponents } from '@theia/core/lib/common/uri';
|
|
19
|
+
import { Range, SymbolKind, SymbolTag } from '@theia/core/shared/vscode-languageserver-protocol';
|
|
20
|
+
|
|
21
|
+
export const CALLHIERARCHY_ID = 'callhierarchy';
|
|
22
|
+
export const CALL_HIERARCHY_TOGGLE_COMMAND_ID = 'callhierarchy:toggle';
|
|
23
|
+
export const CALL_HIERARCHY_LABEL = nls.localizeByDefault('Call Hierarchy');
|
|
24
|
+
|
|
25
|
+
export interface CallHierarchyItem {
|
|
26
|
+
_sessionId?: string;
|
|
27
|
+
_itemId?: string;
|
|
28
|
+
|
|
29
|
+
kind: SymbolKind;
|
|
30
|
+
name: string;
|
|
31
|
+
detail?: string;
|
|
32
|
+
uri: UriComponents;
|
|
33
|
+
range: Range;
|
|
34
|
+
selectionRange: Range;
|
|
35
|
+
tags?: readonly SymbolTag[];
|
|
36
|
+
data?: unknown;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface CallHierarchyIncomingCall {
|
|
40
|
+
from: CallHierarchyItem;
|
|
41
|
+
fromRanges: Range[];
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface CallHierarchyOutgoingCall {
|
|
45
|
+
to: CallHierarchyItem;
|
|
46
|
+
fromRanges: Range[];
|
|
47
|
+
}
|
package/src/browser/index.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
// *****************************************************************************
|
|
2
|
-
// Copyright (C) 2018 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 WITH Classpath-exception-2.0
|
|
15
|
-
// *****************************************************************************
|
|
16
|
-
|
|
17
|
-
export * from './callhierarchy';
|
|
18
|
-
export * from './callhierarchy-contribution';
|
|
19
|
-
export * from './callhierarchy-frontend-module';
|
|
20
|
-
export * from './callhierarchy-service';
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2018 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 WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
|
+
|
|
17
|
+
export * from './callhierarchy';
|
|
18
|
+
export * from './callhierarchy-contribution';
|
|
19
|
+
export * from './callhierarchy-frontend-module';
|
|
20
|
+
export * from './callhierarchy-service';
|
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
/********************************************************************************
|
|
2
|
-
* Copyright (C) 2018 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 WITH Classpath-exception-2.0
|
|
15
|
-
********************************************************************************/
|
|
16
|
-
|
|
17
|
-
.theia-CallHierarchyTree {
|
|
18
|
-
font-size: var(--theia-ui-font-size1);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.theia-CallHierarchyTree .theia-TreeNode {
|
|
22
|
-
width: 100%;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.theia-CallHierarchyTree .theia-ExpansionToggle {
|
|
26
|
-
min-width: 9px;
|
|
27
|
-
padding-right: 4px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.theia-CallHierarchyTree .definitionNode {
|
|
31
|
-
display: flex;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.theia-CallHierarchyTree .definitionNode {
|
|
35
|
-
width: calc(100% - 32px);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.theia-CallHierarchyTree .definitionNode div {
|
|
39
|
-
margin-right: 5px;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.theia-CallHierarchyTree .definitionNode .symbol {
|
|
43
|
-
padding-right: 4px;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.theia-CallHierarchyTree .definitionNode .referenceCount {
|
|
47
|
-
color: var(--theia-badge-background);
|
|
48
|
-
padding-right: 4px;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.theia-CallHierarchyTree .definitionNode .container {
|
|
52
|
-
color: var(--theia-descriptionForeground);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.theia-CallHierarchyTree .definitionNode-content {
|
|
56
|
-
white-space: nowrap;
|
|
57
|
-
overflow: hidden;
|
|
58
|
-
text-overflow: ellipsis;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.theia-CallHierarchyTree .definitionNode.deprecatedDefinition .definitionNode-content {
|
|
62
|
-
text-decoration: line-through;
|
|
63
|
-
}
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (C) 2018 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 WITH Classpath-exception-2.0
|
|
15
|
+
********************************************************************************/
|
|
16
|
+
|
|
17
|
+
.theia-CallHierarchyTree {
|
|
18
|
+
font-size: var(--theia-ui-font-size1);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.theia-CallHierarchyTree .theia-TreeNode {
|
|
22
|
+
width: 100%;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.theia-CallHierarchyTree .theia-ExpansionToggle {
|
|
26
|
+
min-width: 9px;
|
|
27
|
+
padding-right: 4px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.theia-CallHierarchyTree .definitionNode {
|
|
31
|
+
display: flex;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.theia-CallHierarchyTree .definitionNode {
|
|
35
|
+
width: calc(100% - 32px);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.theia-CallHierarchyTree .definitionNode div {
|
|
39
|
+
margin-right: 5px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.theia-CallHierarchyTree .definitionNode .symbol {
|
|
43
|
+
padding-right: 4px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.theia-CallHierarchyTree .definitionNode .referenceCount {
|
|
47
|
+
color: var(--theia-badge-background);
|
|
48
|
+
padding-right: 4px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.theia-CallHierarchyTree .definitionNode .container {
|
|
52
|
+
color: var(--theia-descriptionForeground);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.theia-CallHierarchyTree .definitionNode-content {
|
|
56
|
+
white-space: nowrap;
|
|
57
|
+
overflow: hidden;
|
|
58
|
+
text-overflow: ellipsis;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.theia-CallHierarchyTree .definitionNode.deprecatedDefinition .definitionNode-content {
|
|
62
|
+
text-decoration: line-through;
|
|
63
|
+
}
|