@theia/outline-view 1.67.0-next.13 → 1.67.0-next.56
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 +1 -1
- package/package.json +3 -3
- package/lib/browser/index.d.ts +0 -3
- package/lib/browser/index.d.ts.map +0 -1
- package/lib/browser/index.js +0 -21
- package/lib/browser/index.js.map +0 -1
- package/lib/browser/outline-breadcrumbs-contribution.d.ts +0 -59
- package/lib/browser/outline-breadcrumbs-contribution.d.ts.map +0 -1
- package/lib/browser/outline-breadcrumbs-contribution.js +0 -220
- package/lib/browser/outline-breadcrumbs-contribution.js.map +0 -1
- package/lib/browser/outline-decorator-service.d.ts +0 -14
- package/lib/browser/outline-decorator-service.d.ts.map +0 -1
- package/lib/browser/outline-decorator-service.js +0 -43
- package/lib/browser/outline-decorator-service.js.map +0 -1
- package/lib/browser/outline-view-contribution.d.ts +0 -37
- package/lib/browser/outline-view-contribution.d.ts.map +0 -1
- package/lib/browser/outline-view-contribution.js +0 -126
- package/lib/browser/outline-view-contribution.js.map +0 -1
- package/lib/browser/outline-view-frontend-module.d.ts +0 -5
- package/lib/browser/outline-view-frontend-module.d.ts.map +0 -1
- package/lib/browser/outline-view-frontend-module.js +0 -69
- package/lib/browser/outline-view-frontend-module.js.map +0 -1
- package/lib/browser/outline-view-service.d.ts +0 -30
- package/lib/browser/outline-view-service.d.ts.map +0 -1
- package/lib/browser/outline-view-service.js +0 -86
- package/lib/browser/outline-view-service.js.map +0 -1
- package/lib/browser/outline-view-tree-model.d.ts +0 -20
- package/lib/browser/outline-view-tree-model.d.ts.map +0 -1
- package/lib/browser/outline-view-tree-model.js +0 -77
- package/lib/browser/outline-view-tree-model.js.map +0 -1
- package/lib/browser/outline-view-widget.d.ts +0 -77
- package/lib/browser/outline-view-widget.d.ts.map +0 -1
- package/lib/browser/outline-view-widget.js +0 -185
- package/lib/browser/outline-view-widget.js.map +0 -1
- package/lib/package.spec.d.ts +0 -1
- package/lib/package.spec.d.ts.map +0 -1
- package/lib/package.spec.js +0 -26
- package/lib/package.spec.js.map +0 -1
|
@@ -1,69 +0,0 @@
|
|
|
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
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
19
|
-
const outline_view_service_1 = require("./outline-view-service");
|
|
20
|
-
const outline_view_contribution_1 = require("./outline-view-contribution");
|
|
21
|
-
const widget_manager_1 = require("@theia/core/lib/browser/widget-manager");
|
|
22
|
-
const browser_1 = require("@theia/core/lib/browser");
|
|
23
|
-
const tab_bar_toolbar_1 = require("@theia/core/lib/browser/shell/tab-bar-toolbar");
|
|
24
|
-
const outline_view_widget_1 = require("./outline-view-widget");
|
|
25
|
-
require("../../src/browser/styles/index.css");
|
|
26
|
-
const contribution_provider_1 = require("@theia/core/lib/common/contribution-provider");
|
|
27
|
-
const outline_decorator_service_1 = require("./outline-decorator-service");
|
|
28
|
-
const outline_view_tree_model_1 = require("./outline-view-tree-model");
|
|
29
|
-
const outline_breadcrumbs_contribution_1 = require("./outline-breadcrumbs-contribution");
|
|
30
|
-
exports.default = new inversify_1.ContainerModule(bind => {
|
|
31
|
-
bind(outline_view_widget_1.OutlineViewWidgetFactory).toFactory(ctx => () => createOutlineViewWidget(ctx.container));
|
|
32
|
-
bind(outline_breadcrumbs_contribution_1.BreadcrumbPopupOutlineViewFactory).toFactory(({ container }) => () => {
|
|
33
|
-
const child = createOutlineViewWidgetContainer(container);
|
|
34
|
-
child.rebind(outline_view_widget_1.OutlineViewWidget).to(outline_breadcrumbs_contribution_1.BreadcrumbPopupOutlineView);
|
|
35
|
-
child.rebind(browser_1.TreeProps).toConstantValue({ ...browser_1.defaultTreeProps, expandOnlyOnExpansionToggleClick: true, search: false, virtualized: false });
|
|
36
|
-
return child.get(outline_view_widget_1.OutlineViewWidget);
|
|
37
|
-
});
|
|
38
|
-
bind(outline_view_service_1.OutlineViewService).toSelf().inSingletonScope();
|
|
39
|
-
bind(widget_manager_1.WidgetFactory).toService(outline_view_service_1.OutlineViewService);
|
|
40
|
-
(0, browser_1.bindViewContribution)(bind, outline_view_contribution_1.OutlineViewContribution);
|
|
41
|
-
bind(browser_1.FrontendApplicationContribution).toService(outline_view_contribution_1.OutlineViewContribution);
|
|
42
|
-
bind(tab_bar_toolbar_1.TabBarToolbarContribution).toService(outline_view_contribution_1.OutlineViewContribution);
|
|
43
|
-
bind(outline_breadcrumbs_contribution_1.OutlineBreadcrumbsContribution).toSelf().inSingletonScope();
|
|
44
|
-
bind(browser_1.BreadcrumbsContribution).toService(outline_breadcrumbs_contribution_1.OutlineBreadcrumbsContribution);
|
|
45
|
-
});
|
|
46
|
-
function createOutlineViewWidgetContainer(parent) {
|
|
47
|
-
const child = (0, browser_1.createTreeContainer)(parent, {
|
|
48
|
-
props: { expandOnlyOnExpansionToggleClick: true, search: true },
|
|
49
|
-
widget: outline_view_widget_1.OutlineViewWidget,
|
|
50
|
-
model: outline_view_tree_model_1.OutlineViewTreeModel,
|
|
51
|
-
decoratorService: outline_decorator_service_1.OutlineDecoratorService,
|
|
52
|
-
});
|
|
53
|
-
(0, contribution_provider_1.bindContributionProvider)(child, outline_decorator_service_1.OutlineTreeDecorator);
|
|
54
|
-
return child;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Create an `OutlineViewWidget`.
|
|
58
|
-
* - The creation of the `OutlineViewWidget` includes:
|
|
59
|
-
* - The creation of the tree widget itself with it's own customized props.
|
|
60
|
-
* - The binding of necessary components into the container.
|
|
61
|
-
* @param parent the Inversify container.
|
|
62
|
-
*
|
|
63
|
-
* @returns the `OutlineViewWidget`.
|
|
64
|
-
*/
|
|
65
|
-
function createOutlineViewWidget(parent) {
|
|
66
|
-
const child = createOutlineViewWidgetContainer(parent);
|
|
67
|
-
return child.get(outline_view_widget_1.OutlineViewWidget);
|
|
68
|
-
}
|
|
69
|
-
//# sourceMappingURL=outline-view-frontend-module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"outline-view-frontend-module.js","sourceRoot":"","sources":["../../src/browser/outline-view-frontend-module.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;AAEhF,4DAA2E;AAC3E,iEAA4D;AAC5D,2EAAsE;AACtE,2EAAuE;AACvE,qDAOiC;AACjC,mFAA0F;AAC1F,+DAAoF;AACpF,8CAA4C;AAC5C,wFAAwF;AACxF,2EAA4F;AAC5F,uEAAiE;AACjE,yFAAmJ;AAEnJ,kBAAe,IAAI,2BAAe,CAAC,IAAI,CAAC,EAAE;IACtC,IAAI,CAAC,8CAAwB,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAC3C,GAAG,EAAE,CAAC,uBAAuB,CAAC,GAAG,CAAC,SAAS,CAAC,CAC/C,CAAC;IAEF,IAAI,CAAC,oE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BAAgB,EAAE,mDAAuB;KAC5C,CAAC,CAAC;IACH,IAAA,gDAAwB,EAAC,KAAK,EAAE,gDAAoB,CAAC,CAAC;IACtD,OAAO,KAAK,CAAC;AACjB,CAAC;AAED;;;;;;;;GAQG;AACH,SAAS,uBAAuB,CAAC,MAA4B;IACzD,MAAM,KAAK,GAAG,gCAAgC,CAAC,MAAM,CAAC,CAAC;IAEvD,OAAO,KAAK,CAAC,GAAG,CAAC,uCAAiB,CAAC,CAAC;AACxC,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Event, Emitter } from '@theia/core';
|
|
2
|
-
import { WidgetFactory } from '@theia/core/lib/browser';
|
|
3
|
-
import { OutlineViewWidget, OutlineViewWidgetFactory, OutlineSymbolInformationNode } from './outline-view-widget';
|
|
4
|
-
import { Widget } from '@theia/core/shared/@lumino/widgets';
|
|
5
|
-
export declare class OutlineViewService implements WidgetFactory {
|
|
6
|
-
protected factory: OutlineViewWidgetFactory;
|
|
7
|
-
id: string;
|
|
8
|
-
protected widget?: OutlineViewWidget;
|
|
9
|
-
protected readonly onDidChangeOutlineEmitter: Emitter<OutlineSymbolInformationNode[]>;
|
|
10
|
-
protected readonly onDidChangeOpenStateEmitter: Emitter<boolean>;
|
|
11
|
-
protected readonly onDidSelectEmitter: Emitter<OutlineSymbolInformationNode>;
|
|
12
|
-
protected readonly onDidOpenEmitter: Emitter<OutlineSymbolInformationNode>;
|
|
13
|
-
protected readonly onDidTapNodeEmitter: Emitter<OutlineSymbolInformationNode>;
|
|
14
|
-
constructor(factory: OutlineViewWidgetFactory);
|
|
15
|
-
get onDidSelect(): Event<OutlineSymbolInformationNode>;
|
|
16
|
-
get onDidOpen(): Event<OutlineSymbolInformationNode>;
|
|
17
|
-
get onDidChangeOutline(): Event<OutlineSymbolInformationNode[]>;
|
|
18
|
-
get onDidChangeOpenState(): Event<boolean>;
|
|
19
|
-
get onDidTapNode(): Event<OutlineSymbolInformationNode>;
|
|
20
|
-
get open(): boolean;
|
|
21
|
-
didTapNode(node: OutlineSymbolInformationNode): void;
|
|
22
|
-
/**
|
|
23
|
-
* Publish the collection of outline view symbols.
|
|
24
|
-
* - Publishing includes setting the `OutlineViewWidget` tree with symbol information.
|
|
25
|
-
* @param roots the list of outline symbol information nodes.
|
|
26
|
-
*/
|
|
27
|
-
publish(roots: OutlineSymbolInformationNode[]): void;
|
|
28
|
-
createWidget(): Promise<Widget>;
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=outline-view-service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"outline-view-service.d.ts","sourceRoot":"","sources":["../../src/browser/outline-view-service.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAwB,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AAClH,OAAO,EAAE,MAAM,EAAE,MAAM,oCAAoC,CAAC;AAE5D,qBACa,kBAAmB,YAAW,aAAa;IAWN,SAAS,CAAC,OAAO,EAAE,wBAAwB;IATzF,EAAE,SAAkB;IAEpB,SAAS,CAAC,MAAM,CAAC,EAAE,iBAAiB,CAAC;IACrC,SAAS,CAAC,QAAQ,CAAC,yBAAyB,0CAAiD;IAC7F,SAAS,CAAC,QAAQ,CAAC,2BAA2B,mBAA0B;IACxE,SAAS,CAAC,QAAQ,CAAC,kBAAkB,wCAA+C;IACpF,SAAS,CAAC,QAAQ,CAAC,gBAAgB,wCAA+C;IAClF,SAAS,CAAC,QAAQ,CAAC,mBAAmB,wCAA+C;gBAE7B,OAAO,EAAE,wBAAwB;IAEzF,IAAI,WAAW,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAErD;IAED,IAAI,SAAS,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAEnD;IAED,IAAI,kBAAkB,IAAI,KAAK,CAAC,4BAA4B,EAAE,CAAC,CAE9D;IAED,IAAI,oBAAoB,IAAI,KAAK,CAAC,OAAO,CAAC,CAEzC;IAED,IAAI,YAAY,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAEtD;IAED,IAAI,IAAI,IAAI,OAAO,CAElB;IAED,UAAU,CAAC,IAAI,EAAE,4BAA4B,GAAG,IAAI;IAIpD;;;;OAIG;IACH,OAAO,CAAC,KAAK,EAAE,4BAA4B,EAAE,GAAG,IAAI;IASpD,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC;CAYlC"}
|
|
@@ -1,86 +0,0 @@
|
|
|
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.OutlineViewService = void 0;
|
|
19
|
-
const tslib_1 = require("tslib");
|
|
20
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
21
|
-
const core_1 = require("@theia/core");
|
|
22
|
-
const outline_view_widget_1 = require("./outline-view-widget");
|
|
23
|
-
let OutlineViewService = class OutlineViewService {
|
|
24
|
-
constructor(factory) {
|
|
25
|
-
this.factory = factory;
|
|
26
|
-
this.id = 'outline-view';
|
|
27
|
-
this.onDidChangeOutlineEmitter = new core_1.Emitter();
|
|
28
|
-
this.onDidChangeOpenStateEmitter = new core_1.Emitter();
|
|
29
|
-
this.onDidSelectEmitter = new core_1.Emitter();
|
|
30
|
-
this.onDidOpenEmitter = new core_1.Emitter();
|
|
31
|
-
this.onDidTapNodeEmitter = new core_1.Emitter();
|
|
32
|
-
}
|
|
33
|
-
get onDidSelect() {
|
|
34
|
-
return this.onDidSelectEmitter.event;
|
|
35
|
-
}
|
|
36
|
-
get onDidOpen() {
|
|
37
|
-
return this.onDidOpenEmitter.event;
|
|
38
|
-
}
|
|
39
|
-
get onDidChangeOutline() {
|
|
40
|
-
return this.onDidChangeOutlineEmitter.event;
|
|
41
|
-
}
|
|
42
|
-
get onDidChangeOpenState() {
|
|
43
|
-
return this.onDidChangeOpenStateEmitter.event;
|
|
44
|
-
}
|
|
45
|
-
get onDidTapNode() {
|
|
46
|
-
return this.onDidTapNodeEmitter.event;
|
|
47
|
-
}
|
|
48
|
-
get open() {
|
|
49
|
-
return this.widget !== undefined && this.widget.isVisible;
|
|
50
|
-
}
|
|
51
|
-
didTapNode(node) {
|
|
52
|
-
this.onDidTapNodeEmitter.fire(node);
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Publish the collection of outline view symbols.
|
|
56
|
-
* - Publishing includes setting the `OutlineViewWidget` tree with symbol information.
|
|
57
|
-
* @param roots the list of outline symbol information nodes.
|
|
58
|
-
*/
|
|
59
|
-
publish(roots) {
|
|
60
|
-
if (this.widget) {
|
|
61
|
-
this.widget.setOutlineTree(roots);
|
|
62
|
-
}
|
|
63
|
-
// onDidChangeOutline needs to be fired even when the outline view widget is closed
|
|
64
|
-
// in order to update breadcrumbs.
|
|
65
|
-
this.onDidChangeOutlineEmitter.fire(roots);
|
|
66
|
-
}
|
|
67
|
-
createWidget() {
|
|
68
|
-
this.widget = this.factory();
|
|
69
|
-
const disposables = new core_1.DisposableCollection();
|
|
70
|
-
disposables.push(this.widget.onDidChangeOpenStateEmitter.event(open => this.onDidChangeOpenStateEmitter.fire(open)));
|
|
71
|
-
disposables.push(this.widget.model.onOpenNode(node => this.onDidOpenEmitter.fire(node)));
|
|
72
|
-
disposables.push(this.widget.model.onSelectionChanged(selection => this.onDidSelectEmitter.fire(selection[0])));
|
|
73
|
-
this.widget.disposed.connect(() => {
|
|
74
|
-
this.widget = undefined;
|
|
75
|
-
disposables.dispose();
|
|
76
|
-
});
|
|
77
|
-
return Promise.resolve(this.widget);
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
exports.OutlineViewService = OutlineViewService;
|
|
81
|
-
exports.OutlineViewService = OutlineViewService = tslib_1.__decorate([
|
|
82
|
-
(0, inversify_1.injectable)(),
|
|
83
|
-
tslib_1.__param(0, (0, inversify_1.inject)(outline_view_widget_1.OutlineViewWidgetFactory)),
|
|
84
|
-
tslib_1.__metadata("design:paramtypes", [Function])
|
|
85
|
-
], OutlineViewService);
|
|
86
|
-
//# sourceMappingURL=outline-view-service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"outline-view-service.js","sourceRoot":"","sources":["../../src/browser/outline-view-service.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAEhF,4DAAkE;AAClE,sCAAmE;AAEnE,+DAAkH;AAI3G,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAW3B,YAA8C,OAA2C;QAAjC,YAAO,GAAP,OAAO,CAA0B;QATzF,OAAE,GAAG,cAAc,CAAC;QAGD,8BAAyB,GAAG,IAAI,cAAO,EAAkC,CAAC;QAC1E,gCAA2B,GAAG,IAAI,cAAO,EAAW,CAAC;QACrD,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EAAE,CAAC,IAAI,CAAC,2BAA2B,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACrH,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAoC,CAAC,CAAC,CAAC,CAAC;QACzH,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,kBAAkB,CAAC,SAAS,CAAC,EAAE,CAAC,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAiC,CAAC,CAAC,CAAC,CAAC;QAChJ,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,EAAE;YAC9B,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;YACxB,WAAW,CAAC,OAAO,EAAE,CAAC;QAC1B,CAAC,CAAC,CAAC;QACH,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACxC,CAAC;CACJ,CAAA;AAnEY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,sBAAU,GAAE;IAYI,mBAAA,IAAA,kBAAM,EAAC,8CAAwB,CAAC,CAAA;;GAXpC,kBAAkB,CAmE9B"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { CompositeTreeNode, TreeModelImpl, ExpandableTreeNode, TreeNode } from '@theia/core/lib/browser';
|
|
2
|
-
export declare class OutlineViewTreeModel extends TreeModelImpl {
|
|
3
|
-
/**
|
|
4
|
-
* Handle the expansion of the tree node.
|
|
5
|
-
* - The method is a no-op in order to preserve focus on the editor
|
|
6
|
-
* after attempting to perform a `collapse-all`.
|
|
7
|
-
* @param node the expandable tree node.
|
|
8
|
-
*/
|
|
9
|
-
protected handleExpansion(node: Readonly<ExpandableTreeNode>): void;
|
|
10
|
-
collapseAll(raw?: Readonly<CompositeTreeNode>): Promise<boolean>;
|
|
11
|
-
/**
|
|
12
|
-
* The default behavior of `openNode` calls `doOpenNode` which by default
|
|
13
|
-
* toggles the expansion of the node. Overriding to prevent expansion, but
|
|
14
|
-
* allow for the `onOpenNode` event to still fire on a double-click event.
|
|
15
|
-
*/
|
|
16
|
-
openNode(raw?: TreeNode | undefined): void;
|
|
17
|
-
expandAll(raw?: TreeNode): void;
|
|
18
|
-
areNodesCollapsed(): boolean;
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=outline-view-tree-model.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"outline-view-tree-model.d.ts","sourceRoot":"","sources":["../../src/browser/outline-view-tree-model.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAEzG,qBACa,oBAAqB,SAAQ,aAAa;IAEnD;;;;;OAKG;cACgB,eAAe,CAAC,IAAI,EAAE,QAAQ,CAAC,kBAAkB,CAAC,GAAG,IAAI;IAI7D,WAAW,CAAC,GAAG,CAAC,EAAE,QAAQ,CAAC,iBAAiB,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC;IAQ/E;;;;OAIG;IACM,QAAQ,CAAC,GAAG,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,IAAI;IAOnD,SAAS,CAAC,GAAG,CAAC,EAAE,QAAQ,GAAG,IAAI;IAa/B,iBAAiB,IAAI,OAAO;CAW/B"}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2019 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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.OutlineViewTreeModel = void 0;
|
|
19
|
-
const tslib_1 = require("tslib");
|
|
20
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
21
|
-
const browser_1 = require("@theia/core/lib/browser");
|
|
22
|
-
let OutlineViewTreeModel = class OutlineViewTreeModel extends browser_1.TreeModelImpl {
|
|
23
|
-
/**
|
|
24
|
-
* Handle the expansion of the tree node.
|
|
25
|
-
* - The method is a no-op in order to preserve focus on the editor
|
|
26
|
-
* after attempting to perform a `collapse-all`.
|
|
27
|
-
* @param node the expandable tree node.
|
|
28
|
-
*/
|
|
29
|
-
handleExpansion(node) {
|
|
30
|
-
// no-op
|
|
31
|
-
}
|
|
32
|
-
async collapseAll(raw) {
|
|
33
|
-
const node = raw || this.getFocusedNode();
|
|
34
|
-
if (browser_1.CompositeTreeNode.is(node)) {
|
|
35
|
-
return this.expansionService.collapseAll(node);
|
|
36
|
-
}
|
|
37
|
-
return false;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* The default behavior of `openNode` calls `doOpenNode` which by default
|
|
41
|
-
* toggles the expansion of the node. Overriding to prevent expansion, but
|
|
42
|
-
* allow for the `onOpenNode` event to still fire on a double-click event.
|
|
43
|
-
*/
|
|
44
|
-
openNode(raw) {
|
|
45
|
-
const node = raw || this.getFocusedNode();
|
|
46
|
-
if (node) {
|
|
47
|
-
this.onOpenNodeEmitter.fire(node);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
expandAll(raw) {
|
|
51
|
-
if (browser_1.CompositeTreeNode.is(raw)) {
|
|
52
|
-
for (const child of raw.children) {
|
|
53
|
-
if (browser_1.ExpandableTreeNode.is(child)) {
|
|
54
|
-
this.expandAll(child);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
if (browser_1.ExpandableTreeNode.is(raw)) {
|
|
59
|
-
this.expandNode(raw);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
areNodesCollapsed() {
|
|
63
|
-
if (browser_1.CompositeTreeNode.is(this.root)) {
|
|
64
|
-
for (const child of this.root.children) {
|
|
65
|
-
if (!browser_1.ExpandableTreeNode.isCollapsed(child)) {
|
|
66
|
-
return false;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
return true;
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
exports.OutlineViewTreeModel = OutlineViewTreeModel;
|
|
74
|
-
exports.OutlineViewTreeModel = OutlineViewTreeModel = tslib_1.__decorate([
|
|
75
|
-
(0, inversify_1.injectable)()
|
|
76
|
-
], OutlineViewTreeModel);
|
|
77
|
-
//# sourceMappingURL=outline-view-tree-model.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"outline-view-tree-model.js","sourceRoot":"","sources":["../../src/browser/outline-view-tree-model.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAEhF,4DAA0D;AAC1D,qDAAyG;AAGlG,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,uBAAa;IAEnD;;;;;OAKG;IACgB,eAAe,CAAC,IAAkC;QACjE,QAAQ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;QACL,CAAC;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;CAEJ,CAAA;AAxDY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,sBAAU,GAAE;GACA,oBAAoB,CAwDhC"}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { TreeWidget, TreeNode, NodeProps, SelectableTreeNode, CompositeTreeNode, TreeProps, ContextMenuRenderer, TreeModel, ExpandableTreeNode } from '@theia/core/lib/browser';
|
|
3
|
-
import { OutlineViewTreeModel } from './outline-view-tree-model';
|
|
4
|
-
import { Message } from '@theia/core/shared/@lumino/messaging';
|
|
5
|
-
import { Emitter, Event } from '@theia/core';
|
|
6
|
-
import * as React from '@theia/core/shared/react';
|
|
7
|
-
import { Range } from '@theia/core/shared/vscode-languageserver-protocol';
|
|
8
|
-
/**
|
|
9
|
-
* Representation of an outline symbol information node.
|
|
10
|
-
*/
|
|
11
|
-
export interface OutlineSymbolInformationNode extends CompositeTreeNode, SelectableTreeNode, ExpandableTreeNode {
|
|
12
|
-
/**
|
|
13
|
-
* The `iconClass` for the given tree node.
|
|
14
|
-
*/
|
|
15
|
-
iconClass: string;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Collection of outline symbol information node functions.
|
|
19
|
-
*/
|
|
20
|
-
export declare namespace OutlineSymbolInformationNode {
|
|
21
|
-
/**
|
|
22
|
-
* Determine if the given tree node is an `OutlineSymbolInformationNode`.
|
|
23
|
-
* - The tree node is an `OutlineSymbolInformationNode` if:
|
|
24
|
-
* - The node exists.
|
|
25
|
-
* - The node is selectable.
|
|
26
|
-
* - The node contains a defined `iconClass` property.
|
|
27
|
-
* @param node the tree node.
|
|
28
|
-
*
|
|
29
|
-
* @returns `true` if the given node is an `OutlineSymbolInformationNode`.
|
|
30
|
-
*/
|
|
31
|
-
function is(node: TreeNode): node is OutlineSymbolInformationNode;
|
|
32
|
-
function hasRange(node: unknown): node is {
|
|
33
|
-
range: Range;
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
export type OutlineViewWidgetFactory = () => OutlineViewWidget;
|
|
37
|
-
export declare const OutlineViewWidgetFactory: unique symbol;
|
|
38
|
-
export declare class OutlineViewWidget extends TreeWidget {
|
|
39
|
-
readonly model: OutlineViewTreeModel;
|
|
40
|
-
static LABEL: string;
|
|
41
|
-
readonly onDidChangeOpenStateEmitter: Emitter<boolean>;
|
|
42
|
-
protected readonly onDidUpdateEmitter: Emitter<void>;
|
|
43
|
-
readonly onDidUpdate: Event<void>;
|
|
44
|
-
constructor(treeProps: TreeProps, model: OutlineViewTreeModel, contextMenuRenderer: ContextMenuRenderer);
|
|
45
|
-
protected init(): void;
|
|
46
|
-
/**
|
|
47
|
-
* Set the outline tree with the list of `OutlineSymbolInformationNode`.
|
|
48
|
-
* @param roots the list of `OutlineSymbolInformationNode`.
|
|
49
|
-
*/
|
|
50
|
-
setOutlineTree(roots: OutlineSymbolInformationNode[]): void;
|
|
51
|
-
protected getRoot(children: TreeNode[]): CompositeTreeNode;
|
|
52
|
-
/**
|
|
53
|
-
* Reconcile the outline tree state, gathering all available nodes.
|
|
54
|
-
* @param nodes the list of `TreeNode`.
|
|
55
|
-
*
|
|
56
|
-
* @returns the list of tree nodes.
|
|
57
|
-
*/
|
|
58
|
-
protected reconcileTreeState(nodes: TreeNode[]): TreeNode[];
|
|
59
|
-
protected onAfterHide(msg: Message): void;
|
|
60
|
-
protected onAfterShow(msg: Message): void;
|
|
61
|
-
renderIcon(node: TreeNode, props: NodeProps): React.ReactNode;
|
|
62
|
-
protected createNodeAttributes(node: TreeNode, props: NodeProps): React.Attributes & React.HTMLAttributes<HTMLElement>;
|
|
63
|
-
/**
|
|
64
|
-
* Get the tooltip for the given tree node.
|
|
65
|
-
* - The tooltip is discovered when hovering over a tree node.
|
|
66
|
-
* - If available, the tooltip is the concatenation of the node name, and it's type.
|
|
67
|
-
* @param node the tree node.
|
|
68
|
-
*
|
|
69
|
-
* @returns the tooltip for the tree node if available, else `undefined`.
|
|
70
|
-
*/
|
|
71
|
-
protected getNodeTooltip(node: TreeNode): string | undefined;
|
|
72
|
-
protected isExpandable(node: TreeNode): node is ExpandableTreeNode;
|
|
73
|
-
protected renderTree(model: TreeModel): React.ReactNode;
|
|
74
|
-
protected deflateForStorage(node: TreeNode): object;
|
|
75
|
-
protected inflateFromStorage(node: any, parent?: TreeNode): TreeNode;
|
|
76
|
-
}
|
|
77
|
-
//# sourceMappingURL=outline-view-widget.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"outline-view-widget.d.ts","sourceRoot":"","sources":["../../src/browser/outline-view-widget.tsx"],"names":[],"mappings":";AAiBA,OAAO,EACH,UAAU,EACV,QAAQ,EACR,SAAS,EACT,kBAAkB,EAClB,iBAAiB,EACjB,SAAS,EACT,mBAAmB,EACnB,SAAS,EACT,kBAAkB,EAErB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,KAAK,EAAmC,MAAM,aAAa,CAAC;AAC9E,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,mDAAmD,CAAC;AAI1E;;GAEG;AACH,MAAM,WAAW,4BAA6B,SAAQ,iBAAiB,EAAE,kBAAkB,EAAE,kBAAkB;IAC3G;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,yBAAiB,4BAA4B,CAAC;IAC1C;;;;;;;;;OASG;IACH,SAAgB,EAAE,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI,IAAI,4BAA4B,CAEvE;IAED,SAAgB,QAAQ,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI;QAAE,KAAK,EAAE,KAAK,CAAA;KAAE,CAEhE;CACJ;AAED,M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IAAI,EAAE,QAAQ,GAAG,MAAM;cAQzC,kBAAkB,CAAC,IAAI,EAAE,GAAG,EAAE,MAAM,CAAC,EAAE,QAAQ,GAAG,QAAQ;CAOhF"}
|
|
@@ -1,185 +0,0 @@
|
|
|
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 = 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
|
-
exports.OutlineViewWidget = OutlineViewWidget;
|
|
170
|
-
OutlineViewWidget.LABEL = nls_1.nls.localizeByDefault('Outline');
|
|
171
|
-
tslib_1.__decorate([
|
|
172
|
-
(0, inversify_1.postConstruct)(),
|
|
173
|
-
tslib_1.__metadata("design:type", Function),
|
|
174
|
-
tslib_1.__metadata("design:paramtypes", []),
|
|
175
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
176
|
-
], OutlineViewWidget.prototype, "init", null);
|
|
177
|
-
exports.OutlineViewWidget = OutlineViewWidget = OutlineViewWidget_1 = tslib_1.__decorate([
|
|
178
|
-
(0, inversify_1.injectable)(),
|
|
179
|
-
tslib_1.__param(0, (0, inversify_1.inject)(browser_1.TreeProps)),
|
|
180
|
-
tslib_1.__param(1, (0, inversify_1.inject)(outline_view_tree_model_1.OutlineViewTreeModel)),
|
|
181
|
-
tslib_1.__param(2, (0, inversify_1.inject)(browser_1.ContextMenuRenderer)),
|
|
182
|
-
tslib_1.__metadata("design:paramtypes", [Object, outline_view_tree_model_1.OutlineViewTreeModel,
|
|
183
|
-
browser_1.ContextMenuRenderer])
|
|
184
|
-
], OutlineViewWidget);
|
|
185
|
-
//# sourceMappingURL=outline-view-widget.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"outline-view-widget.js","sourceRoot":"","sources":["../../src/browser/outline-view-widget.tsx"],"names":[],"mappings":";AAAA,gF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,CAAC;QACrC,CAAC;QACD,OAAO,QAAQ,CAAC;IACpB,CAAC;;AAxIQ,8CAAiB;AAEnB,uBAAK,GAAG,SAAG,CAAC,iBAAiB,CAAC,SAAS,CAAC,AAAnC,CAAoC;AAuB7B;IADlB,IAAA,yBAAa,GAAE;;;;6CAIf;4BA5BQ,iBAAiB;IAD7B,IAAA,sBAAU,GAAE;IAWJ,mBAAA,IAAA,kBAAM,EAAC,mBAAS,CAAC,CAAA;IACjB,mBAAA,IAAA,kBAAM,EAAC,8CAAoB,CAAC,CAAA;IAC5B,mBAAA,IAAA,kBAAM,EAAC,6BAAmB,CAAC,CAAA;qDAD2B,8CAAoB;QACzB,6BAAmB;GAZhE,iBAAiB,CAyI7B"}
|
package/lib/package.spec.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=package.spec.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"package.spec.d.ts","sourceRoot":"","sources":["../src/package.spec.ts"],"names":[],"mappings":""}
|
package/lib/package.spec.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
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
|
-
//# sourceMappingURL=package.spec.js.map
|
package/lib/package.spec.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"package.spec.js","sourceRoot":"","sources":["../src/package.spec.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAEhF;;;;;;qBAMqB;AAErB,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;IAElC,EAAE,CAAC,yCAAyC,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;AAC9D,CAAC,CAAC,CAAC"}
|