@theia/editor 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 +4 -4
- package/src/browser/editor-contribution.ts +26 -8
- package/src/browser/editor-frontend-module.ts +6 -0
- package/src/browser/index.ts +2 -0
- package/src/browser/split-editor-contribution.ts +46 -0
- package/src/browser/text-editor-split-contribution.ts +50 -0
- package/lib/browser/decorations/editor-decoration-style.d.ts +0 -9
- package/lib/browser/decorations/editor-decoration-style.d.ts.map +0 -1
- package/lib/browser/decorations/editor-decoration-style.js +0 -37
- package/lib/browser/decorations/editor-decoration-style.js.map +0 -1
- package/lib/browser/decorations/editor-decoration.d.ts +0 -119
- package/lib/browser/decorations/editor-decoration.d.ts.map +0 -1
- package/lib/browser/decorations/editor-decoration.js +0 -38
- package/lib/browser/decorations/editor-decoration.js.map +0 -1
- package/lib/browser/decorations/editor-decorator.d.ts +0 -7
- package/lib/browser/decorations/editor-decorator.d.ts.map +0 -1
- package/lib/browser/decorations/editor-decorator.js +0 -39
- package/lib/browser/decorations/editor-decorator.js.map +0 -1
- package/lib/browser/decorations/index.d.ts +0 -4
- package/lib/browser/decorations/index.d.ts.map +0 -1
- package/lib/browser/decorations/index.js +0 -22
- package/lib/browser/decorations/index.js.map +0 -1
- package/lib/browser/diff-navigator.d.ts +0 -10
- package/lib/browser/diff-navigator.d.ts.map +0 -1
- package/lib/browser/diff-navigator.js +0 -20
- package/lib/browser/diff-navigator.js.map +0 -1
- package/lib/browser/editor-command.d.ts +0 -102
- package/lib/browser/editor-command.d.ts.map +0 -1
- package/lib/browser/editor-command.js +0 -402
- package/lib/browser/editor-command.js.map +0 -1
- package/lib/browser/editor-contribution.d.ts +0 -30
- package/lib/browser/editor-contribution.d.ts.map +0 -1
- package/lib/browser/editor-contribution.js +0 -206
- package/lib/browser/editor-contribution.js.map +0 -1
- package/lib/browser/editor-frontend-module.d.ts +0 -6
- package/lib/browser/editor-frontend-module.d.ts.map +0 -1
- package/lib/browser/editor-frontend-module.js +0 -83
- package/lib/browser/editor-frontend-module.js.map +0 -1
- package/lib/browser/editor-keybinding.d.ts +0 -6
- package/lib/browser/editor-keybinding.d.ts.map +0 -1
- package/lib/browser/editor-keybinding.js +0 -51
- package/lib/browser/editor-keybinding.js.map +0 -1
- package/lib/browser/editor-language-quick-pick-service.d.ts +0 -12
- package/lib/browser/editor-language-quick-pick-service.d.ts.map +0 -1
- package/lib/browser/editor-language-quick-pick-service.js +0 -77
- package/lib/browser/editor-language-quick-pick-service.js.map +0 -1
- package/lib/browser/editor-linenumber-contribution.d.ts +0 -16
- package/lib/browser/editor-linenumber-contribution.d.ts.map +0 -1
- package/lib/browser/editor-linenumber-contribution.js +0 -89
- package/lib/browser/editor-linenumber-contribution.js.map +0 -1
- package/lib/browser/editor-manager.d.ts +0 -135
- package/lib/browser/editor-manager.d.ts.map +0 -1
- package/lib/browser/editor-manager.js +0 -472
- package/lib/browser/editor-manager.js.map +0 -1
- package/lib/browser/editor-menu.d.ts +0 -51
- package/lib/browser/editor-menu.d.ts.map +0 -1
- package/lib/browser/editor-menu.js +0 -208
- package/lib/browser/editor-menu.js.map +0 -1
- package/lib/browser/editor-navigation-contribution.d.ts +0 -68
- package/lib/browser/editor-navigation-contribution.d.ts.map +0 -1
- package/lib/browser/editor-navigation-contribution.js +0 -324
- package/lib/browser/editor-navigation-contribution.js.map +0 -1
- package/lib/browser/editor-variable-contribution.d.ts +0 -9
- package/lib/browser/editor-variable-contribution.d.ts.map +0 -1
- package/lib/browser/editor-variable-contribution.js +0 -65
- package/lib/browser/editor-variable-contribution.js.map +0 -1
- package/lib/browser/editor-widget-factory.d.ts +0 -18
- package/lib/browser/editor-widget-factory.d.ts.map +0 -1
- package/lib/browser/editor-widget-factory.js +0 -84
- package/lib/browser/editor-widget-factory.js.map +0 -1
- package/lib/browser/editor-widget.d.ts +0 -28
- package/lib/browser/editor-widget.d.ts.map +0 -1
- package/lib/browser/editor-widget.js +0 -130
- package/lib/browser/editor-widget.js.map +0 -1
- package/lib/browser/editor.d.ts +0 -311
- package/lib/browser/editor.d.ts.map +0 -1
- package/lib/browser/editor.js +0 -104
- package/lib/browser/editor.js.map +0 -1
- package/lib/browser/index.d.ts +0 -10
- package/lib/browser/index.d.ts.map +0 -1
- package/lib/browser/index.js +0 -28
- package/lib/browser/index.js.map +0 -1
- package/lib/browser/language-status/editor-language-status-service.d.ts +0 -78
- package/lib/browser/language-status/editor-language-status-service.d.ts.map +0 -1
- package/lib/browser/language-status/editor-language-status-service.js +0 -244
- package/lib/browser/language-status/editor-language-status-service.js.map +0 -1
- package/lib/browser/navigation/navigation-location-service.d.ts +0 -132
- package/lib/browser/navigation/navigation-location-service.d.ts.map +0 -1
- package/lib/browser/navigation/navigation-location-service.js +0 -352
- package/lib/browser/navigation/navigation-location-service.js.map +0 -1
- package/lib/browser/navigation/navigation-location-service.spec.d.ts +0 -2
- package/lib/browser/navigation/navigation-location-service.spec.d.ts.map +0 -1
- package/lib/browser/navigation/navigation-location-service.spec.js +0 -185
- package/lib/browser/navigation/navigation-location-service.spec.js.map +0 -1
- package/lib/browser/navigation/navigation-location-similarity.d.ts +0 -16
- package/lib/browser/navigation/navigation-location-similarity.d.ts.map +0 -1
- package/lib/browser/navigation/navigation-location-similarity.js +0 -58
- package/lib/browser/navigation/navigation-location-similarity.js.map +0 -1
- package/lib/browser/navigation/navigation-location-similarity.spec.d.ts +0 -2
- package/lib/browser/navigation/navigation-location-similarity.spec.d.ts.map +0 -1
- package/lib/browser/navigation/navigation-location-similarity.spec.js +0 -33
- package/lib/browser/navigation/navigation-location-similarity.spec.js.map +0 -1
- package/lib/browser/navigation/navigation-location-updater.d.ts +0 -36
- package/lib/browser/navigation/navigation-location-updater.d.ts.map +0 -1
- package/lib/browser/navigation/navigation-location-updater.js +0 -206
- package/lib/browser/navigation/navigation-location-updater.js.map +0 -1
- package/lib/browser/navigation/navigation-location-updater.spec.d.ts +0 -2
- package/lib/browser/navigation/navigation-location-updater.spec.d.ts.map +0 -1
- package/lib/browser/navigation/navigation-location-updater.spec.js +0 -178
- package/lib/browser/navigation/navigation-location-updater.spec.js.map +0 -1
- package/lib/browser/navigation/navigation-location.d.ts +0 -192
- package/lib/browser/navigation/navigation-location.d.ts.map +0 -1
- package/lib/browser/navigation/navigation-location.js +0 -301
- package/lib/browser/navigation/navigation-location.js.map +0 -1
- package/lib/browser/navigation/test/mock-navigation-location-updater.d.ts +0 -16
- package/lib/browser/navigation/test/mock-navigation-location-updater.d.ts.map +0 -1
- package/lib/browser/navigation/test/mock-navigation-location-updater.js +0 -39
- package/lib/browser/navigation/test/mock-navigation-location-updater.js.map +0 -1
- package/lib/browser/quick-editor-service.d.ts +0 -17
- package/lib/browser/quick-editor-service.d.ts.map +0 -1
- package/lib/browser/quick-editor-service.js +0 -102
- package/lib/browser/quick-editor-service.js.map +0 -1
- package/lib/browser/undo-redo-service.d.ts +0 -24
- package/lib/browser/undo-redo-service.d.ts.map +0 -1
- package/lib/browser/undo-redo-service.js +0 -106
- package/lib/browser/undo-redo-service.js.map +0 -1
- package/lib/common/editor-generated-preference-schema.d.ts +0 -303
- package/lib/common/editor-generated-preference-schema.d.ts.map +0 -1
- package/lib/common/editor-generated-preference-schema.js +0 -2666
- package/lib/common/editor-generated-preference-schema.js.map +0 -1
- package/lib/common/editor-preferences.d.ts +0 -42
- package/lib/common/editor-preferences.d.ts.map +0 -1
- package/lib/common/editor-preferences.js +0 -179
- package/lib/common/editor-preferences.js.map +0 -1
- package/lib/common/language-selector.d.ts +0 -14
- package/lib/common/language-selector.d.ts.map +0 -1
- package/lib/common/language-selector.js +0 -91
- package/lib/common/language-selector.js.map +0 -1
- package/lib/node/editor-backend-module.d.ts +0 -4
- package/lib/node/editor-backend-module.d.ts.map +0 -1
- package/lib/node/editor-backend-module.js +0 -23
- package/lib/node/editor-backend-module.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,192 +0,0 @@
|
|
|
1
|
-
import URI from '@theia/core/lib/common/uri';
|
|
2
|
-
import { Position, Range, TextDocumentContentChangeDelta } from '../editor';
|
|
3
|
-
export { Position, Range };
|
|
4
|
-
export declare namespace NavigationLocation {
|
|
5
|
-
/**
|
|
6
|
-
* The navigation location type.
|
|
7
|
-
*/
|
|
8
|
-
enum Type {
|
|
9
|
-
/**
|
|
10
|
-
* Cursor position change type.
|
|
11
|
-
*/
|
|
12
|
-
CURSOR = 0,
|
|
13
|
-
/**
|
|
14
|
-
* Text selection change type.
|
|
15
|
-
*/
|
|
16
|
-
SELECTION = 1,
|
|
17
|
-
/**
|
|
18
|
-
* Content change type.
|
|
19
|
-
*/
|
|
20
|
-
CONTENT_CHANGE = 2
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* The type of the context for the navigation location.
|
|
24
|
-
*/
|
|
25
|
-
type Context = Position | Range | TextDocumentContentChangeDelta;
|
|
26
|
-
namespace Context {
|
|
27
|
-
/**
|
|
28
|
-
* Returns with the type for the context.
|
|
29
|
-
*/
|
|
30
|
-
function getType(context: Context): Type;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Representation of a navigation location in a text editor.
|
|
35
|
-
*/
|
|
36
|
-
export interface NavigationLocation {
|
|
37
|
-
/**
|
|
38
|
-
* The URI of the resource opened in the editor.
|
|
39
|
-
*/
|
|
40
|
-
readonly uri: URI;
|
|
41
|
-
/**
|
|
42
|
-
* The type of the navigation location.
|
|
43
|
-
*/
|
|
44
|
-
readonly type: NavigationLocation.Type;
|
|
45
|
-
/**
|
|
46
|
-
* Context of the navigation location.
|
|
47
|
-
*/
|
|
48
|
-
readonly context: NavigationLocation.Context;
|
|
49
|
-
}
|
|
50
|
-
export declare namespace NavigationLocation {
|
|
51
|
-
/**
|
|
52
|
-
* Transforms the location into an object that can be safely serialized.
|
|
53
|
-
*/
|
|
54
|
-
function toObject(location: NavigationLocation): object;
|
|
55
|
-
/**
|
|
56
|
-
* Returns with the navigation location object from its serialized counterpart.
|
|
57
|
-
*/
|
|
58
|
-
function fromObject(object: Partial<NavigationLocation>): NavigationLocation | undefined;
|
|
59
|
-
/**
|
|
60
|
-
* Returns with the context of the location as a `Range`.
|
|
61
|
-
*/
|
|
62
|
-
function range(location: NavigationLocation): Range;
|
|
63
|
-
/**
|
|
64
|
-
* Creates a new cursor location.
|
|
65
|
-
*/
|
|
66
|
-
function create(uri: URI | {
|
|
67
|
-
uri: URI;
|
|
68
|
-
} | string, context: Position): CursorLocation;
|
|
69
|
-
/**
|
|
70
|
-
* Creates a new selection location.
|
|
71
|
-
*/
|
|
72
|
-
function create(uri: URI | {
|
|
73
|
-
uri: URI;
|
|
74
|
-
} | string, context: Range): SelectionLocation;
|
|
75
|
-
/**
|
|
76
|
-
* Creates a new text content change location type.
|
|
77
|
-
*/
|
|
78
|
-
function create(uri: URI | {
|
|
79
|
-
uri: URI;
|
|
80
|
-
} | string, context: TextDocumentContentChangeDelta): ContentChangeLocation;
|
|
81
|
-
/**
|
|
82
|
-
* Returns with the human-consumable (JSON) string representation of the location argument.
|
|
83
|
-
*/
|
|
84
|
-
function toString(location: NavigationLocation): string;
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Representation of a closed editor.
|
|
88
|
-
*/
|
|
89
|
-
export interface RecentlyClosedEditor {
|
|
90
|
-
/**
|
|
91
|
-
* The uri of the closed editor.
|
|
92
|
-
*/
|
|
93
|
-
readonly uri: URI;
|
|
94
|
-
/**
|
|
95
|
-
* The serializable view state of the closed editor.
|
|
96
|
-
*/
|
|
97
|
-
readonly viewState: object;
|
|
98
|
-
}
|
|
99
|
-
export declare namespace RecentlyClosedEditor {
|
|
100
|
-
/**
|
|
101
|
-
* Transform a RecentlyClosedEditor into an object for storing.
|
|
102
|
-
*
|
|
103
|
-
* @param closedEditor the editor needs to be transformed.
|
|
104
|
-
*/
|
|
105
|
-
function toObject(closedEditor: RecentlyClosedEditor): object;
|
|
106
|
-
/**
|
|
107
|
-
* Transform the given object to a RecentlyClosedEditor object if possible.
|
|
108
|
-
*/
|
|
109
|
-
function fromObject(object: Partial<RecentlyClosedEditor>): RecentlyClosedEditor | undefined;
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* Navigation location representing the cursor location change.
|
|
113
|
-
*/
|
|
114
|
-
export interface CursorLocation extends NavigationLocation {
|
|
115
|
-
/**
|
|
116
|
-
* The type is always `cursor`.
|
|
117
|
-
*/
|
|
118
|
-
readonly type: NavigationLocation.Type.CURSOR;
|
|
119
|
-
/**
|
|
120
|
-
* The context for the location, that is always a position.
|
|
121
|
-
*/
|
|
122
|
-
readonly context: Position;
|
|
123
|
-
}
|
|
124
|
-
export declare namespace CursorLocation {
|
|
125
|
-
/**
|
|
126
|
-
* `true` if the argument is a cursor location. Otherwise, `false`.
|
|
127
|
-
*/
|
|
128
|
-
function is(location: NavigationLocation): location is CursorLocation;
|
|
129
|
-
/**
|
|
130
|
-
* Returns with the serialized format of the position argument.
|
|
131
|
-
*/
|
|
132
|
-
function toObject(context: Position): object;
|
|
133
|
-
/**
|
|
134
|
-
* Returns with the position from its serializable counterpart, or `undefined`.
|
|
135
|
-
*/
|
|
136
|
-
function fromObject(object: Partial<Position>): Position | undefined;
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* Representation of a selection location.
|
|
140
|
-
*/
|
|
141
|
-
export interface SelectionLocation extends NavigationLocation {
|
|
142
|
-
/**
|
|
143
|
-
* The `selection` type.
|
|
144
|
-
*/
|
|
145
|
-
readonly type: NavigationLocation.Type.SELECTION;
|
|
146
|
-
/**
|
|
147
|
-
* The context of the selection; a range.
|
|
148
|
-
*/
|
|
149
|
-
readonly context: Range;
|
|
150
|
-
}
|
|
151
|
-
export declare namespace SelectionLocation {
|
|
152
|
-
/**
|
|
153
|
-
* `true` if the argument is a selection location.
|
|
154
|
-
*/
|
|
155
|
-
function is(location: NavigationLocation): location is SelectionLocation;
|
|
156
|
-
/**
|
|
157
|
-
* Converts the range argument into a serializable object.
|
|
158
|
-
*/
|
|
159
|
-
function toObject(context: Range): object;
|
|
160
|
-
/**
|
|
161
|
-
* Creates a range object from its serializable counterpart. Returns with `undefined` if the argument cannot be converted into a range.
|
|
162
|
-
*/
|
|
163
|
-
function fromObject(object: Partial<Range>): Range | undefined;
|
|
164
|
-
}
|
|
165
|
-
/**
|
|
166
|
-
* Content change location type.
|
|
167
|
-
*/
|
|
168
|
-
export interface ContentChangeLocation extends NavigationLocation {
|
|
169
|
-
/**
|
|
170
|
-
* The type, that is always `content change`.
|
|
171
|
-
*/
|
|
172
|
-
readonly type: NavigationLocation.Type.CONTENT_CHANGE;
|
|
173
|
-
/**
|
|
174
|
-
* A text document content change deltas as the context.
|
|
175
|
-
*/
|
|
176
|
-
readonly context: TextDocumentContentChangeDelta;
|
|
177
|
-
}
|
|
178
|
-
export declare namespace ContentChangeLocation {
|
|
179
|
-
/**
|
|
180
|
-
* `true` if the argument is a content change location. Otherwise, `false`.
|
|
181
|
-
*/
|
|
182
|
-
function is(location: NavigationLocation): location is ContentChangeLocation;
|
|
183
|
-
/**
|
|
184
|
-
* Returns with a serializable object representing the arguments.
|
|
185
|
-
*/
|
|
186
|
-
function toObject(context: TextDocumentContentChangeDelta): object;
|
|
187
|
-
/**
|
|
188
|
-
* Returns with a text document change delta for the argument. `undefined` if the argument cannot be mapped to a content change delta.
|
|
189
|
-
*/
|
|
190
|
-
function fromObject(object: Partial<TextDocumentContentChangeDelta>): TextDocumentContentChangeDelta | undefined;
|
|
191
|
-
}
|
|
192
|
-
//# sourceMappingURL=navigation-location.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"navigation-location.d.ts","sourceRoot":"","sources":["../../../src/browser/navigation/navigation-location.ts"],"names":[],"mappings":"AAgBA,OAAO,GAAG,MAAM,4BAA4B,CAA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AACH,MAAM,WAAW,iBAAkB,SAAQ,kBAAkB;IAEzD;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC,IAAI,CAAC,SAAS,CAAC;IAEjD;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,KAAK,CAAC;CAE3B;AAED,yBAAiB,iBAAiB,CAAC;IAE/B;;OAEG;IACH,SAAgB,EAAE,CAAC,QAAQ,EAAE,kBAAkB,GAAG,QAAQ,IAAI,iBAAiB,CAE9E;IAED;;OAEG;IACH,SAAgB,QAAQ,CAAC,OAAO,EAAE,KAAK,GAAG,MAAM,CAM/C;IAED;;OAEG;IACH,SAAgB,UAAU,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,GAAG,KAAK,GAAG,SAAS,CAYpE;CACJ;AAED;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,kBAAkB;IAE7D;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC,IAAI,CAAC,cAAc,CAAC;IAEtD;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,8BAA8B,CAAC;CAEpD;AAED,yBAAiB,qBAAqB,CAAC;IAEnC;;OAEG;IACH,SAAgB,EAAE,CAAC,QAAQ,EAAE,kBAAkB,GAAG,QAAQ,IAAI,qBAAqB,CAElF;IAED;;OAEG;IACH,SAAgB,QAAQ,CAAC,OAAO,EAAE,8BAA8B,GAAG,MAAM,CAMxE;IAED;;OAEG;IACH,SAAgB,UAAU,CAAC,MAAM,EAAE,OAAO,CAAC,8BAA8B,CAAC,GAAG,8BAA8B,GAAG,SAAS,CAetH;CAEJ"}
|
|
@@ -1,301 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.ContentChangeLocation = exports.SelectionLocation = exports.CursorLocation = exports.RecentlyClosedEditor = exports.NavigationLocation = exports.Range = exports.Position = void 0;
|
|
19
|
-
const uri_1 = require("@theia/core/lib/common/uri");
|
|
20
|
-
const editor_1 = require("../editor");
|
|
21
|
-
Object.defineProperty(exports, "Position", { enumerable: true, get: function () { return editor_1.Position; } });
|
|
22
|
-
Object.defineProperty(exports, "Range", { enumerable: true, get: function () { return editor_1.Range; } });
|
|
23
|
-
var NavigationLocation;
|
|
24
|
-
(function (NavigationLocation) {
|
|
25
|
-
/**
|
|
26
|
-
* The navigation location type.
|
|
27
|
-
*/
|
|
28
|
-
let Type;
|
|
29
|
-
(function (Type) {
|
|
30
|
-
/**
|
|
31
|
-
* Cursor position change type.
|
|
32
|
-
*/
|
|
33
|
-
Type[Type["CURSOR"] = 0] = "CURSOR";
|
|
34
|
-
/**
|
|
35
|
-
* Text selection change type.
|
|
36
|
-
*/
|
|
37
|
-
Type[Type["SELECTION"] = 1] = "SELECTION";
|
|
38
|
-
/**
|
|
39
|
-
* Content change type.
|
|
40
|
-
*/
|
|
41
|
-
Type[Type["CONTENT_CHANGE"] = 2] = "CONTENT_CHANGE";
|
|
42
|
-
})(Type = NavigationLocation.Type || (NavigationLocation.Type = {}));
|
|
43
|
-
let Context;
|
|
44
|
-
(function (Context) {
|
|
45
|
-
/**
|
|
46
|
-
* Returns with the type for the context.
|
|
47
|
-
*/
|
|
48
|
-
function getType(context) {
|
|
49
|
-
if (editor_1.Position.is(context)) {
|
|
50
|
-
return Type.CURSOR;
|
|
51
|
-
}
|
|
52
|
-
if (editor_1.Range.is(context)) {
|
|
53
|
-
return Type.SELECTION;
|
|
54
|
-
}
|
|
55
|
-
if (editor_1.TextDocumentContentChangeDelta.is(context)) {
|
|
56
|
-
return Type.CONTENT_CHANGE;
|
|
57
|
-
}
|
|
58
|
-
throw new Error(`Unexpected context for type: ${context}.`);
|
|
59
|
-
}
|
|
60
|
-
Context.getType = getType;
|
|
61
|
-
})(Context = NavigationLocation.Context || (NavigationLocation.Context = {}));
|
|
62
|
-
})(NavigationLocation || (exports.NavigationLocation = NavigationLocation = {}));
|
|
63
|
-
(function (NavigationLocation) {
|
|
64
|
-
/**
|
|
65
|
-
* Transforms the location into an object that can be safely serialized.
|
|
66
|
-
*/
|
|
67
|
-
function toObject(location) {
|
|
68
|
-
const { uri, type } = location;
|
|
69
|
-
const context = (() => {
|
|
70
|
-
if (CursorLocation.is(location)) {
|
|
71
|
-
return CursorLocation.toObject(location.context);
|
|
72
|
-
}
|
|
73
|
-
if (SelectionLocation.is(location)) {
|
|
74
|
-
return SelectionLocation.toObject(location.context);
|
|
75
|
-
}
|
|
76
|
-
if (ContentChangeLocation.is(location)) {
|
|
77
|
-
return ContentChangeLocation.toObject(location.context);
|
|
78
|
-
}
|
|
79
|
-
})();
|
|
80
|
-
return {
|
|
81
|
-
uri: uri.toString(),
|
|
82
|
-
type,
|
|
83
|
-
context
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
NavigationLocation.toObject = toObject;
|
|
87
|
-
/**
|
|
88
|
-
* Returns with the navigation location object from its serialized counterpart.
|
|
89
|
-
*/
|
|
90
|
-
function fromObject(object) {
|
|
91
|
-
const { uri, type } = object;
|
|
92
|
-
if (uri !== undefined && type !== undefined && object.context !== undefined) {
|
|
93
|
-
const context = (() => {
|
|
94
|
-
switch (type) {
|
|
95
|
-
case NavigationLocation.Type.CURSOR: return CursorLocation.fromObject(object.context);
|
|
96
|
-
case NavigationLocation.Type.SELECTION: return SelectionLocation.fromObject(object.context);
|
|
97
|
-
case NavigationLocation.Type.CONTENT_CHANGE: return ContentChangeLocation.fromObject(object.context);
|
|
98
|
-
}
|
|
99
|
-
})();
|
|
100
|
-
if (context) {
|
|
101
|
-
return {
|
|
102
|
-
uri: toUri(uri),
|
|
103
|
-
context,
|
|
104
|
-
type
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
return undefined;
|
|
109
|
-
}
|
|
110
|
-
NavigationLocation.fromObject = fromObject;
|
|
111
|
-
/**
|
|
112
|
-
* Returns with the context of the location as a `Range`.
|
|
113
|
-
*/
|
|
114
|
-
function range(location) {
|
|
115
|
-
if (CursorLocation.is(location)) {
|
|
116
|
-
return editor_1.Range.create(location.context, location.context);
|
|
117
|
-
}
|
|
118
|
-
if (SelectionLocation.is(location)) {
|
|
119
|
-
return location.context;
|
|
120
|
-
}
|
|
121
|
-
if (ContentChangeLocation.is(location)) {
|
|
122
|
-
return location.context.range;
|
|
123
|
-
}
|
|
124
|
-
throw new Error(`Unexpected navigation location: ${location}.`);
|
|
125
|
-
}
|
|
126
|
-
NavigationLocation.range = range;
|
|
127
|
-
/**
|
|
128
|
-
* Creates a new navigation location object.
|
|
129
|
-
*/
|
|
130
|
-
function create(uri, context) {
|
|
131
|
-
const type = NavigationLocation.Context.getType(context);
|
|
132
|
-
return {
|
|
133
|
-
uri: toUri(uri),
|
|
134
|
-
type,
|
|
135
|
-
context
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
NavigationLocation.create = create;
|
|
139
|
-
/**
|
|
140
|
-
* Returns with the human-consumable (JSON) string representation of the location argument.
|
|
141
|
-
*/
|
|
142
|
-
function toString(location) {
|
|
143
|
-
return JSON.stringify(toObject(location));
|
|
144
|
-
}
|
|
145
|
-
NavigationLocation.toString = toString;
|
|
146
|
-
})(NavigationLocation || (exports.NavigationLocation = NavigationLocation = {}));
|
|
147
|
-
function toUri(arg) {
|
|
148
|
-
if (arg instanceof uri_1.default) {
|
|
149
|
-
return arg;
|
|
150
|
-
}
|
|
151
|
-
if (typeof arg === 'string') {
|
|
152
|
-
return new uri_1.default(arg);
|
|
153
|
-
}
|
|
154
|
-
return arg.uri;
|
|
155
|
-
}
|
|
156
|
-
var RecentlyClosedEditor;
|
|
157
|
-
(function (RecentlyClosedEditor) {
|
|
158
|
-
/**
|
|
159
|
-
* Transform a RecentlyClosedEditor into an object for storing.
|
|
160
|
-
*
|
|
161
|
-
* @param closedEditor the editor needs to be transformed.
|
|
162
|
-
*/
|
|
163
|
-
function toObject(closedEditor) {
|
|
164
|
-
const { uri, viewState } = closedEditor;
|
|
165
|
-
return {
|
|
166
|
-
uri: uri.toString(),
|
|
167
|
-
viewState: viewState
|
|
168
|
-
};
|
|
169
|
-
}
|
|
170
|
-
RecentlyClosedEditor.toObject = toObject;
|
|
171
|
-
/**
|
|
172
|
-
* Transform the given object to a RecentlyClosedEditor object if possible.
|
|
173
|
-
*/
|
|
174
|
-
function fromObject(object) {
|
|
175
|
-
const { uri, viewState } = object;
|
|
176
|
-
if (uri !== undefined && viewState !== undefined) {
|
|
177
|
-
return {
|
|
178
|
-
uri: toUri(uri),
|
|
179
|
-
viewState: viewState
|
|
180
|
-
};
|
|
181
|
-
}
|
|
182
|
-
return undefined;
|
|
183
|
-
}
|
|
184
|
-
RecentlyClosedEditor.fromObject = fromObject;
|
|
185
|
-
})(RecentlyClosedEditor || (exports.RecentlyClosedEditor = RecentlyClosedEditor = {}));
|
|
186
|
-
var CursorLocation;
|
|
187
|
-
(function (CursorLocation) {
|
|
188
|
-
/**
|
|
189
|
-
* `true` if the argument is a cursor location. Otherwise, `false`.
|
|
190
|
-
*/
|
|
191
|
-
function is(location) {
|
|
192
|
-
return location.type === NavigationLocation.Type.CURSOR;
|
|
193
|
-
}
|
|
194
|
-
CursorLocation.is = is;
|
|
195
|
-
/**
|
|
196
|
-
* Returns with the serialized format of the position argument.
|
|
197
|
-
*/
|
|
198
|
-
function toObject(context) {
|
|
199
|
-
const { line, character } = context;
|
|
200
|
-
return {
|
|
201
|
-
line,
|
|
202
|
-
character
|
|
203
|
-
};
|
|
204
|
-
}
|
|
205
|
-
CursorLocation.toObject = toObject;
|
|
206
|
-
/**
|
|
207
|
-
* Returns with the position from its serializable counterpart, or `undefined`.
|
|
208
|
-
*/
|
|
209
|
-
function fromObject(object) {
|
|
210
|
-
if (object.line !== undefined && object.character !== undefined) {
|
|
211
|
-
const { line, character } = object;
|
|
212
|
-
return {
|
|
213
|
-
line,
|
|
214
|
-
character
|
|
215
|
-
};
|
|
216
|
-
}
|
|
217
|
-
return undefined;
|
|
218
|
-
}
|
|
219
|
-
CursorLocation.fromObject = fromObject;
|
|
220
|
-
})(CursorLocation || (exports.CursorLocation = CursorLocation = {}));
|
|
221
|
-
var SelectionLocation;
|
|
222
|
-
(function (SelectionLocation) {
|
|
223
|
-
/**
|
|
224
|
-
* `true` if the argument is a selection location.
|
|
225
|
-
*/
|
|
226
|
-
function is(location) {
|
|
227
|
-
return location.type === NavigationLocation.Type.SELECTION;
|
|
228
|
-
}
|
|
229
|
-
SelectionLocation.is = is;
|
|
230
|
-
/**
|
|
231
|
-
* Converts the range argument into a serializable object.
|
|
232
|
-
*/
|
|
233
|
-
function toObject(context) {
|
|
234
|
-
const { start, end } = context;
|
|
235
|
-
return {
|
|
236
|
-
start: CursorLocation.toObject(start),
|
|
237
|
-
end: CursorLocation.toObject(end)
|
|
238
|
-
};
|
|
239
|
-
}
|
|
240
|
-
SelectionLocation.toObject = toObject;
|
|
241
|
-
/**
|
|
242
|
-
* Creates a range object from its serializable counterpart. Returns with `undefined` if the argument cannot be converted into a range.
|
|
243
|
-
*/
|
|
244
|
-
function fromObject(object) {
|
|
245
|
-
if (!!object.start && !!object.end) {
|
|
246
|
-
const start = CursorLocation.fromObject(object.start);
|
|
247
|
-
const end = CursorLocation.fromObject(object.end);
|
|
248
|
-
if (start && end) {
|
|
249
|
-
return {
|
|
250
|
-
start,
|
|
251
|
-
end
|
|
252
|
-
};
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
return undefined;
|
|
256
|
-
}
|
|
257
|
-
SelectionLocation.fromObject = fromObject;
|
|
258
|
-
})(SelectionLocation || (exports.SelectionLocation = SelectionLocation = {}));
|
|
259
|
-
var ContentChangeLocation;
|
|
260
|
-
(function (ContentChangeLocation) {
|
|
261
|
-
/**
|
|
262
|
-
* `true` if the argument is a content change location. Otherwise, `false`.
|
|
263
|
-
*/
|
|
264
|
-
function is(location) {
|
|
265
|
-
return location.type === NavigationLocation.Type.CONTENT_CHANGE;
|
|
266
|
-
}
|
|
267
|
-
ContentChangeLocation.is = is;
|
|
268
|
-
/**
|
|
269
|
-
* Returns with a serializable object representing the arguments.
|
|
270
|
-
*/
|
|
271
|
-
function toObject(context) {
|
|
272
|
-
return {
|
|
273
|
-
range: SelectionLocation.toObject(context.range),
|
|
274
|
-
rangeLength: context.rangeLength,
|
|
275
|
-
text: context.text
|
|
276
|
-
};
|
|
277
|
-
}
|
|
278
|
-
ContentChangeLocation.toObject = toObject;
|
|
279
|
-
/**
|
|
280
|
-
* Returns with a text document change delta for the argument. `undefined` if the argument cannot be mapped to a content change delta.
|
|
281
|
-
*/
|
|
282
|
-
function fromObject(object) {
|
|
283
|
-
if (!!object.range && object.rangeLength !== undefined && object.text !== undefined) {
|
|
284
|
-
const range = SelectionLocation.fromObject(object.range);
|
|
285
|
-
const rangeLength = object.rangeLength;
|
|
286
|
-
const text = object.text;
|
|
287
|
-
if (!!range) {
|
|
288
|
-
return {
|
|
289
|
-
range,
|
|
290
|
-
rangeLength: rangeLength,
|
|
291
|
-
text: text
|
|
292
|
-
};
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
else {
|
|
296
|
-
return undefined;
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
ContentChangeLocation.fromObject = fromObject;
|
|
300
|
-
})(ContentChangeLocation || (exports.ContentChangeLocation = ContentChangeLocation = {}));
|
|
301
|
-
//# sourceMappingURL=navigation-location.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"navigation-location.js","sourceRoot":"","sources":["../../../src/browser/navigation/navigation-location.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,oDAA6C;AAC7C,sCAA4E;AACnE,yFADA,iBAAQ,OACA;AAAE,sFADA,cAAK,OACA;AAExB,IAAiB,kBAAkB,CAiDlC;AAjDD,WAAiB,kBAAkB;IAE/B;;OAEG;IACH,IAAY,IAiBX;IAjBD,WAAY,IAAI;QAEZ;;WAEG;QACH,mCAAM,CAAA;QAEN;;WAEG;QACH,yCAAS,CAAA;QAET;;WAEG;QACH,mDAAc,CAAA;IAElB,CAAC,EAjBW,IAAI,GAAJ,uBAAI,KAAJ,uBAAI,QAiBf;IAOD,IAAiB,OAAO,CAkBvB;IAlBD,WAAiB,OAAO;QAEpB;;WAEG;QACH,SAAgB,OAAO,CAAC,OAAgB;YACpC,IAAI,iBAAQ,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;gBACvB,OAAO,IAAI,CAAC,MAAM,CAAC;YACvB,CAAC;YACD,IAAI,cAAK,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;gBACpB,OAAO,IAAI,CAAC,SAAS,CAAC;YAC1B,CAAC;YACD,IAAI,uCAA8B,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;gBAC7C,OAAO,IAAI,CAAC,cAAc,CAAC;YAC/B,CAAC;YACD,MAAM,IAAI,KA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AC,WAAW,KAAK,SAAS,IAAI,MAAM,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;YAClF,MAAM,KAAK,GAAG,iBAAiB,CAAC,UAAU,CAAC,MAAM,CAAC,KAAM,CAAC,CAAC;YAC1D,MAAM,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;YACvC,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;YACzB,IAAI,CAAC,CAAC,KAAK,EAAE,CAAC;gBACV,OAAO;oBACH,KAAK;oBACL,WAAW,EAAE,WAAY;oBACzB,IAAI,EAAE,IAAK;iBACd,CAAC;YACN,CAAC;QACL,CAAC;aAAM,CAAC;YACJ,OAAO,SAAS,CAAC;QACrB,CAAC;IACL,CAAC;IAfe,gCAAU,aAezB,CAAA;AAEL,CAAC,EAxCgB,qBAAqB,qCAArB,qBAAqB,QAwCrC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Range } from '../navigation-location';
|
|
2
|
-
import { NavigationLocationUpdater } from '../navigation-location-updater';
|
|
3
|
-
/**
|
|
4
|
-
* Navigation location updater with increased method visibility for testing.
|
|
5
|
-
*/
|
|
6
|
-
export declare class MockNavigationLocationUpdater extends NavigationLocationUpdater {
|
|
7
|
-
contained(subRange: Range, range: Range): boolean;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* NOOP navigation location updater for testing. Use this, if you want to avoid any
|
|
11
|
-
* location updates during the tests.
|
|
12
|
-
*/
|
|
13
|
-
export declare class NoopNavigationLocationUpdater extends NavigationLocationUpdater {
|
|
14
|
-
affects(): false;
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=mock-navigation-location-updater.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mock-navigation-location-updater.d.ts","sourceRoot":"","sources":["../../../../src/browser/navigation/test/mock-navigation-location-updater.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAE3E;;GAEG;AACH,qBAAa,6BAA8B,SAAQ,yBAAyB;IAE/D,SAAS,CAAC,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,GAAG,OAAO;CAI7D;AAED;;;GAGG;AACH,qBAAa,6BAA8B,SAAQ,yBAAyB;IAE/D,OAAO,IAAI,KAAK;CAI5B"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.NoopNavigationLocationUpdater = exports.MockNavigationLocationUpdater = void 0;
|
|
19
|
-
const navigation_location_updater_1 = require("../navigation-location-updater");
|
|
20
|
-
/**
|
|
21
|
-
* Navigation location updater with increased method visibility for testing.
|
|
22
|
-
*/
|
|
23
|
-
class MockNavigationLocationUpdater extends navigation_location_updater_1.NavigationLocationUpdater {
|
|
24
|
-
contained(subRange, range) {
|
|
25
|
-
return super.contained(subRange, range);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
exports.MockNavigationLocationUpdater = MockNavigationLocationUpdater;
|
|
29
|
-
/**
|
|
30
|
-
* NOOP navigation location updater for testing. Use this, if you want to avoid any
|
|
31
|
-
* location updates during the tests.
|
|
32
|
-
*/
|
|
33
|
-
class NoopNavigationLocationUpdater extends navigation_location_updater_1.NavigationLocationUpdater {
|
|
34
|
-
affects() {
|
|
35
|
-
return false;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
exports.NoopNavigationLocationUpdater = NoopNavigationLocationUpdater;
|
|
39
|
-
//# sourceMappingURL=mock-navigation-location-updater.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mock-navigation-location-updater.js","sourceRoot":"","sources":["../../../../src/browser/navigation/test/mock-navigation-location-updater.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;;;AAGhF,gFAA2E;AAE3E;;GAEG;AACH,MAAa,6BAA8B,SAAQ,uDAAyB;IAE/D,SAAS,CAAC,QAAe,EAAE,KAAY;QAC5C,OAAO,KAAK,CAAC,SAAS,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC5C,CAAC;CAEJ;AAND,sEAMC;AAED;;;GAGG;AACH,MAAa,6BAA8B,SAAQ,uDAAyB;IAE/D,OAAO;QACZ,OAAO,KAAK,CAAC;IACjB,CAAC;CAEJ;AAND,sEAMC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { CancellationToken } from '@theia/core/lib/common';
|
|
2
|
-
import { LabelProvider } from '@theia/core/lib/browser/label-provider';
|
|
3
|
-
import { QuickAccessProvider, QuickAccessRegistry, QuickAccessContribution } from '@theia/core/lib/browser/quick-input/quick-access';
|
|
4
|
-
import { QuickPickItem, QuickPickSeparator } from '@theia/core/lib/browser/quick-input/quick-input-service';
|
|
5
|
-
import { ApplicationShell, NavigatableWidget } from '@theia/core/lib/browser';
|
|
6
|
-
export declare class QuickEditorService implements QuickAccessContribution, QuickAccessProvider {
|
|
7
|
-
static PREFIX: string;
|
|
8
|
-
protected readonly labelProvider: LabelProvider;
|
|
9
|
-
protected readonly quickAccessRegistry: QuickAccessRegistry;
|
|
10
|
-
protected readonly shell: ApplicationShell;
|
|
11
|
-
protected groupLocalizations: string[];
|
|
12
|
-
registerQuickAccessProvider(): void;
|
|
13
|
-
getPicks(filter: string, token: CancellationToken): (QuickPickItem | QuickPickSeparator)[];
|
|
14
|
-
protected getGroupLocalization(index: number): string;
|
|
15
|
-
protected toItem(widget: NavigatableWidget): QuickPickItem;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=quick-editor-service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quick-editor-service.d.ts","sourceRoot":"","sources":["../../src/browser/quick-editor-service.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,iBAAiB,EAAiC,MAAM,wBAAwB,CAAC;AAC1F,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,kDAAkD,CAAC;AACrI,OAAO,EAAe,aAAa,EAAE,kBAAkB,EAAE,MAAM,yDAAyD,CAAC;AACzH,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAkB,MAAM,yBAAyB,CAAC;AAE9F,qBACa,kBAAmB,YAAW,uBAAuB,EAAE,mBAAmB;IACnF,MAAM,CAAC,MAAM,SAAU;IAEA,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IAC1C,SAAS,CAAC,QAAQ,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;IAC/D,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,gBAAgB,CAAC;IAErE,SAAS,CAAC,kBAAkB,EAAE,MAAM,EAAE,CAAM;IAE5C,2BAA2B,IAAI,IAAI;IASnC,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,iBAAiB,GAAG,CAAC,aAAa,GAAG,kBAAkB,CAAC,EAAE;IAiC1F,SAAS,CAAC,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAIrD,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,iBAAiB,GAAG,aAAa;CAc7D"}
|