@theia/editor 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/decorations/editor-decoration-style.d.ts +8 -8
- package/lib/browser/decorations/editor-decoration-style.js +36 -36
- package/lib/browser/decorations/editor-decoration.d.ts +106 -106
- package/lib/browser/decorations/editor-decoration.js +37 -37
- package/lib/browser/decorations/editor-decorator.d.ts +6 -6
- package/lib/browser/decorations/editor-decorator.js +43 -43
- package/lib/browser/decorations/index.d.ts +3 -3
- package/lib/browser/decorations/index.js +30 -30
- package/lib/browser/diff-navigator.d.ts +9 -10
- package/lib/browser/diff-navigator.d.ts.map +1 -1
- package/lib/browser/diff-navigator.js +19 -19
- package/lib/browser/diff-navigator.js.map +1 -1
- package/lib/browser/editor-command.d.ts +102 -102
- package/lib/browser/editor-command.js +426 -426
- package/lib/browser/editor-contribution.d.ts +26 -26
- package/lib/browser/editor-contribution.js +198 -198
- package/lib/browser/editor-frontend-module.d.ts +5 -5
- package/lib/browser/editor-frontend-module.js +74 -74
- package/lib/browser/editor-generated-preference-schema.d.ts +282 -249
- package/lib/browser/editor-generated-preference-schema.d.ts.map +1 -1
- package/lib/browser/editor-generated-preference-schema.js +2451 -2316
- package/lib/browser/editor-generated-preference-schema.js.map +1 -1
- package/lib/browser/editor-keybinding.d.ts +5 -5
- package/lib/browser/editor-keybinding.js +55 -55
- package/lib/browser/editor-linenumber-contribution.d.ts +15 -15
- package/lib/browser/editor-linenumber-contribution.d.ts.map +1 -1
- package/lib/browser/editor-linenumber-contribution.js +95 -96
- package/lib/browser/editor-linenumber-contribution.js.map +1 -1
- package/lib/browser/editor-manager.d.ts +115 -115
- package/lib/browser/editor-manager.js +428 -428
- package/lib/browser/editor-menu.d.ts +48 -48
- package/lib/browser/editor-menu.js +210 -210
- package/lib/browser/editor-navigation-contribution.d.ts +67 -67
- package/lib/browser/editor-navigation-contribution.js +343 -343
- package/lib/browser/editor-preferences.d.ts +41 -41
- package/lib/browser/editor-preferences.js +176 -176
- package/lib/browser/editor-variable-contribution.d.ts +8 -8
- package/lib/browser/editor-variable-contribution.js +64 -64
- package/lib/browser/editor-widget-factory.d.ts +17 -17
- package/lib/browser/editor-widget-factory.js +91 -91
- package/lib/browser/editor-widget.d.ts +24 -24
- package/lib/browser/editor-widget.d.ts.map +1 -1
- package/lib/browser/editor-widget.js +122 -114
- package/lib/browser/editor-widget.js.map +1 -1
- package/lib/browser/editor.d.ts +295 -293
- package/lib/browser/editor.d.ts.map +1 -1
- package/lib/browser/editor.js +103 -103
- package/lib/browser/editor.js.map +1 -1
- package/lib/browser/index.d.ts +10 -10
- package/lib/browser/index.js +37 -37
- package/lib/browser/language-status/editor-language-status-service.d.ts +77 -77
- package/lib/browser/language-status/editor-language-status-service.js +251 -251
- package/lib/browser/navigation/navigation-location-service.d.ts +103 -103
- package/lib/browser/navigation/navigation-location-service.js +281 -281
- package/lib/browser/navigation/navigation-location-service.spec.d.ts +1 -1
- package/lib/browser/navigation/navigation-location-service.spec.js +184 -184
- package/lib/browser/navigation/navigation-location-similarity.d.ts +15 -15
- package/lib/browser/navigation/navigation-location-similarity.js +62 -62
- package/lib/browser/navigation/navigation-location-similarity.spec.d.ts +1 -1
- package/lib/browser/navigation/navigation-location-similarity.spec.js +32 -32
- package/lib/browser/navigation/navigation-location-updater.d.ts +35 -35
- package/lib/browser/navigation/navigation-location-updater.js +210 -210
- package/lib/browser/navigation/navigation-location-updater.spec.d.ts +1 -1
- package/lib/browser/navigation/navigation-location-updater.spec.js +177 -177
- package/lib/browser/navigation/navigation-location.d.ts +191 -191
- package/lib/browser/navigation/navigation-location.js +300 -300
- package/lib/browser/navigation/test/mock-navigation-location-updater.d.ts +15 -15
- package/lib/browser/navigation/test/mock-navigation-location-updater.js +38 -38
- package/lib/browser/quick-editor-service.d.ts +16 -16
- package/lib/browser/quick-editor-service.js +109 -109
- package/lib/browser/undo-redo-service.d.ts +23 -23
- package/lib/browser/undo-redo-service.js +110 -110
- package/lib/common/language-selector.d.ts +13 -13
- package/lib/common/language-selector.js +90 -90
- package/lib/package.spec.js +25 -25
- package/package.json +5 -5
- package/src/browser/decorations/editor-decoration-style.ts +41 -41
- package/src/browser/decorations/editor-decoration.ts +127 -127
- package/src/browser/decorations/editor-decorator.ts +36 -36
- package/src/browser/decorations/index.ts +19 -19
- package/src/browser/diff-navigator.ts +27 -28
- package/src/browser/editor-command.ts +414 -414
- package/src/browser/editor-contribution.ts +185 -185
- package/src/browser/editor-frontend-module.ts +87 -87
- package/src/browser/editor-generated-preference-schema.ts +2707 -2539
- package/src/browser/editor-keybinding.ts +55 -55
- package/src/browser/editor-linenumber-contribution.ts +88 -89
- package/src/browser/editor-manager.ts +442 -442
- package/src/browser/editor-menu.ts +224 -224
- package/src/browser/editor-navigation-contribution.ts +343 -343
- package/src/browser/editor-preferences.ts +226 -226
- package/src/browser/editor-variable-contribution.ts +54 -54
- package/src/browser/editor-widget-factory.ts +82 -82
- package/src/browser/editor-widget.ts +137 -130
- package/src/browser/editor.ts +360 -358
- package/src/browser/index.ts +26 -26
- package/src/browser/language-status/editor-language-status-service.ts +271 -271
- package/src/browser/language-status/editor-language-status.css +101 -101
- package/src/browser/navigation/navigation-location-service.spec.ts +245 -245
- package/src/browser/navigation/navigation-location-service.ts +284 -284
- package/src/browser/navigation/navigation-location-similarity.spec.ts +46 -46
- package/src/browser/navigation/navigation-location-similarity.ts +58 -58
- package/src/browser/navigation/navigation-location-updater.spec.ts +197 -197
- package/src/browser/navigation/navigation-location-updater.ts +220 -220
- package/src/browser/navigation/navigation-location.ts +418 -418
- package/src/browser/navigation/test/mock-navigation-location-updater.ts +41 -41
- package/src/browser/quick-editor-service.ts +94 -94
- package/src/browser/style/index.css +19 -19
- package/src/browser/undo-redo-service.ts +120 -120
- package/src/common/language-selector.ts +104 -104
- package/src/package.spec.ts +28 -28
|
@@ -1,192 +1,192 @@
|
|
|
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
|
-
}
|
|
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
192
|
//# sourceMappingURL=navigation-location.d.ts.map
|