@theia/outline-view 1.48.1 → 1.48.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/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
package/README.md
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
<div align='center'>
|
|
2
|
-
|
|
3
|
-
<br />
|
|
4
|
-
|
|
5
|
-
<img src='https://raw.githubusercontent.com/eclipse-theia/theia/master/logo/theia.svg?sanitize=true' alt='theia-ext-logo' width='100px' />
|
|
6
|
-
|
|
7
|
-
<h2>ECLIPSE THEIA - OUTLINE-VIEW EXTENSION</h2>
|
|
8
|
-
|
|
9
|
-
<hr />
|
|
10
|
-
|
|
11
|
-
</div>
|
|
12
|
-
|
|
13
|
-
## Description
|
|
14
|
-
|
|
15
|
-
The `@theia/outline-view` extension contributes the code outline tree based on a document's symbols.
|
|
16
|
-
|
|
17
|
-
## Additional Information
|
|
18
|
-
|
|
19
|
-
- [API documentation for `@theia/outline-view`](https://eclipse-theia.github.io/theia/docs/next/modules/outline_view.html)
|
|
20
|
-
- [Theia - GitHub](https://github.com/eclipse-theia/theia)
|
|
21
|
-
- [Theia - Website](https://theia-ide.org/)
|
|
22
|
-
|
|
23
|
-
## License
|
|
24
|
-
|
|
25
|
-
- [Eclipse Public License 2.0](http://www.eclipse.org/legal/epl-2.0/)
|
|
26
|
-
- [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)
|
|
27
|
-
|
|
28
|
-
## Trademark
|
|
29
|
-
"Theia" is a trademark of the Eclipse Foundation
|
|
30
|
-
https://www.eclipse.org/theia
|
|
1
|
+
<div align='center'>
|
|
2
|
+
|
|
3
|
+
<br />
|
|
4
|
+
|
|
5
|
+
<img src='https://raw.githubusercontent.com/eclipse-theia/theia/master/logo/theia.svg?sanitize=true' alt='theia-ext-logo' width='100px' />
|
|
6
|
+
|
|
7
|
+
<h2>ECLIPSE THEIA - OUTLINE-VIEW EXTENSION</h2>
|
|
8
|
+
|
|
9
|
+
<hr />
|
|
10
|
+
|
|
11
|
+
</div>
|
|
12
|
+
|
|
13
|
+
## Description
|
|
14
|
+
|
|
15
|
+
The `@theia/outline-view` extension contributes the code outline tree based on a document's symbols.
|
|
16
|
+
|
|
17
|
+
## Additional Information
|
|
18
|
+
|
|
19
|
+
- [API documentation for `@theia/outline-view`](https://eclipse-theia.github.io/theia/docs/next/modules/outline_view.html)
|
|
20
|
+
- [Theia - GitHub](https://github.com/eclipse-theia/theia)
|
|
21
|
+
- [Theia - Website](https://theia-ide.org/)
|
|
22
|
+
|
|
23
|
+
## License
|
|
24
|
+
|
|
25
|
+
- [Eclipse Public License 2.0](http://www.eclipse.org/legal/epl-2.0/)
|
|
26
|
+
- [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)
|
|
27
|
+
|
|
28
|
+
## Trademark
|
|
29
|
+
"Theia" is a trademark of the Eclipse Foundation
|
|
30
|
+
https://www.eclipse.org/theia
|
package/lib/browser/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './outline-view-widget';
|
|
2
|
-
export * from './outline-view-frontend-module';
|
|
1
|
+
export * from './outline-view-widget';
|
|
2
|
+
export * from './outline-view-frontend-module';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/browser/index.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
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 tslib_1 = require("tslib");
|
|
19
|
-
(0, tslib_1.__exportStar)(require("./outline-view-widget"), exports);
|
|
20
|
-
(0, tslib_1.__exportStar)(require("./outline-view-frontend-module"), exports);
|
|
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 tslib_1 = require("tslib");
|
|
19
|
+
(0, tslib_1.__exportStar)(require("./outline-view-widget"), exports);
|
|
20
|
+
(0, tslib_1.__exportStar)(require("./outline-view-frontend-module"), exports);
|
|
21
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
import { LabelProvider, BreadcrumbsService, TreeNode, OpenerService, BreadcrumbsContribution, Breadcrumb } from '@theia/core/lib/browser';
|
|
2
|
-
import URI from '@theia/core/lib/common/uri';
|
|
3
|
-
import { OutlineViewService } from './outline-view-service';
|
|
4
|
-
import { OutlineSymbolInformationNode, OutlineViewWidget } from './outline-view-widget';
|
|
5
|
-
import { Disposable, Emitter, Event } from '@theia/core/lib/common';
|
|
6
|
-
export declare const OutlineBreadcrumbType: unique symbol;
|
|
7
|
-
export declare const BreadcrumbPopupOutlineViewFactory: unique symbol;
|
|
8
|
-
export declare const OUTLINE_BREADCRUMB_CONTAINER_CLASS = "outline-element";
|
|
9
|
-
export interface BreadcrumbPopupOutlineViewFactory {
|
|
10
|
-
(): BreadcrumbPopupOutlineView;
|
|
11
|
-
}
|
|
12
|
-
export declare class BreadcrumbPopupOutlineView extends OutlineViewWidget {
|
|
13
|
-
protected readonly openerService: OpenerService;
|
|
14
|
-
protected tapNode(node?: TreeNode): void;
|
|
15
|
-
cloneState(roots: OutlineSymbolInformationNode[]): void;
|
|
16
|
-
}
|
|
17
|
-
export declare class OutlineBreadcrumbsContribution implements BreadcrumbsContribution {
|
|
18
|
-
protected readonly labelProvider: LabelProvider;
|
|
19
|
-
protected readonly outlineViewService: OutlineViewService;
|
|
20
|
-
protected readonly breadcrumbsService: BreadcrumbsService;
|
|
21
|
-
protected readonly outlineFactory: BreadcrumbPopupOutlineViewFactory;
|
|
22
|
-
protected outlineView: BreadcrumbPopupOutlineView;
|
|
23
|
-
readonly type: symbol;
|
|
24
|
-
readonly priority: number;
|
|
25
|
-
protected currentUri: URI | undefined;
|
|
26
|
-
protected currentBreadcrumbs: OutlineBreadcrumb[];
|
|
27
|
-
protected roots: OutlineSymbolInformationNode[];
|
|
28
|
-
protected readonly onDidChangeBreadcrumbsEmitter: Emitter<URI>;
|
|
29
|
-
get onDidChangeBreadcrumbs(): Event<URI>;
|
|
30
|
-
init(): void;
|
|
31
|
-
protected updateOutlineItems(uri: URI, selectedNode: OutlineSymbolInformationNode | undefined): Promise<void>;
|
|
32
|
-
computeBreadcrumbs(uri: URI): Promise<Breadcrumb[]>;
|
|
33
|
-
attachPopupContent(breadcrumb: Breadcrumb, parent: HTMLElement): Promise<Disposable | undefined>;
|
|
34
|
-
/**
|
|
35
|
-
* Returns the path of the given outline node.
|
|
36
|
-
*/
|
|
37
|
-
protected toOutlinePath(node: OutlineSymbolInformationNode | undefined, path?: OutlineSymbolInformationNode[]): OutlineSymbolInformationNode[] | undefined;
|
|
38
|
-
/**
|
|
39
|
-
* Find the node that is selected. Returns after the first match.
|
|
40
|
-
*/
|
|
41
|
-
protected findSelectedNode(roots: OutlineSymbolInformationNode[]): OutlineSymbolInformationNode | undefined;
|
|
42
|
-
}
|
|
43
|
-
export declare class OutlineBreadcrumb implements Breadcrumb {
|
|
44
|
-
readonly node: OutlineSymbolInformationNode | OutlineSymbolInformationNode[];
|
|
45
|
-
readonly uri: URI;
|
|
46
|
-
readonly index: string;
|
|
47
|
-
readonly label: string;
|
|
48
|
-
readonly iconClass: string;
|
|
49
|
-
readonly containerClass: string;
|
|
50
|
-
constructor(node: OutlineSymbolInformationNode | OutlineSymbolInformationNode[], uri: URI, index: string, label: string, iconClass: string, containerClass: string);
|
|
51
|
-
get id(): string;
|
|
52
|
-
get type(): symbol;
|
|
53
|
-
get longLabel(): string;
|
|
54
|
-
}
|
|
55
|
-
export declare namespace OutlineBreadcrumb {
|
|
56
|
-
function is(breadcrumb: Breadcrumb): breadcrumb is OutlineBreadcrumb;
|
|
57
|
-
}
|
|
1
|
+
import { LabelProvider, BreadcrumbsService, TreeNode, OpenerService, BreadcrumbsContribution, Breadcrumb } from '@theia/core/lib/browser';
|
|
2
|
+
import URI from '@theia/core/lib/common/uri';
|
|
3
|
+
import { OutlineViewService } from './outline-view-service';
|
|
4
|
+
import { OutlineSymbolInformationNode, OutlineViewWidget } from './outline-view-widget';
|
|
5
|
+
import { Disposable, Emitter, Event } from '@theia/core/lib/common';
|
|
6
|
+
export declare const OutlineBreadcrumbType: unique symbol;
|
|
7
|
+
export declare const BreadcrumbPopupOutlineViewFactory: unique symbol;
|
|
8
|
+
export declare const OUTLINE_BREADCRUMB_CONTAINER_CLASS = "outline-element";
|
|
9
|
+
export interface BreadcrumbPopupOutlineViewFactory {
|
|
10
|
+
(): BreadcrumbPopupOutlineView;
|
|
11
|
+
}
|
|
12
|
+
export declare class BreadcrumbPopupOutlineView extends OutlineViewWidget {
|
|
13
|
+
protected readonly openerService: OpenerService;
|
|
14
|
+
protected tapNode(node?: TreeNode): void;
|
|
15
|
+
cloneState(roots: OutlineSymbolInformationNode[]): void;
|
|
16
|
+
}
|
|
17
|
+
export declare class OutlineBreadcrumbsContribution implements BreadcrumbsContribution {
|
|
18
|
+
protected readonly labelProvider: LabelProvider;
|
|
19
|
+
protected readonly outlineViewService: OutlineViewService;
|
|
20
|
+
protected readonly breadcrumbsService: BreadcrumbsService;
|
|
21
|
+
protected readonly outlineFactory: BreadcrumbPopupOutlineViewFactory;
|
|
22
|
+
protected outlineView: BreadcrumbPopupOutlineView;
|
|
23
|
+
readonly type: symbol;
|
|
24
|
+
readonly priority: number;
|
|
25
|
+
protected currentUri: URI | undefined;
|
|
26
|
+
protected currentBreadcrumbs: OutlineBreadcrumb[];
|
|
27
|
+
protected roots: OutlineSymbolInformationNode[];
|
|
28
|
+
protected readonly onDidChangeBreadcrumbsEmitter: Emitter<URI>;
|
|
29
|
+
get onDidChangeBreadcrumbs(): Event<URI>;
|
|
30
|
+
init(): void;
|
|
31
|
+
protected updateOutlineItems(uri: URI, selectedNode: OutlineSymbolInformationNode | undefined): Promise<void>;
|
|
32
|
+
computeBreadcrumbs(uri: URI): Promise<Breadcrumb[]>;
|
|
33
|
+
attachPopupContent(breadcrumb: Breadcrumb, parent: HTMLElement): Promise<Disposable | undefined>;
|
|
34
|
+
/**
|
|
35
|
+
* Returns the path of the given outline node.
|
|
36
|
+
*/
|
|
37
|
+
protected toOutlinePath(node: OutlineSymbolInformationNode | undefined, path?: OutlineSymbolInformationNode[]): OutlineSymbolInformationNode[] | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Find the node that is selected. Returns after the first match.
|
|
40
|
+
*/
|
|
41
|
+
protected findSelectedNode(roots: OutlineSymbolInformationNode[]): OutlineSymbolInformationNode | undefined;
|
|
42
|
+
}
|
|
43
|
+
export declare class OutlineBreadcrumb implements Breadcrumb {
|
|
44
|
+
readonly node: OutlineSymbolInformationNode | OutlineSymbolInformationNode[];
|
|
45
|
+
readonly uri: URI;
|
|
46
|
+
readonly index: string;
|
|
47
|
+
readonly label: string;
|
|
48
|
+
readonly iconClass: string;
|
|
49
|
+
readonly containerClass: string;
|
|
50
|
+
constructor(node: OutlineSymbolInformationNode | OutlineSymbolInformationNode[], uri: URI, index: string, label: string, iconClass: string, containerClass: string);
|
|
51
|
+
get id(): string;
|
|
52
|
+
get type(): symbol;
|
|
53
|
+
get longLabel(): string;
|
|
54
|
+
}
|
|
55
|
+
export declare namespace OutlineBreadcrumb {
|
|
56
|
+
function is(breadcrumb: Breadcrumb): breadcrumb is OutlineBreadcrumb;
|
|
57
|
+
}
|
|
58
58
|
//# sourceMappingURL=outline-breadcrumbs-contribution.d.ts.map
|