@theia/typehierarchy 1.45.0 → 1.46.0-next.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -30
- package/lib/browser/index.d.ts +4 -4
- package/lib/browser/index.js +31 -31
- package/lib/browser/tree/typehierarchy-tree-container.d.ts +3 -3
- package/lib/browser/tree/typehierarchy-tree-container.js +34 -34
- package/lib/browser/tree/typehierarchy-tree-model.d.ts +16 -16
- package/lib/browser/tree/typehierarchy-tree-model.js +92 -92
- package/lib/browser/tree/typehierarchy-tree-widget.d.ts +36 -36
- package/lib/browser/tree/typehierarchy-tree-widget.js +119 -119
- package/lib/browser/tree/typehierarchy-tree.d.ts +38 -38
- package/lib/browser/tree/typehierarchy-tree.js +174 -174
- package/lib/browser/tree/typehierarchy-tree.js.map +1 -1
- package/lib/browser/typehierarchy-contribution.d.ts +49 -49
- package/lib/browser/typehierarchy-contribution.js +172 -172
- package/lib/browser/typehierarchy-frontend-module.d.ts +4 -4
- package/lib/browser/typehierarchy-frontend-module.js +37 -37
- package/lib/browser/typehierarchy-provider.d.ts +104 -104
- package/lib/browser/typehierarchy-provider.js +46 -46
- package/lib/browser/typehierarchy-service.d.ts +28 -28
- package/lib/browser/typehierarchy-service.js +85 -85
- package/lib/browser/typehierarchy.d.ts +13 -13
- package/lib/browser/typehierarchy.js +17 -17
- package/lib/package.spec.js +25 -25
- package/package.json +5 -7
- package/src/browser/index.ts +20 -20
- package/src/browser/style/index.css +28 -28
- package/src/browser/tree/typehierarchy-tree-container.ts +35 -35
- package/src/browser/tree/typehierarchy-tree-model.ts +83 -83
- package/src/browser/tree/typehierarchy-tree-widget.tsx +108 -108
- package/src/browser/tree/typehierarchy-tree.ts +190 -190
- package/src/browser/typehierarchy-contribution.ts +175 -175
- package/src/browser/typehierarchy-frontend-module.ts +38 -38
- package/src/browser/typehierarchy-provider.ts +163 -163
- package/src/browser/typehierarchy-service.ts +89 -89
- package/src/browser/typehierarchy.ts +31 -31
- package/src/package.spec.ts +29 -29
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2019 TypeFox and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
-
};
|
|
23
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
-
exports.TypeHierarchyRegistry = void 0;
|
|
25
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
26
|
-
const disposable_1 = require("@theia/core/lib/common/disposable");
|
|
27
|
-
let TypeHierarchyRegistry = class TypeHierarchyRegistry {
|
|
28
|
-
constructor() {
|
|
29
|
-
this.providers = new Map();
|
|
30
|
-
}
|
|
31
|
-
async get(languageId) {
|
|
32
|
-
return languageId ? this.providers.get(languageId) : undefined;
|
|
33
|
-
}
|
|
34
|
-
register(provider) {
|
|
35
|
-
const { languageId } = provider;
|
|
36
|
-
if (this.providers.has(languageId)) {
|
|
37
|
-
throw new Error(`type hierarchy provider for '${languageId}' language is already registered`);
|
|
38
|
-
}
|
|
39
|
-
this.providers.set(languageId, provider);
|
|
40
|
-
return disposable_1.Disposable.create(() => this.providers.delete(languageId));
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
TypeHierarchyRegistry = __decorate([
|
|
44
|
-
(0, inversify_1.injectable)()
|
|
45
|
-
], TypeHierarchyRegistry);
|
|
46
|
-
exports.TypeHierarchyRegistry = TypeHierarchyRegistry;
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2019 TypeFox and others.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
+
};
|
|
23
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
exports.TypeHierarchyRegistry = void 0;
|
|
25
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
26
|
+
const disposable_1 = require("@theia/core/lib/common/disposable");
|
|
27
|
+
let TypeHierarchyRegistry = class TypeHierarchyRegistry {
|
|
28
|
+
constructor() {
|
|
29
|
+
this.providers = new Map();
|
|
30
|
+
}
|
|
31
|
+
async get(languageId) {
|
|
32
|
+
return languageId ? this.providers.get(languageId) : undefined;
|
|
33
|
+
}
|
|
34
|
+
register(provider) {
|
|
35
|
+
const { languageId } = provider;
|
|
36
|
+
if (this.providers.has(languageId)) {
|
|
37
|
+
throw new Error(`type hierarchy provider for '${languageId}' language is already registered`);
|
|
38
|
+
}
|
|
39
|
+
this.providers.set(languageId, provider);
|
|
40
|
+
return disposable_1.Disposable.create(() => this.providers.delete(languageId));
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
TypeHierarchyRegistry = __decorate([
|
|
44
|
+
(0, inversify_1.injectable)()
|
|
45
|
+
], TypeHierarchyRegistry);
|
|
46
|
+
exports.TypeHierarchyRegistry = TypeHierarchyRegistry;
|
|
47
47
|
//# sourceMappingURL=typehierarchy-provider.js.map
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { CancellationToken } from '@theia/core';
|
|
2
|
-
import { ContributionProvider, Disposable, Emitter, Event } from '@theia/core/lib/common';
|
|
3
|
-
import URI from '@theia/core/lib/common/uri';
|
|
4
|
-
import { DocumentUri, Position } from '@theia/core/shared/vscode-languageserver-protocol';
|
|
5
|
-
import { LanguageSelector } from '@theia/editor/lib/common/language-selector';
|
|
6
|
-
import { TypeHierarchyItem } from './typehierarchy';
|
|
7
|
-
export declare const TypeHierarchyService: unique symbol;
|
|
8
|
-
export interface TypeHierarchySession {
|
|
9
|
-
items: TypeHierarchyItem[];
|
|
10
|
-
dispose(): void;
|
|
11
|
-
}
|
|
12
|
-
export interface TypeHierarchyService {
|
|
13
|
-
readonly selector: LanguageSelector;
|
|
14
|
-
prepareSession(uri: DocumentUri, position: Position, cancellationToken: CancellationToken): Promise<TypeHierarchySession | undefined>;
|
|
15
|
-
provideSuperTypes(sessionId: string, itemId: string, cancellationToken: CancellationToken): Promise<TypeHierarchyItem[] | undefined>;
|
|
16
|
-
provideSubTypes(sessionId: string, itemId: string, cancellationToken: CancellationToken): Promise<TypeHierarchyItem[] | undefined>;
|
|
17
|
-
}
|
|
18
|
-
export declare class TypeHierarchyServiceProvider {
|
|
19
|
-
protected readonly contributions: ContributionProvider<TypeHierarchyService>;
|
|
20
|
-
protected readonly onDidChangeEmitter: Emitter<void>;
|
|
21
|
-
get onDidChange(): Event<void>;
|
|
22
|
-
private services;
|
|
23
|
-
init(): void;
|
|
24
|
-
get(languageId: string, uri: URI): TypeHierarchyService | undefined;
|
|
25
|
-
protected score(service: TypeHierarchyService, languageId: string, uri: URI): number;
|
|
26
|
-
add(service: TypeHierarchyService): Disposable;
|
|
27
|
-
private remove;
|
|
28
|
-
}
|
|
1
|
+
import { CancellationToken } from '@theia/core';
|
|
2
|
+
import { ContributionProvider, Disposable, Emitter, Event } from '@theia/core/lib/common';
|
|
3
|
+
import URI from '@theia/core/lib/common/uri';
|
|
4
|
+
import { DocumentUri, Position } from '@theia/core/shared/vscode-languageserver-protocol';
|
|
5
|
+
import { LanguageSelector } from '@theia/editor/lib/common/language-selector';
|
|
6
|
+
import { TypeHierarchyItem } from './typehierarchy';
|
|
7
|
+
export declare const TypeHierarchyService: unique symbol;
|
|
8
|
+
export interface TypeHierarchySession {
|
|
9
|
+
items: TypeHierarchyItem[];
|
|
10
|
+
dispose(): void;
|
|
11
|
+
}
|
|
12
|
+
export interface TypeHierarchyService {
|
|
13
|
+
readonly selector: LanguageSelector;
|
|
14
|
+
prepareSession(uri: DocumentUri, position: Position, cancellationToken: CancellationToken): Promise<TypeHierarchySession | undefined>;
|
|
15
|
+
provideSuperTypes(sessionId: string, itemId: string, cancellationToken: CancellationToken): Promise<TypeHierarchyItem[] | undefined>;
|
|
16
|
+
provideSubTypes(sessionId: string, itemId: string, cancellationToken: CancellationToken): Promise<TypeHierarchyItem[] | undefined>;
|
|
17
|
+
}
|
|
18
|
+
export declare class TypeHierarchyServiceProvider {
|
|
19
|
+
protected readonly contributions: ContributionProvider<TypeHierarchyService>;
|
|
20
|
+
protected readonly onDidChangeEmitter: Emitter<void>;
|
|
21
|
+
get onDidChange(): Event<void>;
|
|
22
|
+
private services;
|
|
23
|
+
init(): void;
|
|
24
|
+
get(languageId: string, uri: URI): TypeHierarchyService | undefined;
|
|
25
|
+
protected score(service: TypeHierarchyService, languageId: string, uri: URI): number;
|
|
26
|
+
add(service: TypeHierarchyService): Disposable;
|
|
27
|
+
private remove;
|
|
28
|
+
}
|
|
29
29
|
//# sourceMappingURL=typehierarchy-service.d.ts.map
|
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2022 Ericsson and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
-
};
|
|
23
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
24
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
25
|
-
};
|
|
26
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports.TypeHierarchyServiceProvider = exports.TypeHierarchyService = void 0;
|
|
28
|
-
const common_1 = require("@theia/core/lib/common");
|
|
29
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
30
|
-
const language_selector_1 = require("@theia/editor/lib/common/language-selector");
|
|
31
|
-
exports.TypeHierarchyService = Symbol('TypeHierarchyService');
|
|
32
|
-
let TypeHierarchyServiceProvider = class TypeHierarchyServiceProvider {
|
|
33
|
-
constructor() {
|
|
34
|
-
this.onDidChangeEmitter = new common_1.Emitter();
|
|
35
|
-
this.services = [];
|
|
36
|
-
}
|
|
37
|
-
get onDidChange() {
|
|
38
|
-
return this.onDidChangeEmitter.event;
|
|
39
|
-
}
|
|
40
|
-
init() {
|
|
41
|
-
this.services = this.services.concat(this.contributions.getContributions());
|
|
42
|
-
}
|
|
43
|
-
get(languageId, uri) {
|
|
44
|
-
return this.services
|
|
45
|
-
.filter(service => this.score(service, languageId, uri) > 0)
|
|
46
|
-
.sort((left, right) => this.score(right, languageId, uri) - this.score(left, languageId, uri))[0];
|
|
47
|
-
}
|
|
48
|
-
score(service, languageId, uri) {
|
|
49
|
-
return (0, language_selector_1.score)(service.selector, uri.scheme, uri.path.toString(), languageId, true);
|
|
50
|
-
}
|
|
51
|
-
add(service) {
|
|
52
|
-
this.services.push(service);
|
|
53
|
-
const that = this;
|
|
54
|
-
this.onDidChangeEmitter.fire();
|
|
55
|
-
return {
|
|
56
|
-
dispose: () => {
|
|
57
|
-
that.remove(service);
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
remove(service) {
|
|
62
|
-
const length = this.services.length;
|
|
63
|
-
this.services = this.services.filter(value => value !== service);
|
|
64
|
-
const serviceWasRemoved = length !== this.services.length;
|
|
65
|
-
if (serviceWasRemoved) {
|
|
66
|
-
this.onDidChangeEmitter.fire();
|
|
67
|
-
}
|
|
68
|
-
return serviceWasRemoved;
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
__decorate([
|
|
72
|
-
(0, inversify_1.inject)(common_1.ContributionProvider),
|
|
73
|
-
(0, inversify_1.named)(exports.TypeHierarchyService),
|
|
74
|
-
__metadata("design:type", Object)
|
|
75
|
-
], TypeHierarchyServiceProvider.prototype, "contributions", void 0);
|
|
76
|
-
__decorate([
|
|
77
|
-
(0, inversify_1.postConstruct)(),
|
|
78
|
-
__metadata("design:type", Function),
|
|
79
|
-
__metadata("design:paramtypes", []),
|
|
80
|
-
__metadata("design:returntype", void 0)
|
|
81
|
-
], TypeHierarchyServiceProvider.prototype, "init", null);
|
|
82
|
-
TypeHierarchyServiceProvider = __decorate([
|
|
83
|
-
(0, inversify_1.injectable)()
|
|
84
|
-
], TypeHierarchyServiceProvider);
|
|
85
|
-
exports.TypeHierarchyServiceProvider = TypeHierarchyServiceProvider;
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2022 Ericsson and others.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
+
};
|
|
23
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
24
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.TypeHierarchyServiceProvider = exports.TypeHierarchyService = void 0;
|
|
28
|
+
const common_1 = require("@theia/core/lib/common");
|
|
29
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
30
|
+
const language_selector_1 = require("@theia/editor/lib/common/language-selector");
|
|
31
|
+
exports.TypeHierarchyService = Symbol('TypeHierarchyService');
|
|
32
|
+
let TypeHierarchyServiceProvider = class TypeHierarchyServiceProvider {
|
|
33
|
+
constructor() {
|
|
34
|
+
this.onDidChangeEmitter = new common_1.Emitter();
|
|
35
|
+
this.services = [];
|
|
36
|
+
}
|
|
37
|
+
get onDidChange() {
|
|
38
|
+
return this.onDidChangeEmitter.event;
|
|
39
|
+
}
|
|
40
|
+
init() {
|
|
41
|
+
this.services = this.services.concat(this.contributions.getContributions());
|
|
42
|
+
}
|
|
43
|
+
get(languageId, uri) {
|
|
44
|
+
return this.services
|
|
45
|
+
.filter(service => this.score(service, languageId, uri) > 0)
|
|
46
|
+
.sort((left, right) => this.score(right, languageId, uri) - this.score(left, languageId, uri))[0];
|
|
47
|
+
}
|
|
48
|
+
score(service, languageId, uri) {
|
|
49
|
+
return (0, language_selector_1.score)(service.selector, uri.scheme, uri.path.toString(), languageId, true);
|
|
50
|
+
}
|
|
51
|
+
add(service) {
|
|
52
|
+
this.services.push(service);
|
|
53
|
+
const that = this;
|
|
54
|
+
this.onDidChangeEmitter.fire();
|
|
55
|
+
return {
|
|
56
|
+
dispose: () => {
|
|
57
|
+
that.remove(service);
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
remove(service) {
|
|
62
|
+
const length = this.services.length;
|
|
63
|
+
this.services = this.services.filter(value => value !== service);
|
|
64
|
+
const serviceWasRemoved = length !== this.services.length;
|
|
65
|
+
if (serviceWasRemoved) {
|
|
66
|
+
this.onDidChangeEmitter.fire();
|
|
67
|
+
}
|
|
68
|
+
return serviceWasRemoved;
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, inversify_1.inject)(common_1.ContributionProvider),
|
|
73
|
+
(0, inversify_1.named)(exports.TypeHierarchyService),
|
|
74
|
+
__metadata("design:type", Object)
|
|
75
|
+
], TypeHierarchyServiceProvider.prototype, "contributions", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, inversify_1.postConstruct)(),
|
|
78
|
+
__metadata("design:type", Function),
|
|
79
|
+
__metadata("design:paramtypes", []),
|
|
80
|
+
__metadata("design:returntype", void 0)
|
|
81
|
+
], TypeHierarchyServiceProvider.prototype, "init", null);
|
|
82
|
+
TypeHierarchyServiceProvider = __decorate([
|
|
83
|
+
(0, inversify_1.injectable)()
|
|
84
|
+
], TypeHierarchyServiceProvider);
|
|
85
|
+
exports.TypeHierarchyServiceProvider = TypeHierarchyServiceProvider;
|
|
86
86
|
//# sourceMappingURL=typehierarchy-service.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { UriComponents } from '@theia/core/lib/common/uri';
|
|
2
|
-
import { Range, SymbolKind, SymbolTag } from '@theia/core/shared/vscode-languageserver-protocol';
|
|
3
|
-
export interface TypeHierarchyItem {
|
|
4
|
-
_sessionId?: string;
|
|
5
|
-
_itemId?: string;
|
|
6
|
-
kind: SymbolKind;
|
|
7
|
-
tags?: readonly SymbolTag[];
|
|
8
|
-
name: string;
|
|
9
|
-
detail?: string;
|
|
10
|
-
uri: UriComponents;
|
|
11
|
-
range: Range;
|
|
12
|
-
selectionRange: Range;
|
|
13
|
-
}
|
|
1
|
+
import { UriComponents } from '@theia/core/lib/common/uri';
|
|
2
|
+
import { Range, SymbolKind, SymbolTag } from '@theia/core/shared/vscode-languageserver-protocol';
|
|
3
|
+
export interface TypeHierarchyItem {
|
|
4
|
+
_sessionId?: string;
|
|
5
|
+
_itemId?: string;
|
|
6
|
+
kind: SymbolKind;
|
|
7
|
+
tags?: readonly SymbolTag[];
|
|
8
|
+
name: string;
|
|
9
|
+
detail?: string;
|
|
10
|
+
uri: UriComponents;
|
|
11
|
+
range: Range;
|
|
12
|
+
selectionRange: Range;
|
|
13
|
+
}
|
|
14
14
|
//# sourceMappingURL=typehierarchy.d.ts.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2022 Ericsson and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2022 Ericsson and others.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
//# sourceMappingURL=typehierarchy.js.map
|
package/lib/package.spec.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
// *****************************************************************************
|
|
2
|
-
// Copyright (C) 2019 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
|
-
/* 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('typehierarchy package', () => {
|
|
24
|
-
it('support code coverage statistics', () => true);
|
|
25
|
-
});
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2019 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
|
+
/* 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('typehierarchy package', () => {
|
|
24
|
+
it('support code coverage statistics', () => true);
|
|
25
|
+
});
|
|
26
26
|
//# sourceMappingURL=package.spec.js.map
|
package/package.json
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/typehierarchy",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.46.0-next.72+4a275b29d",
|
|
4
4
|
"description": "Theia - Type Hierarchy Extension",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@theia/core": "1.
|
|
7
|
-
"@theia/editor": "1.
|
|
8
|
-
"@types/uuid": "^7.0.3",
|
|
9
|
-
"uuid": "^8.0.0"
|
|
6
|
+
"@theia/core": "1.46.0-next.72+4a275b29d",
|
|
7
|
+
"@theia/editor": "1.46.0-next.72+4a275b29d"
|
|
10
8
|
},
|
|
11
9
|
"publishConfig": {
|
|
12
10
|
"access": "public"
|
|
@@ -41,10 +39,10 @@
|
|
|
41
39
|
"watch": "theiaext watch"
|
|
42
40
|
},
|
|
43
41
|
"devDependencies": {
|
|
44
|
-
"@theia/ext-scripts": "1.
|
|
42
|
+
"@theia/ext-scripts": "1.46.0"
|
|
45
43
|
},
|
|
46
44
|
"nyc": {
|
|
47
45
|
"extends": "../../configs/nyc.json"
|
|
48
46
|
},
|
|
49
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "4a275b29d0db6c81190488c7f76cb667da05ef19"
|
|
50
48
|
}
|
package/src/browser/index.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
// *****************************************************************************
|
|
2
|
-
// Copyright (C) 2022 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
|
-
|
|
17
|
-
export * from './typehierarchy';
|
|
18
|
-
export * from './typehierarchy-contribution';
|
|
19
|
-
export * from './typehierarchy-frontend-module';
|
|
20
|
-
export * from './typehierarchy-service';
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2022 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
|
+
|
|
17
|
+
export * from './typehierarchy';
|
|
18
|
+
export * from './typehierarchy-contribution';
|
|
19
|
+
export * from './typehierarchy-frontend-module';
|
|
20
|
+
export * from './typehierarchy-service';
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
/********************************************************************************
|
|
2
|
-
* Copyright (C) 2019 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
|
-
.theia-type-hierarchy-tree {
|
|
18
|
-
font-size: var(--theia-ui-font-size0);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.theia-type-hierarchy-tree .theia-caption-suffix {
|
|
22
|
-
padding-left: 10px !important;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.theia-type-hierarchy-tree .theia-caption-prefix {
|
|
26
|
-
padding-right: 5px !important;
|
|
27
|
-
padding-left: 1px !important;
|
|
28
|
-
}
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (C) 2019 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
|
+
.theia-type-hierarchy-tree {
|
|
18
|
+
font-size: var(--theia-ui-font-size0);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.theia-type-hierarchy-tree .theia-caption-suffix {
|
|
22
|
+
padding-left: 10px !important;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.theia-type-hierarchy-tree .theia-caption-prefix {
|
|
26
|
+
padding-right: 5px !important;
|
|
27
|
+
padding-left: 1px !important;
|
|
28
|
+
}
|