@theia/plugin-ext 1.31.0-next.32 → 1.31.0-next.34

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.
Files changed (60) hide show
  1. package/lib/common/plugin-api-rpc-model.d.ts +6 -2
  2. package/lib/common/plugin-api-rpc-model.d.ts.map +1 -1
  3. package/lib/common/plugin-api-rpc-model.js +7 -1
  4. package/lib/common/plugin-api-rpc-model.js.map +1 -1
  5. package/lib/common/plugin-api-rpc.d.ts +6 -1
  6. package/lib/common/plugin-api-rpc.d.ts.map +1 -1
  7. package/lib/common/plugin-api-rpc.js.map +1 -1
  8. package/lib/main/browser/{callhierarchy/callhierarchy-type-converters.d.ts → hierarchy/hierarchy-types-converters.d.ts} +14 -14
  9. package/lib/main/browser/hierarchy/hierarchy-types-converters.d.ts.map +1 -0
  10. package/lib/main/browser/hierarchy/hierarchy-types-converters.js +175 -0
  11. package/lib/main/browser/hierarchy/hierarchy-types-converters.js.map +1 -0
  12. package/lib/main/browser/languages-main.d.ts +4 -0
  13. package/lib/main/browser/languages-main.d.ts.map +1 -1
  14. package/lib/main/browser/languages-main.js +55 -8
  15. package/lib/main/browser/languages-main.js.map +1 -1
  16. package/lib/plugin/known-commands.d.ts.map +1 -1
  17. package/lib/plugin/known-commands.js +9 -0
  18. package/lib/plugin/known-commands.js.map +1 -1
  19. package/lib/plugin/languages/call-hierarchy.js +1 -1
  20. package/lib/plugin/languages/call-hierarchy.js.map +1 -1
  21. package/lib/plugin/languages/type-hierarchy.d.ts +19 -0
  22. package/lib/plugin/languages/type-hierarchy.d.ts.map +1 -0
  23. package/lib/plugin/languages/type-hierarchy.js +96 -0
  24. package/lib/plugin/languages/type-hierarchy.js.map +1 -0
  25. package/lib/plugin/languages.d.ts +6 -1
  26. package/lib/plugin/languages.d.ts.map +1 -1
  27. package/lib/plugin/languages.js +20 -0
  28. package/lib/plugin/languages.js.map +1 -1
  29. package/lib/plugin/plugin-context.d.ts.map +1 -1
  30. package/lib/plugin/plugin-context.js +28 -1
  31. package/lib/plugin/plugin-context.js.map +1 -1
  32. package/lib/plugin/stubs/tests-api.d.ts +23 -0
  33. package/lib/plugin/stubs/tests-api.d.ts.map +1 -0
  34. package/lib/plugin/stubs/tests-api.js +67 -0
  35. package/lib/plugin/stubs/tests-api.js.map +1 -0
  36. package/lib/plugin/type-converters.d.ts +4 -0
  37. package/lib/plugin/type-converters.d.ts.map +1 -1
  38. package/lib/plugin/type-converters.js +28 -3
  39. package/lib/plugin/type-converters.js.map +1 -1
  40. package/lib/plugin/types-impl.d.ts +36 -0
  41. package/lib/plugin/types-impl.d.ts.map +1 -1
  42. package/lib/plugin/types-impl.js +74 -2
  43. package/lib/plugin/types-impl.js.map +1 -1
  44. package/package.json +25 -24
  45. package/src/common/plugin-api-rpc-model.ts +7 -2
  46. package/src/common/plugin-api-rpc.ts +7 -1
  47. package/src/main/browser/hierarchy/hierarchy-types-converters.ts +189 -0
  48. package/src/main/browser/languages-main.ts +81 -21
  49. package/src/plugin/known-commands.ts +12 -1
  50. package/src/plugin/languages/call-hierarchy.ts +2 -2
  51. package/src/plugin/languages/type-hierarchy.ts +117 -0
  52. package/src/plugin/languages.ts +52 -2
  53. package/src/plugin/plugin-context.ts +46 -2
  54. package/src/plugin/stubs/tests-api.ts +96 -0
  55. package/src/plugin/type-converters.ts +35 -2
  56. package/src/plugin/types-impl.ts +73 -0
  57. package/lib/main/browser/callhierarchy/callhierarchy-type-converters.d.ts.map +0 -1
  58. package/lib/main/browser/callhierarchy/callhierarchy-type-converters.js +0 -178
  59. package/lib/main/browser/callhierarchy/callhierarchy-type-converters.js.map +0 -1
  60. package/src/main/browser/callhierarchy/callhierarchy-type-converters.ts +0 -193
@@ -2651,6 +2651,43 @@ export class CallHierarchyOutgoingCall {
2651
2651
  }
2652
2652
  }
2653
2653
 
2654
+ @es5ClassCompat
2655
+ export class TypeHierarchyItem {
2656
+ _sessionId?: string;
2657
+ _itemId?: string;
2658
+
2659
+ kind: SymbolKind;
2660
+ tags?: readonly SymbolTag[];
2661
+ name: string;
2662
+ detail?: string;
2663
+ uri: URI;
2664
+ range: Range;
2665
+ selectionRange: Range;
2666
+
2667
+ constructor(kind: SymbolKind, name: string, detail: string, uri: URI, range: Range, selectionRange: Range) {
2668
+ this.kind = kind;
2669
+ this.name = name;
2670
+ this.detail = detail;
2671
+ this.uri = uri;
2672
+ this.range = range;
2673
+ this.selectionRange = selectionRange;
2674
+ }
2675
+
2676
+ static isTypeHierarchyItem(thing: {}): thing is TypeHierarchyItem {
2677
+ if (thing instanceof TypeHierarchyItem) {
2678
+ return true;
2679
+ }
2680
+ if (!thing) {
2681
+ return false;
2682
+ }
2683
+ return typeof (<TypeHierarchyItem>thing).kind === 'number' &&
2684
+ typeof (<TypeHierarchyItem>thing).name === 'string' &&
2685
+ URI.isUri((<TypeHierarchyItem>thing).uri) &&
2686
+ Range.isRange((<TypeHierarchyItem>thing).range) &&
2687
+ Range.isRange((<TypeHierarchyItem>thing).selectionRange);
2688
+ }
2689
+ }
2690
+
2654
2691
  export enum LanguageStatusSeverity {
2655
2692
  Information = 0,
2656
2693
  Warning = 1,
@@ -2669,6 +2706,42 @@ export class LinkedEditingRanges {
2669
2706
  }
2670
2707
  }
2671
2708
 
2709
+ export enum TestRunProfileKind {
2710
+ Run = 1,
2711
+ Debug = 2,
2712
+ Coverage = 3,
2713
+ }
2714
+
2715
+ @es5ClassCompat
2716
+ export class TestTag implements theia.TestTag {
2717
+ constructor(public readonly id: string) { }
2718
+ }
2719
+
2720
+ @es5ClassCompat
2721
+ export class TestRunRequest implements theia.TestRunRequest {
2722
+ constructor(
2723
+ public readonly include: theia.TestItem[] | undefined = undefined,
2724
+ public readonly exclude: theia.TestItem[] | undefined = undefined,
2725
+ public readonly profile: theia.TestRunProfile | undefined = undefined,
2726
+ ) { }
2727
+ }
2728
+
2729
+ @es5ClassCompat
2730
+ export class TestMessage implements theia.TestMessage {
2731
+ public expectedOutput?: string;
2732
+ public actualOutput?: string;
2733
+ public location?: theia.Location;
2734
+
2735
+ public static diff(message: string | theia.MarkdownString, expected: string, actual: string): theia.TestMessage {
2736
+ const msg = new TestMessage(message);
2737
+ msg.expectedOutput = expected;
2738
+ msg.actualOutput = actual;
2739
+ return msg;
2740
+ }
2741
+
2742
+ constructor(public message: string | theia.MarkdownString) { }
2743
+ }
2744
+
2672
2745
  @es5ClassCompat
2673
2746
  export class TimelineItem {
2674
2747
  timestamp: number;
@@ -1 +0,0 @@
1
- {"version":3,"file":"callhierarchy-type-converters.d.ts","sourceRoot":"","sources":["../../../../src/main/browser/callhierarchy/callhierarchy-type-converters.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAC3H,OAAO,KAAK,KAAK,MAAM,sCAAsC,CAAC;AAC9D,OAAO,KAAK,GAAG,MAAM,gCAAgC,CAAC;AACtD,OAAO,KAAK,aAAa,MAAM,mDAAmD,CAAC;AAEnF,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAE/D,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAE1D;AAED,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,aAAa,GAAG,MAAM,CAE5D;AAED,wBAAgB,YAAY,CAAC,QAAQ,EAAE,aAAa,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAK7E;AAED,wBAAgB,UAAU,CAAC,GAAG,EAAE,aAAa,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,GAAG,aAAa,CAAC,QAAQ,CAKzF;AAED,wBAAgB,YAAY,CAAC,QAAQ,EAAE,aAAa,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAK3E;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,aAAa,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAQjE;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,GAAG,aAAa,CAAC,KAAK,CAO/D;AAED,yBAAiB,mBAAmB,CAAC;IACjC,SAAgB,cAAc,CAAC,IAAI,EAAE,aAAa,CAAC,UAAU,GAAG,KAAK,CAAC,UAAU,CA8B/E;IACD,SAAgB,YAAY,CAAC,IAAI,EAAE,KAAK,CAAC,UAAU,GAAG,aAAa,CAAC,UAAU,CA8B7E;CACJ;AAED,wBAAgB,YAAY,CAAC,UAAU,EAAE,KAAK,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;AACrF,wBAAgB,YAAY,CAAC,UAAU,EAAE,KAAK,CAAC,iBAAiB,GAAG,SAAS,GAAG,iBAAiB,GAAG,SAAS,CAAC;AAa7G,wBAAgB,cAAc,CAAC,UAAU,EAAE,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,CAOrF;AAED,wBAAgB,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,yBAAyB,GAAG,yBAAyB,CAK3F;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE,yBAAyB,GAAG,KAAK,CAAC,yBAAyB,CAK7F;AAED,wBAAgB,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,yBAAyB,GAAG,yBAAyB,CAK3F;AAED,wBAAgB,uDAAuD,CAAC,MAAM,EAAE,yBAAyB,GAAG,KAAK,CAAC,yBAAyB,CAK1I;AAED,wBAAgB,uDAAuD,CAAC,MAAM,EAAE,yBAAyB,GAAG,KAAK,CAAC,yBAAyB,CAK1I"}
@@ -1,178 +0,0 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2020 Red Hat, Inc. 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 WITH Classpath-exception-2.0
16
- // *****************************************************************************
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.fromCallHierarchyCalleeToModelCallHierarchyOutgoingCall = exports.fromCallHierarchyCallerToModelCallHierarchyIncomingCall = exports.toCallee = exports.fromCaller = exports.toCaller = exports.fromDefinition = exports.toDefinition = exports.SymbolKindConverter = exports.toRange = exports.fromRange = exports.fromPosition = exports.toLocation = exports.fromLocation = exports.fromUriComponents = exports.toUriComponents = void 0;
19
- const model = require("../../../common/plugin-api-rpc-model");
20
- const callhierarchy = require("@theia/core/shared/vscode-languageserver-protocol");
21
- const vscode_uri_1 = require("@theia/core/shared/vscode-uri");
22
- function toUriComponents(uri) {
23
- return vscode_uri_1.URI.parse(uri);
24
- }
25
- exports.toUriComponents = toUriComponents;
26
- function fromUriComponents(uri) {
27
- return vscode_uri_1.URI.revive(uri).toString();
28
- }
29
- exports.fromUriComponents = fromUriComponents;
30
- function fromLocation(location) {
31
- return {
32
- uri: vscode_uri_1.URI.parse(location.uri),
33
- range: fromRange(location.range)
34
- };
35
- }
36
- exports.fromLocation = fromLocation;
37
- function toLocation(uri, range) {
38
- return {
39
- uri: vscode_uri_1.URI.revive(uri).toString(),
40
- range: toRange(range)
41
- };
42
- }
43
- exports.toLocation = toLocation;
44
- function fromPosition(position) {
45
- return {
46
- lineNumber: position.line,
47
- column: position.character
48
- };
49
- }
50
- exports.fromPosition = fromPosition;
51
- function fromRange(range) {
52
- const { start, end } = range;
53
- return {
54
- startLineNumber: start.line + 1,
55
- startColumn: start.character + 1,
56
- endLineNumber: end.line + 1,
57
- endColumn: end.character + 1,
58
- };
59
- }
60
- exports.fromRange = fromRange;
61
- function toRange(range) {
62
- return callhierarchy.Range.create(range.startLineNumber - 1, range.startColumn - 1, range.endLineNumber - 1, range.endColumn - 1);
63
- }
64
- exports.toRange = toRange;
65
- var SymbolKindConverter;
66
- (function (SymbolKindConverter) {
67
- function fromSymbolKind(kind) {
68
- switch (kind) {
69
- case callhierarchy.SymbolKind.File: return model.SymbolKind.File;
70
- case callhierarchy.SymbolKind.Module: return model.SymbolKind.Module;
71
- case callhierarchy.SymbolKind.Namespace: return model.SymbolKind.Namespace;
72
- case callhierarchy.SymbolKind.Package: return model.SymbolKind.Package;
73
- case callhierarchy.SymbolKind.Class: return model.SymbolKind.Class;
74
- case callhierarchy.SymbolKind.Method: return model.SymbolKind.Method;
75
- case callhierarchy.SymbolKind.Property: return model.SymbolKind.Property;
76
- case callhierarchy.SymbolKind.Field: return model.SymbolKind.Field;
77
- case callhierarchy.SymbolKind.Constructor: return model.SymbolKind.Constructor;
78
- case callhierarchy.SymbolKind.Enum: return model.SymbolKind.Enum;
79
- case callhierarchy.SymbolKind.Interface: return model.SymbolKind.Interface;
80
- case callhierarchy.SymbolKind.Function: return model.SymbolKind.Function;
81
- case callhierarchy.SymbolKind.Variable: return model.SymbolKind.Variable;
82
- case callhierarchy.SymbolKind.Constant: return model.SymbolKind.Constant;
83
- case callhierarchy.SymbolKind.String: return model.SymbolKind.String;
84
- case callhierarchy.SymbolKind.Number: return model.SymbolKind.Number;
85
- case callhierarchy.SymbolKind.Boolean: return model.SymbolKind.Boolean;
86
- case callhierarchy.SymbolKind.Array: return model.SymbolKind.Array;
87
- case callhierarchy.SymbolKind.Object: return model.SymbolKind.Object;
88
- case callhierarchy.SymbolKind.Key: return model.SymbolKind.Key;
89
- case callhierarchy.SymbolKind.Null: return model.SymbolKind.Null;
90
- case callhierarchy.SymbolKind.EnumMember: return model.SymbolKind.EnumMember;
91
- case callhierarchy.SymbolKind.Struct: return model.SymbolKind.Struct;
92
- case callhierarchy.SymbolKind.Event: return model.SymbolKind.Event;
93
- case callhierarchy.SymbolKind.Operator: return model.SymbolKind.Operator;
94
- case callhierarchy.SymbolKind.TypeParameter: return model.SymbolKind.TypeParameter;
95
- default: return model.SymbolKind.Property;
96
- }
97
- }
98
- SymbolKindConverter.fromSymbolKind = fromSymbolKind;
99
- function toSymbolKind(kind) {
100
- switch (kind) {
101
- case model.SymbolKind.File: return callhierarchy.SymbolKind.File;
102
- case model.SymbolKind.Module: return callhierarchy.SymbolKind.Module;
103
- case model.SymbolKind.Namespace: return callhierarchy.SymbolKind.Namespace;
104
- case model.SymbolKind.Package: return callhierarchy.SymbolKind.Package;
105
- case model.SymbolKind.Class: return callhierarchy.SymbolKind.Class;
106
- case model.SymbolKind.Method: return callhierarchy.SymbolKind.Method;
107
- case model.SymbolKind.Property: return callhierarchy.SymbolKind.Property;
108
- case model.SymbolKind.Field: return callhierarchy.SymbolKind.Field;
109
- case model.SymbolKind.Constructor: return callhierarchy.SymbolKind.Constructor;
110
- case model.SymbolKind.Enum: return callhierarchy.SymbolKind.Enum;
111
- case model.SymbolKind.Interface: return callhierarchy.SymbolKind.Interface;
112
- case model.SymbolKind.Function: return callhierarchy.SymbolKind.Function;
113
- case model.SymbolKind.Variable: return callhierarchy.SymbolKind.Variable;
114
- case model.SymbolKind.Constant: return callhierarchy.SymbolKind.Constant;
115
- case model.SymbolKind.String: return callhierarchy.SymbolKind.String;
116
- case model.SymbolKind.Number: return callhierarchy.SymbolKind.Number;
117
- case model.SymbolKind.Boolean: return callhierarchy.SymbolKind.Boolean;
118
- case model.SymbolKind.Array: return callhierarchy.SymbolKind.Array;
119
- case model.SymbolKind.Object: return callhierarchy.SymbolKind.Object;
120
- case model.SymbolKind.Key: return callhierarchy.SymbolKind.Key;
121
- case model.SymbolKind.Null: return callhierarchy.SymbolKind.Null;
122
- case model.SymbolKind.EnumMember: return callhierarchy.SymbolKind.EnumMember;
123
- case model.SymbolKind.Struct: return callhierarchy.SymbolKind.Struct;
124
- case model.SymbolKind.Event: return callhierarchy.SymbolKind.Event;
125
- case model.SymbolKind.Operator: return callhierarchy.SymbolKind.Operator;
126
- case model.SymbolKind.TypeParameter: return callhierarchy.SymbolKind.TypeParameter;
127
- default: return callhierarchy.SymbolKind.Property;
128
- }
129
- }
130
- SymbolKindConverter.toSymbolKind = toSymbolKind;
131
- })(SymbolKindConverter = exports.SymbolKindConverter || (exports.SymbolKindConverter = {}));
132
- function toDefinition(definition) {
133
- if (!definition) {
134
- return undefined;
135
- }
136
- return Object.assign(Object.assign({}, definition), { kind: SymbolKindConverter.toSymbolKind(definition.kind), range: toRange(definition.range), selectionRange: toRange(definition.selectionRange) });
137
- }
138
- exports.toDefinition = toDefinition;
139
- function fromDefinition(definition) {
140
- return Object.assign(Object.assign({}, definition), { kind: SymbolKindConverter.fromSymbolKind(definition.kind), range: fromRange(definition.range), selectionRange: fromRange(definition.range) });
141
- }
142
- exports.fromDefinition = fromDefinition;
143
- function toCaller(caller) {
144
- return {
145
- from: toDefinition(caller.from),
146
- fromRanges: caller.fromRanges.map(toRange)
147
- };
148
- }
149
- exports.toCaller = toCaller;
150
- function fromCaller(caller) {
151
- return {
152
- from: fromDefinition(caller.from),
153
- fromRanges: caller.fromRanges.map(fromRange)
154
- };
155
- }
156
- exports.fromCaller = fromCaller;
157
- function toCallee(callee) {
158
- return {
159
- to: toDefinition(callee.to),
160
- fromRanges: callee.fromRanges.map(toRange),
161
- };
162
- }
163
- exports.toCallee = toCallee;
164
- function fromCallHierarchyCallerToModelCallHierarchyIncomingCall(caller) {
165
- return {
166
- from: fromDefinition(caller.from),
167
- fromRanges: caller.fromRanges.map(fromRange),
168
- };
169
- }
170
- exports.fromCallHierarchyCallerToModelCallHierarchyIncomingCall = fromCallHierarchyCallerToModelCallHierarchyIncomingCall;
171
- function fromCallHierarchyCalleeToModelCallHierarchyOutgoingCall(callee) {
172
- return {
173
- to: fromDefinition(callee.to),
174
- fromRanges: callee.fromRanges.map(fromRange),
175
- };
176
- }
177
- exports.fromCallHierarchyCalleeToModelCallHierarchyOutgoingCall = fromCallHierarchyCalleeToModelCallHierarchyOutgoingCall;
178
- //# sourceMappingURL=callhierarchy-type-converters.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"callhierarchy-type-converters.js","sourceRoot":"","sources":["../../../../src/main/browser/callhierarchy/callhierarchy-type-converters.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,2EAA2E;AAC3E,gFAAgF;;;AAGhF,8DAA8D;AAE9D,mFAAmF;AACnF,8DAAoD;AAGpD,SAAgB,eAAe,CAAC,GAAW;IACvC,OAAO,gBAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AAC1B,CAAC;AAFD,0CAEC;AAED,SAAgB,iBAAiB,CAAC,GAAkB;IAChD,OAAO,gBAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC;AACtC,CAAC;AAFD,8CAEC;AAED,SAAgB,YAAY,CAAC,QAAgC;IACzD,OAAuB;QACnB,GAAG,EAAE,gBAAG,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC;QAC5B,KAAK,EAAE,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC;KACnC,CAAC;AACN,CAAC;AALD,oCAKC;AAED,SAAgB,UAAU,CAAC,GAAkB,EAAE,KAAkB;IAC7D,OAAO;QACH,GAAG,EAAE,gBAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;QAC/B,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC;KACxB,CAAC;AACN,CAAC;AALD,gCAKC;AAED,SAAgB,YAAY,CAAC,QAAgC;IACzD,OAAqB;QACjB,UAAU,EAAE,QAAQ,CAAC,IAAI;QACzB,MAAM,EAAE,QAAQ,CAAC,SAAS;KAC7B,CAAC;AACN,CAAC;AALD,oCAKC;AAED,SAAgB,SAAS,CAAC,KAA0B;IAChD,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG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AAgB,uDAAuD,CAAC,MAAiC;IACrG,OAAO;QACH,EAAE,EAAE,cAAc,CAAC,MAAM,CAAC,EAAE,CAAC;QAC7B,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,SAAS,CAAC;KAC/C,CAAC;AACN,CAAC;AALD,0HAKC"}
@@ -1,193 +0,0 @@
1
- // *****************************************************************************
2
- // Copyright (C) 2020 Red Hat, Inc. and others.
3
- //
4
- // This program and the accompanying materials are made available under the
5
- // terms of the Eclipse Public License v. 2.0 which is available at
6
- // http://www.eclipse.org/legal/epl-2.0.
7
- //
8
- // This Source Code may also be made available under the following Secondary
9
- // Licenses when the conditions for such availability set forth in the Eclipse
10
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
- // with the GNU Classpath Exception which is available at
12
- // https://www.gnu.org/software/classpath/license.html.
13
- //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
- // *****************************************************************************
16
-
17
- import { CallHierarchyItem, CallHierarchyIncomingCall, CallHierarchyOutgoingCall } from '@theia/callhierarchy/lib/browser';
18
- import * as model from '../../../common/plugin-api-rpc-model';
19
- import * as rpc from '../../../common/plugin-api-rpc';
20
- import * as callhierarchy from '@theia/core/shared/vscode-languageserver-protocol';
21
- import { URI } from '@theia/core/shared/vscode-uri';
22
- import { UriComponents } from '../../../common/uri-components';
23
-
24
- export function toUriComponents(uri: string): UriComponents {
25
- return URI.parse(uri);
26
- }
27
-
28
- export function fromUriComponents(uri: UriComponents): string {
29
- return URI.revive(uri).toString();
30
- }
31
-
32
- export function fromLocation(location: callhierarchy.Location): model.Location {
33
- return <model.Location>{
34
- uri: URI.parse(location.uri),
35
- range: fromRange(location.range)
36
- };
37
- }
38
-
39
- export function toLocation(uri: UriComponents, range: model.Range): callhierarchy.Location {
40
- return {
41
- uri: URI.revive(uri).toString(),
42
- range: toRange(range)
43
- };
44
- }
45
-
46
- export function fromPosition(position: callhierarchy.Position): rpc.Position {
47
- return <rpc.Position>{
48
- lineNumber: position.line,
49
- column: position.character
50
- };
51
- }
52
-
53
- export function fromRange(range: callhierarchy.Range): model.Range {
54
- const { start, end } = range;
55
- return {
56
- startLineNumber: start.line + 1,
57
- startColumn: start.character + 1,
58
- endLineNumber: end.line + 1,
59
- endColumn: end.character + 1,
60
- };
61
- }
62
-
63
- export function toRange(range: model.Range): callhierarchy.Range {
64
- return callhierarchy.Range.create(
65
- range.startLineNumber - 1,
66
- range.startColumn - 1,
67
- range.endLineNumber - 1,
68
- range.endColumn - 1,
69
- );
70
- }
71
-
72
- export namespace SymbolKindConverter {
73
- export function fromSymbolKind(kind: callhierarchy.SymbolKind): model.SymbolKind {
74
- switch (kind) {
75
- case callhierarchy.SymbolKind.File: return model.SymbolKind.File;
76
- case callhierarchy.SymbolKind.Module: return model.SymbolKind.Module;
77
- case callhierarchy.SymbolKind.Namespace: return model.SymbolKind.Namespace;
78
- case callhierarchy.SymbolKind.Package: return model.SymbolKind.Package;
79
- case callhierarchy.SymbolKind.Class: return model.SymbolKind.Class;
80
- case callhierarchy.SymbolKind.Method: return model.SymbolKind.Method;
81
- case callhierarchy.SymbolKind.Property: return model.SymbolKind.Property;
82
- case callhierarchy.SymbolKind.Field: return model.SymbolKind.Field;
83
- case callhierarchy.SymbolKind.Constructor: return model.SymbolKind.Constructor;
84
- case callhierarchy.SymbolKind.Enum: return model.SymbolKind.Enum;
85
- case callhierarchy.SymbolKind.Interface: return model.SymbolKind.Interface;
86
- case callhierarchy.SymbolKind.Function: return model.SymbolKind.Function;
87
- case callhierarchy.SymbolKind.Variable: return model.SymbolKind.Variable;
88
- case callhierarchy.SymbolKind.Constant: return model.SymbolKind.Constant;
89
- case callhierarchy.SymbolKind.String: return model.SymbolKind.String;
90
- case callhierarchy.SymbolKind.Number: return model.SymbolKind.Number;
91
- case callhierarchy.SymbolKind.Boolean: return model.SymbolKind.Boolean;
92
- case callhierarchy.SymbolKind.Array: return model.SymbolKind.Array;
93
- case callhierarchy.SymbolKind.Object: return model.SymbolKind.Object;
94
- case callhierarchy.SymbolKind.Key: return model.SymbolKind.Key;
95
- case callhierarchy.SymbolKind.Null: return model.SymbolKind.Null;
96
- case callhierarchy.SymbolKind.EnumMember: return model.SymbolKind.EnumMember;
97
- case callhierarchy.SymbolKind.Struct: return model.SymbolKind.Struct;
98
- case callhierarchy.SymbolKind.Event: return model.SymbolKind.Event;
99
- case callhierarchy.SymbolKind.Operator: return model.SymbolKind.Operator;
100
- case callhierarchy.SymbolKind.TypeParameter: return model.SymbolKind.TypeParameter;
101
- default: return model.SymbolKind.Property;
102
- }
103
- }
104
- export function toSymbolKind(kind: model.SymbolKind): callhierarchy.SymbolKind {
105
- switch (kind) {
106
- case model.SymbolKind.File: return callhierarchy.SymbolKind.File;
107
- case model.SymbolKind.Module: return callhierarchy.SymbolKind.Module;
108
- case model.SymbolKind.Namespace: return callhierarchy.SymbolKind.Namespace;
109
- case model.SymbolKind.Package: return callhierarchy.SymbolKind.Package;
110
- case model.SymbolKind.Class: return callhierarchy.SymbolKind.Class;
111
- case model.SymbolKind.Method: return callhierarchy.SymbolKind.Method;
112
- case model.SymbolKind.Property: return callhierarchy.SymbolKind.Property;
113
- case model.SymbolKind.Field: return callhierarchy.SymbolKind.Field;
114
- case model.SymbolKind.Constructor: return callhierarchy.SymbolKind.Constructor;
115
- case model.SymbolKind.Enum: return callhierarchy.SymbolKind.Enum;
116
- case model.SymbolKind.Interface: return callhierarchy.SymbolKind.Interface;
117
- case model.SymbolKind.Function: return callhierarchy.SymbolKind.Function;
118
- case model.SymbolKind.Variable: return callhierarchy.SymbolKind.Variable;
119
- case model.SymbolKind.Constant: return callhierarchy.SymbolKind.Constant;
120
- case model.SymbolKind.String: return callhierarchy.SymbolKind.String;
121
- case model.SymbolKind.Number: return callhierarchy.SymbolKind.Number;
122
- case model.SymbolKind.Boolean: return callhierarchy.SymbolKind.Boolean;
123
- case model.SymbolKind.Array: return callhierarchy.SymbolKind.Array;
124
- case model.SymbolKind.Object: return callhierarchy.SymbolKind.Object;
125
- case model.SymbolKind.Key: return callhierarchy.SymbolKind.Key;
126
- case model.SymbolKind.Null: return callhierarchy.SymbolKind.Null;
127
- case model.SymbolKind.EnumMember: return callhierarchy.SymbolKind.EnumMember;
128
- case model.SymbolKind.Struct: return callhierarchy.SymbolKind.Struct;
129
- case model.SymbolKind.Event: return callhierarchy.SymbolKind.Event;
130
- case model.SymbolKind.Operator: return callhierarchy.SymbolKind.Operator;
131
- case model.SymbolKind.TypeParameter: return callhierarchy.SymbolKind.TypeParameter;
132
- default: return callhierarchy.SymbolKind.Property;
133
- }
134
- }
135
- }
136
-
137
- export function toDefinition(definition: model.CallHierarchyItem): CallHierarchyItem;
138
- export function toDefinition(definition: model.CallHierarchyItem | undefined): CallHierarchyItem | undefined;
139
- export function toDefinition(definition: model.CallHierarchyItem | undefined): CallHierarchyItem | undefined {
140
- if (!definition) {
141
- return undefined;
142
- }
143
- return {
144
- ...definition,
145
- kind: SymbolKindConverter.toSymbolKind(definition.kind),
146
- range: toRange(definition.range),
147
- selectionRange: toRange(definition.selectionRange),
148
- };
149
- }
150
-
151
- export function fromDefinition(definition: CallHierarchyItem): model.CallHierarchyItem {
152
- return {
153
- ...definition,
154
- kind: SymbolKindConverter.fromSymbolKind(definition.kind),
155
- range: fromRange(definition.range),
156
- selectionRange: fromRange(definition.range),
157
- };
158
- }
159
-
160
- export function toCaller(caller: model.CallHierarchyIncomingCall): CallHierarchyIncomingCall {
161
- return {
162
- from: toDefinition(caller.from),
163
- fromRanges: caller.fromRanges.map(toRange)
164
- };
165
- }
166
-
167
- export function fromCaller(caller: CallHierarchyIncomingCall): model.CallHierarchyIncomingCall {
168
- return {
169
- from: fromDefinition(caller.from),
170
- fromRanges: caller.fromRanges.map(fromRange)
171
- };
172
- }
173
-
174
- export function toCallee(callee: model.CallHierarchyOutgoingCall): CallHierarchyOutgoingCall {
175
- return {
176
- to: toDefinition(callee.to),
177
- fromRanges: callee.fromRanges.map(toRange),
178
- };
179
- }
180
-
181
- export function fromCallHierarchyCallerToModelCallHierarchyIncomingCall(caller: CallHierarchyIncomingCall): model.CallHierarchyIncomingCall {
182
- return {
183
- from: fromDefinition(caller.from),
184
- fromRanges: caller.fromRanges.map(fromRange),
185
- };
186
- }
187
-
188
- export function fromCallHierarchyCalleeToModelCallHierarchyOutgoingCall(callee: CallHierarchyOutgoingCall): model.CallHierarchyOutgoingCall {
189
- return {
190
- to: fromDefinition(callee.to),
191
- fromRanges: callee.fromRanges.map(fromRange),
192
- };
193
- }