@theia/outline-view 1.48.1 → 1.48.2
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 +30 -30
- package/lib/browser/index.d.ts +2 -2
- package/lib/browser/index.js +20 -20
- package/lib/browser/outline-breadcrumbs-contribution.d.ts +57 -57
- package/lib/browser/outline-breadcrumbs-contribution.js +214 -214
- package/lib/browser/outline-decorator-service.d.ts +13 -13
- package/lib/browser/outline-decorator-service.js +42 -42
- package/lib/browser/outline-view-contribution.d.ts +36 -36
- package/lib/browser/outline-view-contribution.js +125 -125
- package/lib/browser/outline-view-frontend-module.d.ts +4 -4
- package/lib/browser/outline-view-frontend-module.js +68 -68
- package/lib/browser/outline-view-service.d.ts +26 -26
- package/lib/browser/outline-view-service.js +78 -78
- package/lib/browser/outline-view-tree-model.d.ts +19 -19
- package/lib/browser/outline-view-tree-model.js +76 -76
- package/lib/browser/outline-view-widget.d.ts +76 -76
- package/lib/browser/outline-view-widget.js +184 -184
- package/lib/package.spec.js +25 -25
- package/package.json +4 -4
- package/src/browser/index.ts +18 -18
- package/src/browser/outline-breadcrumbs-contribution.tsx +229 -229
- package/src/browser/outline-decorator-service.ts +36 -36
- package/src/browser/outline-view-contribution.ts +132 -132
- package/src/browser/outline-view-frontend-module.ts +84 -84
- package/src/browser/outline-view-service.ts +82 -82
- package/src/browser/outline-view-tree-model.ts +77 -77
- package/src/browser/outline-view-widget.tsx +212 -212
- package/src/browser/styles/index.css +24 -24
- package/src/package.spec.ts +28 -28
|
@@ -1,185 +1,185 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2017-2018 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 OutlineViewWidget_1;
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.OutlineViewWidget = exports.OutlineViewWidgetFactory = exports.OutlineSymbolInformationNode = void 0;
|
|
20
|
-
const tslib_1 = require("tslib");
|
|
21
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
22
|
-
const browser_1 = require("@theia/core/lib/browser");
|
|
23
|
-
const outline_view_tree_model_1 = require("./outline-view-tree-model");
|
|
24
|
-
const core_1 = require("@theia/core");
|
|
25
|
-
const React = require("@theia/core/shared/react");
|
|
26
|
-
const vscode_languageserver_protocol_1 = require("@theia/core/shared/vscode-languageserver-protocol");
|
|
27
|
-
const uri_1 = require("@theia/core/lib/common/uri");
|
|
28
|
-
const nls_1 = require("@theia/core/lib/common/nls");
|
|
29
|
-
/**
|
|
30
|
-
* Collection of outline symbol information node functions.
|
|
31
|
-
*/
|
|
32
|
-
var OutlineSymbolInformationNode;
|
|
33
|
-
(function (OutlineSymbolInformationNode) {
|
|
34
|
-
/**
|
|
35
|
-
* Determine if the given tree node is an `OutlineSymbolInformationNode`.
|
|
36
|
-
* - The tree node is an `OutlineSymbolInformationNode` if:
|
|
37
|
-
* - The node exists.
|
|
38
|
-
* - The node is selectable.
|
|
39
|
-
* - The node contains a defined `iconClass` property.
|
|
40
|
-
* @param node the tree node.
|
|
41
|
-
*
|
|
42
|
-
* @returns `true` if the given node is an `OutlineSymbolInformationNode`.
|
|
43
|
-
*/
|
|
44
|
-
function is(node) {
|
|
45
|
-
return !!node && browser_1.SelectableTreeNode.is(node) && 'iconClass' in node;
|
|
46
|
-
}
|
|
47
|
-
OutlineSymbolInformationNode.is = is;
|
|
48
|
-
function hasRange(node) {
|
|
49
|
-
return (0, core_1.isObject)(node) && vscode_languageserver_protocol_1.Range.is(node.range);
|
|
50
|
-
}
|
|
51
|
-
OutlineSymbolInformationNode.hasRange = hasRange;
|
|
52
|
-
})(OutlineSymbolInformationNode = exports.OutlineSymbolInformationNode || (exports.OutlineSymbolInformationNode = {}));
|
|
53
|
-
exports.OutlineViewWidgetFactory = Symbol('OutlineViewWidgetFactory');
|
|
54
|
-
let OutlineViewWidget = OutlineViewWidget_1 = class OutlineViewWidget extends browser_1.TreeWidget {
|
|
55
|
-
constructor(treeProps, model, contextMenuRenderer) {
|
|
56
|
-
super(treeProps, model, contextMenuRenderer);
|
|
57
|
-
this.model = model;
|
|
58
|
-
this.onDidChangeOpenStateEmitter = new core_1.Emitter();
|
|
59
|
-
this.onDidUpdateEmitter = new core_1.Emitter();
|
|
60
|
-
this.onDidUpdate = this.onDidUpdateEmitter.event;
|
|
61
|
-
this.id = 'outline-view';
|
|
62
|
-
this.title.label = OutlineViewWidget_1.LABEL;
|
|
63
|
-
this.title.caption = OutlineViewWidget_1.LABEL;
|
|
64
|
-
this.title.closable = true;
|
|
65
|
-
this.title.iconClass = (0, browser_1.codicon)('symbol-class');
|
|
66
|
-
this.addClass('theia-outline-view');
|
|
67
|
-
}
|
|
68
|
-
init() {
|
|
69
|
-
super.init();
|
|
70
|
-
this.toDispose.push(this.model.onExpansionChanged(() => this.onDidUpdateEmitter.fire()));
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Set the outline tree with the list of `OutlineSymbolInformationNode`.
|
|
74
|
-
* @param roots the list of `OutlineSymbolInformationNode`.
|
|
75
|
-
*/
|
|
76
|
-
setOutlineTree(roots) {
|
|
77
|
-
// Gather the list of available nodes.
|
|
78
|
-
const nodes = this.reconcileTreeState(roots);
|
|
79
|
-
// Update the model root node, appending the outline symbol information nodes as children.
|
|
80
|
-
this.model.root = this.getRoot(nodes);
|
|
81
|
-
}
|
|
82
|
-
getRoot(children) {
|
|
83
|
-
return {
|
|
84
|
-
id: 'outline-view-root',
|
|
85
|
-
name: OutlineViewWidget_1.LABEL,
|
|
86
|
-
visible: false,
|
|
87
|
-
children,
|
|
88
|
-
parent: undefined
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Reconcile the outline tree state, gathering all available nodes.
|
|
93
|
-
* @param nodes the list of `TreeNode`.
|
|
94
|
-
*
|
|
95
|
-
* @returns the list of tree nodes.
|
|
96
|
-
*/
|
|
97
|
-
reconcileTreeState(nodes) {
|
|
98
|
-
nodes.forEach(node => {
|
|
99
|
-
if (OutlineSymbolInformationNode.is(node)) {
|
|
100
|
-
const treeNode = this.model.getNode(node.id);
|
|
101
|
-
if (treeNode && OutlineSymbolInformationNode.is(treeNode)) {
|
|
102
|
-
treeNode.expanded = node.expanded;
|
|
103
|
-
treeNode.selected = node.selected;
|
|
104
|
-
}
|
|
105
|
-
this.reconcileTreeState(Array.from(node.children));
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
return nodes;
|
|
109
|
-
}
|
|
110
|
-
onAfterHide(msg) {
|
|
111
|
-
super.onAfterHide(msg);
|
|
112
|
-
this.onDidChangeOpenStateEmitter.fire(false);
|
|
113
|
-
}
|
|
114
|
-
onAfterShow(msg) {
|
|
115
|
-
super.onAfterShow(msg);
|
|
116
|
-
this.onDidChangeOpenStateEmitter.fire(true);
|
|
117
|
-
}
|
|
118
|
-
renderIcon(node, props) {
|
|
119
|
-
if (OutlineSymbolInformationNode.is(node)) {
|
|
120
|
-
return React.createElement("div", { className: 'symbol-icon-center codicon codicon-symbol-' + node.iconClass });
|
|
121
|
-
}
|
|
122
|
-
return undefined;
|
|
123
|
-
}
|
|
124
|
-
createNodeAttributes(node, props) {
|
|
125
|
-
const elementAttrs = super.createNodeAttributes(node, props);
|
|
126
|
-
return {
|
|
127
|
-
...elementAttrs,
|
|
128
|
-
title: this.getNodeTooltip(node)
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* Get the tooltip for the given tree node.
|
|
133
|
-
* - The tooltip is discovered when hovering over a tree node.
|
|
134
|
-
* - If available, the tooltip is the concatenation of the node name, and it's type.
|
|
135
|
-
* @param node the tree node.
|
|
136
|
-
*
|
|
137
|
-
* @returns the tooltip for the tree node if available, else `undefined`.
|
|
138
|
-
*/
|
|
139
|
-
getNodeTooltip(node) {
|
|
140
|
-
if (OutlineSymbolInformationNode.is(node)) {
|
|
141
|
-
return node.name + ` (${node.iconClass})`;
|
|
142
|
-
}
|
|
143
|
-
return undefined;
|
|
144
|
-
}
|
|
145
|
-
isExpandable(node) {
|
|
146
|
-
return OutlineSymbolInformationNode.is(node) && node.children.length > 0;
|
|
147
|
-
}
|
|
148
|
-
renderTree(model) {
|
|
149
|
-
if (browser_1.CompositeTreeNode.is(this.model.root) && !this.model.root.children.length) {
|
|
150
|
-
return React.createElement("div", { className: 'theia-widget-noInfo no-outline' }, nls_1.nls.localizeByDefault('The active editor cannot provide outline information.'));
|
|
151
|
-
}
|
|
152
|
-
return super.renderTree(model);
|
|
153
|
-
}
|
|
154
|
-
deflateForStorage(node) {
|
|
155
|
-
const deflated = super.deflateForStorage(node);
|
|
156
|
-
if (core_1.UriSelection.is(node)) {
|
|
157
|
-
deflated.uri = node.uri.toString();
|
|
158
|
-
}
|
|
159
|
-
return deflated;
|
|
160
|
-
}
|
|
161
|
-
inflateFromStorage(node, parent) {
|
|
162
|
-
const inflated = super.inflateFromStorage(node, parent);
|
|
163
|
-
if (node && 'uri' in node && typeof node.uri === 'string') {
|
|
164
|
-
inflated.uri = new uri_1.default(node.uri);
|
|
165
|
-
}
|
|
166
|
-
return inflated;
|
|
167
|
-
}
|
|
168
|
-
};
|
|
169
|
-
OutlineViewWidget.LABEL = nls_1.nls.localizeByDefault('Outline');
|
|
170
|
-
(0, tslib_1.__decorate)([
|
|
171
|
-
(0, inversify_1.postConstruct)(),
|
|
172
|
-
(0, tslib_1.__metadata)("design:type", Function),
|
|
173
|
-
(0, tslib_1.__metadata)("design:paramtypes", []),
|
|
174
|
-
(0, tslib_1.__metadata)("design:returntype", void 0)
|
|
175
|
-
], OutlineViewWidget.prototype, "init", null);
|
|
176
|
-
OutlineViewWidget = OutlineViewWidget_1 = (0, tslib_1.__decorate)([
|
|
177
|
-
(0, inversify_1.injectable)(),
|
|
178
|
-
(0, tslib_1.__param)(0, (0, inversify_1.inject)(browser_1.TreeProps)),
|
|
179
|
-
(0, tslib_1.__param)(1, (0, inversify_1.inject)(outline_view_tree_model_1.OutlineViewTreeModel)),
|
|
180
|
-
(0, tslib_1.__param)(2, (0, inversify_1.inject)(browser_1.ContextMenuRenderer)),
|
|
181
|
-
(0, tslib_1.__metadata)("design:paramtypes", [Object, outline_view_tree_model_1.OutlineViewTreeModel,
|
|
182
|
-
browser_1.ContextMenuRenderer])
|
|
183
|
-
], OutlineViewWidget);
|
|
184
|
-
exports.OutlineViewWidget = OutlineViewWidget;
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2017-2018 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 OutlineViewWidget_1;
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.OutlineViewWidget = exports.OutlineViewWidgetFactory = exports.OutlineSymbolInformationNode = void 0;
|
|
20
|
+
const tslib_1 = require("tslib");
|
|
21
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
22
|
+
const browser_1 = require("@theia/core/lib/browser");
|
|
23
|
+
const outline_view_tree_model_1 = require("./outline-view-tree-model");
|
|
24
|
+
const core_1 = require("@theia/core");
|
|
25
|
+
const React = require("@theia/core/shared/react");
|
|
26
|
+
const vscode_languageserver_protocol_1 = require("@theia/core/shared/vscode-languageserver-protocol");
|
|
27
|
+
const uri_1 = require("@theia/core/lib/common/uri");
|
|
28
|
+
const nls_1 = require("@theia/core/lib/common/nls");
|
|
29
|
+
/**
|
|
30
|
+
* Collection of outline symbol information node functions.
|
|
31
|
+
*/
|
|
32
|
+
var OutlineSymbolInformationNode;
|
|
33
|
+
(function (OutlineSymbolInformationNode) {
|
|
34
|
+
/**
|
|
35
|
+
* Determine if the given tree node is an `OutlineSymbolInformationNode`.
|
|
36
|
+
* - The tree node is an `OutlineSymbolInformationNode` if:
|
|
37
|
+
* - The node exists.
|
|
38
|
+
* - The node is selectable.
|
|
39
|
+
* - The node contains a defined `iconClass` property.
|
|
40
|
+
* @param node the tree node.
|
|
41
|
+
*
|
|
42
|
+
* @returns `true` if the given node is an `OutlineSymbolInformationNode`.
|
|
43
|
+
*/
|
|
44
|
+
function is(node) {
|
|
45
|
+
return !!node && browser_1.SelectableTreeNode.is(node) && 'iconClass' in node;
|
|
46
|
+
}
|
|
47
|
+
OutlineSymbolInformationNode.is = is;
|
|
48
|
+
function hasRange(node) {
|
|
49
|
+
return (0, core_1.isObject)(node) && vscode_languageserver_protocol_1.Range.is(node.range);
|
|
50
|
+
}
|
|
51
|
+
OutlineSymbolInformationNode.hasRange = hasRange;
|
|
52
|
+
})(OutlineSymbolInformationNode = exports.OutlineSymbolInformationNode || (exports.OutlineSymbolInformationNode = {}));
|
|
53
|
+
exports.OutlineViewWidgetFactory = Symbol('OutlineViewWidgetFactory');
|
|
54
|
+
let OutlineViewWidget = OutlineViewWidget_1 = class OutlineViewWidget extends browser_1.TreeWidget {
|
|
55
|
+
constructor(treeProps, model, contextMenuRenderer) {
|
|
56
|
+
super(treeProps, model, contextMenuRenderer);
|
|
57
|
+
this.model = model;
|
|
58
|
+
this.onDidChangeOpenStateEmitter = new core_1.Emitter();
|
|
59
|
+
this.onDidUpdateEmitter = new core_1.Emitter();
|
|
60
|
+
this.onDidUpdate = this.onDidUpdateEmitter.event;
|
|
61
|
+
this.id = 'outline-view';
|
|
62
|
+
this.title.label = OutlineViewWidget_1.LABEL;
|
|
63
|
+
this.title.caption = OutlineViewWidget_1.LABEL;
|
|
64
|
+
this.title.closable = true;
|
|
65
|
+
this.title.iconClass = (0, browser_1.codicon)('symbol-class');
|
|
66
|
+
this.addClass('theia-outline-view');
|
|
67
|
+
}
|
|
68
|
+
init() {
|
|
69
|
+
super.init();
|
|
70
|
+
this.toDispose.push(this.model.onExpansionChanged(() => this.onDidUpdateEmitter.fire()));
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Set the outline tree with the list of `OutlineSymbolInformationNode`.
|
|
74
|
+
* @param roots the list of `OutlineSymbolInformationNode`.
|
|
75
|
+
*/
|
|
76
|
+
setOutlineTree(roots) {
|
|
77
|
+
// Gather the list of available nodes.
|
|
78
|
+
const nodes = this.reconcileTreeState(roots);
|
|
79
|
+
// Update the model root node, appending the outline symbol information nodes as children.
|
|
80
|
+
this.model.root = this.getRoot(nodes);
|
|
81
|
+
}
|
|
82
|
+
getRoot(children) {
|
|
83
|
+
return {
|
|
84
|
+
id: 'outline-view-root',
|
|
85
|
+
name: OutlineViewWidget_1.LABEL,
|
|
86
|
+
visible: false,
|
|
87
|
+
children,
|
|
88
|
+
parent: undefined
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Reconcile the outline tree state, gathering all available nodes.
|
|
93
|
+
* @param nodes the list of `TreeNode`.
|
|
94
|
+
*
|
|
95
|
+
* @returns the list of tree nodes.
|
|
96
|
+
*/
|
|
97
|
+
reconcileTreeState(nodes) {
|
|
98
|
+
nodes.forEach(node => {
|
|
99
|
+
if (OutlineSymbolInformationNode.is(node)) {
|
|
100
|
+
const treeNode = this.model.getNode(node.id);
|
|
101
|
+
if (treeNode && OutlineSymbolInformationNode.is(treeNode)) {
|
|
102
|
+
treeNode.expanded = node.expanded;
|
|
103
|
+
treeNode.selected = node.selected;
|
|
104
|
+
}
|
|
105
|
+
this.reconcileTreeState(Array.from(node.children));
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
return nodes;
|
|
109
|
+
}
|
|
110
|
+
onAfterHide(msg) {
|
|
111
|
+
super.onAfterHide(msg);
|
|
112
|
+
this.onDidChangeOpenStateEmitter.fire(false);
|
|
113
|
+
}
|
|
114
|
+
onAfterShow(msg) {
|
|
115
|
+
super.onAfterShow(msg);
|
|
116
|
+
this.onDidChangeOpenStateEmitter.fire(true);
|
|
117
|
+
}
|
|
118
|
+
renderIcon(node, props) {
|
|
119
|
+
if (OutlineSymbolInformationNode.is(node)) {
|
|
120
|
+
return React.createElement("div", { className: 'symbol-icon-center codicon codicon-symbol-' + node.iconClass });
|
|
121
|
+
}
|
|
122
|
+
return undefined;
|
|
123
|
+
}
|
|
124
|
+
createNodeAttributes(node, props) {
|
|
125
|
+
const elementAttrs = super.createNodeAttributes(node, props);
|
|
126
|
+
return {
|
|
127
|
+
...elementAttrs,
|
|
128
|
+
title: this.getNodeTooltip(node)
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Get the tooltip for the given tree node.
|
|
133
|
+
* - The tooltip is discovered when hovering over a tree node.
|
|
134
|
+
* - If available, the tooltip is the concatenation of the node name, and it's type.
|
|
135
|
+
* @param node the tree node.
|
|
136
|
+
*
|
|
137
|
+
* @returns the tooltip for the tree node if available, else `undefined`.
|
|
138
|
+
*/
|
|
139
|
+
getNodeTooltip(node) {
|
|
140
|
+
if (OutlineSymbolInformationNode.is(node)) {
|
|
141
|
+
return node.name + ` (${node.iconClass})`;
|
|
142
|
+
}
|
|
143
|
+
return undefined;
|
|
144
|
+
}
|
|
145
|
+
isExpandable(node) {
|
|
146
|
+
return OutlineSymbolInformationNode.is(node) && node.children.length > 0;
|
|
147
|
+
}
|
|
148
|
+
renderTree(model) {
|
|
149
|
+
if (browser_1.CompositeTreeNode.is(this.model.root) && !this.model.root.children.length) {
|
|
150
|
+
return React.createElement("div", { className: 'theia-widget-noInfo no-outline' }, nls_1.nls.localizeByDefault('The active editor cannot provide outline information.'));
|
|
151
|
+
}
|
|
152
|
+
return super.renderTree(model);
|
|
153
|
+
}
|
|
154
|
+
deflateForStorage(node) {
|
|
155
|
+
const deflated = super.deflateForStorage(node);
|
|
156
|
+
if (core_1.UriSelection.is(node)) {
|
|
157
|
+
deflated.uri = node.uri.toString();
|
|
158
|
+
}
|
|
159
|
+
return deflated;
|
|
160
|
+
}
|
|
161
|
+
inflateFromStorage(node, parent) {
|
|
162
|
+
const inflated = super.inflateFromStorage(node, parent);
|
|
163
|
+
if (node && 'uri' in node && typeof node.uri === 'string') {
|
|
164
|
+
inflated.uri = new uri_1.default(node.uri);
|
|
165
|
+
}
|
|
166
|
+
return inflated;
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
OutlineViewWidget.LABEL = nls_1.nls.localizeByDefault('Outline');
|
|
170
|
+
(0, tslib_1.__decorate)([
|
|
171
|
+
(0, inversify_1.postConstruct)(),
|
|
172
|
+
(0, tslib_1.__metadata)("design:type", Function),
|
|
173
|
+
(0, tslib_1.__metadata)("design:paramtypes", []),
|
|
174
|
+
(0, tslib_1.__metadata)("design:returntype", void 0)
|
|
175
|
+
], OutlineViewWidget.prototype, "init", null);
|
|
176
|
+
OutlineViewWidget = OutlineViewWidget_1 = (0, tslib_1.__decorate)([
|
|
177
|
+
(0, inversify_1.injectable)(),
|
|
178
|
+
(0, tslib_1.__param)(0, (0, inversify_1.inject)(browser_1.TreeProps)),
|
|
179
|
+
(0, tslib_1.__param)(1, (0, inversify_1.inject)(outline_view_tree_model_1.OutlineViewTreeModel)),
|
|
180
|
+
(0, tslib_1.__param)(2, (0, inversify_1.inject)(browser_1.ContextMenuRenderer)),
|
|
181
|
+
(0, tslib_1.__metadata)("design:paramtypes", [Object, outline_view_tree_model_1.OutlineViewTreeModel,
|
|
182
|
+
browser_1.ContextMenuRenderer])
|
|
183
|
+
], OutlineViewWidget);
|
|
184
|
+
exports.OutlineViewWidget = OutlineViewWidget;
|
|
185
185
|
//# sourceMappingURL=outline-view-widget.js.map
|
package/lib/package.spec.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
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
|
-
/* note: this bogus test file is required so that
|
|
17
|
-
we are able to run mocha unit tests on this
|
|
18
|
-
package, without having any actual unit tests in it.
|
|
19
|
-
This way a coverage report will be generated,
|
|
20
|
-
showing 0% coverage, instead of no report.
|
|
21
|
-
This file can be removed once we have real unit
|
|
22
|
-
tests in place. */
|
|
23
|
-
describe('outline view package', () => {
|
|
24
|
-
it('should support code coverage statistics', () => true);
|
|
25
|
-
});
|
|
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
|
+
/* note: this bogus test file is required so that
|
|
17
|
+
we are able to run mocha unit tests on this
|
|
18
|
+
package, without having any actual unit tests in it.
|
|
19
|
+
This way a coverage report will be generated,
|
|
20
|
+
showing 0% coverage, instead of no report.
|
|
21
|
+
This file can be removed once we have real unit
|
|
22
|
+
tests in place. */
|
|
23
|
+
describe('outline view package', () => {
|
|
24
|
+
it('should support code coverage statistics', () => true);
|
|
25
|
+
});
|
|
26
26
|
//# sourceMappingURL=package.spec.js.map
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/outline-view",
|
|
3
|
-
"version": "1.48.
|
|
3
|
+
"version": "1.48.2",
|
|
4
4
|
"description": "Theia - Outline View Extension",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@theia/core": "1.48.
|
|
6
|
+
"@theia/core": "1.48.2",
|
|
7
7
|
"tslib": "^2.6.2"
|
|
8
8
|
},
|
|
9
9
|
"publishConfig": {
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"watch": "theiaext watch"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@theia/ext-scripts": "1.48.
|
|
42
|
+
"@theia/ext-scripts": "1.48.2"
|
|
43
43
|
},
|
|
44
44
|
"nyc": {
|
|
45
45
|
"extends": "../../configs/nyc.json"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "0e9583d043dde303de7a0f86f68439659f8827b0"
|
|
48
48
|
}
|
package/src/browser/index.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
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
|
-
export * from './outline-view-widget';
|
|
18
|
-
export * from './outline-view-frontend-module';
|
|
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
|
+
export * from './outline-view-widget';
|
|
18
|
+
export * from './outline-view-frontend-module';
|