@difizen/libro-lsp 0.1.2
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/LICENSE +21 -0
- package/README.md +0 -0
- package/es/adapters/adapter.d.ts +255 -0
- package/es/adapters/adapter.d.ts.map +1 -0
- package/es/adapters/adapter.js +647 -0
- package/es/adapters/notebook-adapter.d.ts +150 -0
- package/es/adapters/notebook-adapter.d.ts.map +1 -0
- package/es/adapters/notebook-adapter.js +588 -0
- package/es/adapters/status-message.d.ts +48 -0
- package/es/adapters/status-message.d.ts.map +1 -0
- package/es/adapters/status-message.js +110 -0
- package/es/connection-manager.d.ts +199 -0
- package/es/connection-manager.d.ts.map +1 -0
- package/es/connection-manager.js +685 -0
- package/es/connection.d.ts +149 -0
- package/es/connection.d.ts.map +1 -0
- package/es/connection.js +591 -0
- package/es/extractors/index.d.ts +4 -0
- package/es/extractors/index.d.ts.map +1 -0
- package/es/extractors/index.js +6 -0
- package/es/extractors/manager.d.ts +31 -0
- package/es/extractors/manager.d.ts.map +1 -0
- package/es/extractors/manager.js +90 -0
- package/es/extractors/text-extractor.d.ts +56 -0
- package/es/extractors/text-extractor.d.ts.map +1 -0
- package/es/extractors/text-extractor.js +72 -0
- package/es/extractors/types.d.ts +68 -0
- package/es/extractors/types.d.ts.map +1 -0
- package/es/extractors/types.js +1 -0
- package/es/feature.d.ts +29 -0
- package/es/feature.d.ts.map +1 -0
- package/es/feature.js +85 -0
- package/es/index.d.ts +19 -0
- package/es/index.d.ts.map +1 -0
- package/es/index.js +21 -0
- package/es/lsp-app-contribution.d.ts +19 -0
- package/es/lsp-app-contribution.d.ts.map +1 -0
- package/es/lsp-app-contribution.js +155 -0
- package/es/lsp-protocol.d.ts +10 -0
- package/es/lsp-protocol.d.ts.map +1 -0
- package/es/lsp-protocol.js +1 -0
- package/es/lsp.d.ts +136 -0
- package/es/lsp.d.ts.map +1 -0
- package/es/lsp.js +141 -0
- package/es/manager.d.ts +142 -0
- package/es/manager.d.ts.map +1 -0
- package/es/manager.js +423 -0
- package/es/module.d.ts +3 -0
- package/es/module.d.ts.map +1 -0
- package/es/module.js +21 -0
- package/es/plugin.d.ts +56 -0
- package/es/plugin.d.ts.map +1 -0
- package/es/plugin.js +0 -0
- package/es/positioning.d.ts +66 -0
- package/es/positioning.d.ts.map +1 -0
- package/es/positioning.js +96 -0
- package/es/schema.d.ts +240 -0
- package/es/schema.d.ts.map +1 -0
- package/es/schema.js +0 -0
- package/es/tokens.d.ts +677 -0
- package/es/tokens.d.ts.map +1 -0
- package/es/tokens.js +183 -0
- package/es/utils.d.ts +33 -0
- package/es/utils.d.ts.map +1 -0
- package/es/utils.js +168 -0
- package/es/virtual/document.d.ts +546 -0
- package/es/virtual/document.d.ts.map +1 -0
- package/es/virtual/document.js +1263 -0
- package/es/ws-connection/server-capability-registration.d.ts +19 -0
- package/es/ws-connection/server-capability-registration.d.ts.map +1 -0
- package/es/ws-connection/server-capability-registration.js +51 -0
- package/es/ws-connection/types.d.ts +76 -0
- package/es/ws-connection/types.d.ts.map +1 -0
- package/es/ws-connection/types.js +1 -0
- package/es/ws-connection/ws-connection.d.ts +105 -0
- package/es/ws-connection/ws-connection.d.ts.map +1 -0
- package/es/ws-connection/ws-connection.js +301 -0
- package/package.json +67 -0
- package/src/adapters/adapter.ts +611 -0
- package/src/adapters/notebook-adapter.ts +463 -0
- package/src/adapters/status-message.ts +93 -0
- package/src/connection-manager.ts +626 -0
- package/src/connection.ts +570 -0
- package/src/extractors/index.ts +6 -0
- package/src/extractors/manager.ts +82 -0
- package/src/extractors/text-extractor.ts +94 -0
- package/src/extractors/types.ts +78 -0
- package/src/feature.ts +60 -0
- package/src/index.spec.ts +10 -0
- package/src/index.ts +21 -0
- package/src/lsp-app-contribution.ts +83 -0
- package/src/lsp-protocol.ts +10 -0
- package/src/lsp.ts +160 -0
- package/src/manager.ts +358 -0
- package/src/module.ts +32 -0
- package/src/plugin.ts +62 -0
- package/src/positioning.ts +121 -0
- package/src/schema.ts +249 -0
- package/src/tokens.ts +843 -0
- package/src/utils.ts +109 -0
- package/src/virtual/document.ts +1250 -0
- package/src/ws-connection/server-capability-registration.ts +77 -0
- package/src/ws-connection/types.ts +102 -0
- package/src/ws-connection/ws-connection.ts +320 -0
|
@@ -0,0 +1,546 @@
|
|
|
1
|
+
import type { IRange, IPosition as CodeEditorPosition } from '@difizen/libro-code-editor';
|
|
2
|
+
import { Emitter } from '@difizen/mana-app';
|
|
3
|
+
import type { Disposable, Event } from '@difizen/mana-app';
|
|
4
|
+
import type { IForeignCodeExtractor } from '../extractors/types.js';
|
|
5
|
+
import type { LanguageIdentifier } from '../lsp.js';
|
|
6
|
+
import type { Position, IEditorPosition, IRootPosition, ISourcePosition, IVirtualPosition } from '../positioning.js';
|
|
7
|
+
import type { Document, ILSPCodeExtractorsManager } from '../tokens.js';
|
|
8
|
+
import { DefaultMap } from '../utils.js';
|
|
9
|
+
import type { IDocumentInfo } from '../ws-connection/types.js';
|
|
10
|
+
type language = string;
|
|
11
|
+
interface IVirtualLine {
|
|
12
|
+
/**
|
|
13
|
+
* Inspections for which document should be skipped for this virtual line?
|
|
14
|
+
*/
|
|
15
|
+
skipInspect: VirtualDocument.idPath[];
|
|
16
|
+
/**
|
|
17
|
+
* Where does the virtual line belongs to in the source document?
|
|
18
|
+
*/
|
|
19
|
+
sourceLine: number | null;
|
|
20
|
+
/**
|
|
21
|
+
* The editor holding this virtual line
|
|
22
|
+
*/
|
|
23
|
+
editor: Document.IEditor;
|
|
24
|
+
}
|
|
25
|
+
export type ForeignDocumentsMap = Map<IRange, Document.IVirtualDocumentBlock>;
|
|
26
|
+
interface ISourceLine {
|
|
27
|
+
/**
|
|
28
|
+
* Line corresponding to the block in the entire foreign document
|
|
29
|
+
*/
|
|
30
|
+
virtualLine: number;
|
|
31
|
+
/**
|
|
32
|
+
* The CM editor associated with this virtual line.
|
|
33
|
+
*/
|
|
34
|
+
editor: Document.IEditor;
|
|
35
|
+
/**
|
|
36
|
+
* Line in the CM editor corresponding to the virtual line.
|
|
37
|
+
*/
|
|
38
|
+
editorLine: number;
|
|
39
|
+
/**
|
|
40
|
+
* Shift of the virtual line
|
|
41
|
+
*/
|
|
42
|
+
editorShift: CodeEditorPosition;
|
|
43
|
+
/**
|
|
44
|
+
* Everything which is not in the range of foreign documents belongs to the host.
|
|
45
|
+
*/
|
|
46
|
+
foreignDocumentsMap: ForeignDocumentsMap;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Check if given position is within range.
|
|
50
|
+
* Both start and end are inclusive.
|
|
51
|
+
* @param position
|
|
52
|
+
* @param range
|
|
53
|
+
*/
|
|
54
|
+
export declare function isWithinRange(position: CodeEditorPosition, range: IRange): boolean;
|
|
55
|
+
/**
|
|
56
|
+
* A virtual implementation of IDocumentInfo
|
|
57
|
+
*/
|
|
58
|
+
export declare class VirtualDocumentInfo implements IDocumentInfo {
|
|
59
|
+
/**
|
|
60
|
+
* Creates an instance of VirtualDocumentInfo.
|
|
61
|
+
* @param document - the virtual document need to
|
|
62
|
+
* be wrapped.
|
|
63
|
+
*/
|
|
64
|
+
constructor(document: VirtualDocument);
|
|
65
|
+
/**
|
|
66
|
+
* Current version of the virtual document.
|
|
67
|
+
*/
|
|
68
|
+
version: number;
|
|
69
|
+
/**
|
|
70
|
+
* Get the text content of the virtual document.
|
|
71
|
+
*/
|
|
72
|
+
get text(): string;
|
|
73
|
+
/**
|
|
74
|
+
* Get the uri of the virtual document, if the document is not available,
|
|
75
|
+
* it returns an empty string, users need to check for the length of returned
|
|
76
|
+
* value before using it.
|
|
77
|
+
*/
|
|
78
|
+
get uri(): string;
|
|
79
|
+
/**
|
|
80
|
+
* Get the language identifier of the document.
|
|
81
|
+
*/
|
|
82
|
+
get languageId(): string;
|
|
83
|
+
/**
|
|
84
|
+
* The wrapped virtual document.
|
|
85
|
+
*/
|
|
86
|
+
protected _document: VirtualDocument;
|
|
87
|
+
}
|
|
88
|
+
export interface IVirtualDocumentOptions {
|
|
89
|
+
/**
|
|
90
|
+
* The language identifier of the document.
|
|
91
|
+
*/
|
|
92
|
+
language: LanguageIdentifier;
|
|
93
|
+
/**
|
|
94
|
+
* The foreign code extractor manager token.
|
|
95
|
+
*/
|
|
96
|
+
foreignCodeExtractors: ILSPCodeExtractorsManager;
|
|
97
|
+
/**
|
|
98
|
+
* Path to the document.
|
|
99
|
+
*/
|
|
100
|
+
path: string;
|
|
101
|
+
/**
|
|
102
|
+
* File extension of the document.
|
|
103
|
+
*/
|
|
104
|
+
fileExtension: string | undefined;
|
|
105
|
+
/**
|
|
106
|
+
* Notebooks or any other aggregates of documents are not supported
|
|
107
|
+
* by the LSP specification, and we need to make appropriate
|
|
108
|
+
* adjustments for them, pretending they are simple files
|
|
109
|
+
* so that the LSP servers do not refuse to cooperate.
|
|
110
|
+
*/
|
|
111
|
+
hasLspSupportedFile: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* Being standalone is relevant to foreign documents
|
|
114
|
+
* and defines whether following chunks of code in the same
|
|
115
|
+
* language should be appended to this document (false, not standalone)
|
|
116
|
+
* or should be considered separate documents (true, standalone)
|
|
117
|
+
*
|
|
118
|
+
*/
|
|
119
|
+
standalone?: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* Parent of the current virtual document.
|
|
122
|
+
*/
|
|
123
|
+
parent?: VirtualDocument;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
* A notebook can hold one or more virtual documents; there is always one,
|
|
128
|
+
* "root" document, corresponding to the language of the kernel. All other
|
|
129
|
+
* virtual documents are extracted out of the notebook, based on magics,
|
|
130
|
+
* or other syntax constructs, depending on the kernel language.
|
|
131
|
+
*
|
|
132
|
+
* Virtual documents represent the underlying code in a single language,
|
|
133
|
+
* which has been parsed excluding interactive kernel commands (magics)
|
|
134
|
+
* which could be misunderstood by the specific LSP server.
|
|
135
|
+
*
|
|
136
|
+
* VirtualDocument has no awareness of the notebook or editor it lives in,
|
|
137
|
+
* however it is able to transform its content back to the notebook space,
|
|
138
|
+
* as it keeps editor coordinates for each virtual line.
|
|
139
|
+
*
|
|
140
|
+
* The notebook/editor aware transformations are preferred to be placed in
|
|
141
|
+
* VirtualEditor descendants rather than here.
|
|
142
|
+
*
|
|
143
|
+
* No dependency on editor implementation (such as CodeMirrorEditor)
|
|
144
|
+
* is allowed for VirtualEditor.
|
|
145
|
+
*/
|
|
146
|
+
export declare class VirtualDocument implements Disposable {
|
|
147
|
+
constructor(options: IVirtualDocumentOptions);
|
|
148
|
+
/**
|
|
149
|
+
* Convert from code editor position into code mirror position.
|
|
150
|
+
*/
|
|
151
|
+
static ceToCm(position: CodeEditorPosition): Position;
|
|
152
|
+
/**
|
|
153
|
+
* Number of blank lines appended to the virtual document between
|
|
154
|
+
* each cell.
|
|
155
|
+
*/
|
|
156
|
+
blankLinesBetweenCells: number;
|
|
157
|
+
/**
|
|
158
|
+
* Line number of the last line in the real document.
|
|
159
|
+
*/
|
|
160
|
+
lastSourceLine: number;
|
|
161
|
+
/**
|
|
162
|
+
* Line number of the last line in the virtual document.
|
|
163
|
+
*/
|
|
164
|
+
lastVirtualLine: number;
|
|
165
|
+
/**
|
|
166
|
+
* the remote document uri, version and other server-related info
|
|
167
|
+
*/
|
|
168
|
+
documentInfo: IDocumentInfo;
|
|
169
|
+
/**
|
|
170
|
+
* Parent of the current virtual document.
|
|
171
|
+
*/
|
|
172
|
+
parent?: VirtualDocument | null;
|
|
173
|
+
/**
|
|
174
|
+
* The language identifier of the document.
|
|
175
|
+
*/
|
|
176
|
+
readonly language: string;
|
|
177
|
+
/**
|
|
178
|
+
* Being standalone is relevant to foreign documents
|
|
179
|
+
* and defines whether following chunks of code in the same
|
|
180
|
+
* language should be appended to this document (false, not standalone)
|
|
181
|
+
* or should be considered separate documents (true, standalone)
|
|
182
|
+
*/
|
|
183
|
+
readonly standalone: boolean;
|
|
184
|
+
/**
|
|
185
|
+
* Path to the document.
|
|
186
|
+
*/
|
|
187
|
+
readonly path: string;
|
|
188
|
+
/**
|
|
189
|
+
* File extension of the document.
|
|
190
|
+
*/
|
|
191
|
+
readonly fileExtension: string | undefined;
|
|
192
|
+
/**
|
|
193
|
+
* Notebooks or any other aggregates of documents are not supported
|
|
194
|
+
* by the LSP specification, and we need to make appropriate
|
|
195
|
+
* adjustments for them, pretending they are simple files
|
|
196
|
+
* so that the LSP servers do not refuse to cooperate.
|
|
197
|
+
*/
|
|
198
|
+
readonly hasLspSupportedFile: boolean;
|
|
199
|
+
/**
|
|
200
|
+
* Map holding the children `VirtualDocument` .
|
|
201
|
+
*/
|
|
202
|
+
readonly foreignDocuments: Map<VirtualDocument.virtualId, VirtualDocument>;
|
|
203
|
+
/**
|
|
204
|
+
* The update manager object.
|
|
205
|
+
*/
|
|
206
|
+
readonly updateManager: UpdateManager;
|
|
207
|
+
/**
|
|
208
|
+
* Unique id of the virtual document.
|
|
209
|
+
*/
|
|
210
|
+
readonly instanceId: number;
|
|
211
|
+
/**
|
|
212
|
+
* Test whether the document is disposed.
|
|
213
|
+
*/
|
|
214
|
+
get isDisposed(): boolean;
|
|
215
|
+
/**
|
|
216
|
+
* Signal emitted when the foreign document is closed
|
|
217
|
+
*/
|
|
218
|
+
get foreignDocumentClosed(): Event<Document.IForeignContext>;
|
|
219
|
+
/**
|
|
220
|
+
* Signal emitted when the foreign document is opened
|
|
221
|
+
*/
|
|
222
|
+
get foreignDocumentOpened(): Event<Document.IForeignContext>;
|
|
223
|
+
/**
|
|
224
|
+
* Signal emitted when the foreign document is changed
|
|
225
|
+
*/
|
|
226
|
+
get changed(): Event<VirtualDocument>;
|
|
227
|
+
/**
|
|
228
|
+
* Id of the virtual document.
|
|
229
|
+
*/
|
|
230
|
+
get virtualId(): VirtualDocument.virtualId;
|
|
231
|
+
/**
|
|
232
|
+
* Return the ancestry to this document.
|
|
233
|
+
*/
|
|
234
|
+
get ancestry(): VirtualDocument[];
|
|
235
|
+
/**
|
|
236
|
+
* Return the id path to the virtual document.
|
|
237
|
+
*/
|
|
238
|
+
get idPath(): VirtualDocument.idPath;
|
|
239
|
+
/**
|
|
240
|
+
* Get the uri of the virtual document.
|
|
241
|
+
*/
|
|
242
|
+
get uri(): VirtualDocument.uri;
|
|
243
|
+
/**
|
|
244
|
+
* Get the text value of the document
|
|
245
|
+
*/
|
|
246
|
+
get value(): string;
|
|
247
|
+
/**
|
|
248
|
+
* Get the last line in the virtual document
|
|
249
|
+
*/
|
|
250
|
+
get lastLine(): string;
|
|
251
|
+
/**
|
|
252
|
+
* Get the root document of current virtual document.
|
|
253
|
+
*/
|
|
254
|
+
get root(): VirtualDocument;
|
|
255
|
+
/**
|
|
256
|
+
* Dispose the virtual document.
|
|
257
|
+
*/
|
|
258
|
+
dispose(): void;
|
|
259
|
+
/**
|
|
260
|
+
* Clear the virtual document and all related stuffs
|
|
261
|
+
*/
|
|
262
|
+
clear(): void;
|
|
263
|
+
/**
|
|
264
|
+
* Get the virtual document from the cursor position of the source
|
|
265
|
+
* document
|
|
266
|
+
* @param position - position in source document
|
|
267
|
+
*/
|
|
268
|
+
documentAtSourcePosition(position: ISourcePosition): VirtualDocument;
|
|
269
|
+
/**
|
|
270
|
+
* Detect if the input source position is belong to the current
|
|
271
|
+
* virtual document.
|
|
272
|
+
*
|
|
273
|
+
* @param sourcePosition - position in the source document
|
|
274
|
+
*/
|
|
275
|
+
isWithinForeign(sourcePosition: ISourcePosition): boolean;
|
|
276
|
+
/**
|
|
277
|
+
* Compute the position in root document from the position of
|
|
278
|
+
* a child editor.
|
|
279
|
+
*
|
|
280
|
+
* @param editor - the active editor.
|
|
281
|
+
* @param position - position in the active editor.
|
|
282
|
+
*/
|
|
283
|
+
transformFromEditorToRoot(editor: Document.IEditor, position: IEditorPosition): IRootPosition | null;
|
|
284
|
+
/**
|
|
285
|
+
* Compute the position in virtual document from the position of
|
|
286
|
+
* a child editor.
|
|
287
|
+
*
|
|
288
|
+
* @param editor - the active editor.
|
|
289
|
+
* @param position - position in the active editor.
|
|
290
|
+
*/
|
|
291
|
+
transformEditorToVirtual(editor: Document.IEditor, position: IEditorPosition): IVirtualPosition | null;
|
|
292
|
+
/**
|
|
293
|
+
* Compute the position in the virtual document from the position
|
|
294
|
+
* in the source document.
|
|
295
|
+
*
|
|
296
|
+
* @param sourcePosition - position in source document
|
|
297
|
+
*/
|
|
298
|
+
virtualPositionAtDocument(sourcePosition: ISourcePosition): IVirtualPosition;
|
|
299
|
+
/**
|
|
300
|
+
* Append a code block to the end of the virtual document.
|
|
301
|
+
*
|
|
302
|
+
* @param block - block to be appended
|
|
303
|
+
* @param editorShift - position shift in source
|
|
304
|
+
* document
|
|
305
|
+
* @param [virtualShift] - position shift in
|
|
306
|
+
* virtual document.
|
|
307
|
+
*/
|
|
308
|
+
appendCodeBlock(block: Document.ICodeBlockOptions, editorShift?: CodeEditorPosition, virtualShift?: CodeEditorPosition): void;
|
|
309
|
+
/**
|
|
310
|
+
* Extract a code block into list of string in supported language and
|
|
311
|
+
* a map of foreign document if any.
|
|
312
|
+
* @param block - block to be appended
|
|
313
|
+
* @param editorShift - position shift in source document
|
|
314
|
+
*/
|
|
315
|
+
prepareCodeBlock(block: Document.ICodeBlockOptions, editorShift?: CodeEditorPosition): {
|
|
316
|
+
lines: string[];
|
|
317
|
+
foreignDocumentsMap: Map<IRange, Document.IVirtualDocumentBlock>;
|
|
318
|
+
};
|
|
319
|
+
/**
|
|
320
|
+
* Extract the foreign code from input block by using the registered
|
|
321
|
+
* extractors.
|
|
322
|
+
* @param block - block to be appended
|
|
323
|
+
* @param editorShift - position shift in source document
|
|
324
|
+
*/
|
|
325
|
+
extractForeignCode(block: Document.ICodeBlockOptions, editorShift: CodeEditorPosition): {
|
|
326
|
+
cellCodeKept: string;
|
|
327
|
+
foreignDocumentsMap: Map<IRange, Document.IVirtualDocumentBlock>;
|
|
328
|
+
};
|
|
329
|
+
/**
|
|
330
|
+
* Close a foreign document and disconnect all associated signals
|
|
331
|
+
*/
|
|
332
|
+
closeForeign(document: VirtualDocument): void;
|
|
333
|
+
/**
|
|
334
|
+
* Close all foreign documents.
|
|
335
|
+
*/
|
|
336
|
+
closeAllForeignDocuments(): void;
|
|
337
|
+
/**
|
|
338
|
+
* Close all expired documents.
|
|
339
|
+
*/
|
|
340
|
+
closeExpiredDocuments(): void;
|
|
341
|
+
/**
|
|
342
|
+
* Transform the position of the source to the editor
|
|
343
|
+
* position.
|
|
344
|
+
*
|
|
345
|
+
* @param pos - position in the source document
|
|
346
|
+
* @return position in the editor.
|
|
347
|
+
*/
|
|
348
|
+
transformSourceToEditor(pos: ISourcePosition): IEditorPosition;
|
|
349
|
+
/**
|
|
350
|
+
* Transform the position in the virtual document to the
|
|
351
|
+
* editor position.
|
|
352
|
+
* Can be null because some lines are added as padding/anchors
|
|
353
|
+
* to the virtual document and those do not exist in the source document
|
|
354
|
+
* and thus they are absent in the editor.
|
|
355
|
+
*/
|
|
356
|
+
transformVirtualToEditor(virtualPosition: IVirtualPosition): IEditorPosition | null;
|
|
357
|
+
/**
|
|
358
|
+
* Transform the position in the virtual document to the source.
|
|
359
|
+
* Can be null because some lines are added as padding/anchors
|
|
360
|
+
* to the virtual document and those do not exist in the source document.
|
|
361
|
+
*/
|
|
362
|
+
transformVirtualToSource(position: IVirtualPosition): ISourcePosition | null;
|
|
363
|
+
/**
|
|
364
|
+
* Get the corresponding editor of the virtual line.
|
|
365
|
+
*/
|
|
366
|
+
getEditorAtVirtualLine(pos: IVirtualPosition): Document.IEditor;
|
|
367
|
+
/**
|
|
368
|
+
* Get the corresponding editor of the source line
|
|
369
|
+
*/
|
|
370
|
+
getEditorAtSourceLine(pos: ISourcePosition): Document.IEditor;
|
|
371
|
+
/**
|
|
372
|
+
* Recursively emits changed signal from the document or any descendant foreign document.
|
|
373
|
+
*/
|
|
374
|
+
maybeEmitChanged(): void;
|
|
375
|
+
/**
|
|
376
|
+
* When this counter goes down to 0, the document will be destroyed and the associated connection will be closed;
|
|
377
|
+
* This is meant to reduce the number of open connections when a a foreign code snippet was removed from the document.
|
|
378
|
+
*
|
|
379
|
+
* Note: top level virtual documents are currently immortal (unless killed by other means); it might be worth
|
|
380
|
+
* implementing culling of unused documents, but if and only if JupyterLab will also implement culling of
|
|
381
|
+
* idle kernels - otherwise the user experience could be a bit inconsistent, and we would need to invent our own rules.
|
|
382
|
+
*/
|
|
383
|
+
protected get remainingLifetime(): number;
|
|
384
|
+
protected set remainingLifetime(value: number);
|
|
385
|
+
/**
|
|
386
|
+
* Virtual lines keep all the lines present in the document AND extracted to the foreign document.
|
|
387
|
+
*/
|
|
388
|
+
protected virtualLines: Map<number, IVirtualLine>;
|
|
389
|
+
protected sourceLines: Map<number, ISourceLine>;
|
|
390
|
+
protected lineBlocks: string[];
|
|
391
|
+
protected unusedDocuments: Set<VirtualDocument>;
|
|
392
|
+
protected unusedStandaloneDocuments: DefaultMap<language, VirtualDocument[]>;
|
|
393
|
+
protected _isDisposed: boolean;
|
|
394
|
+
protected _remainingLifetime: number;
|
|
395
|
+
protected _editorToSourceLine: Map<Document.IEditor, number>;
|
|
396
|
+
protected _editorToSourceLineNew: Map<Document.IEditor, number>;
|
|
397
|
+
protected _foreignCodeExtractors: ILSPCodeExtractorsManager;
|
|
398
|
+
protected previousValue: string;
|
|
399
|
+
protected static instancesCount: number;
|
|
400
|
+
protected readonly options: IVirtualDocumentOptions;
|
|
401
|
+
/**
|
|
402
|
+
* Get the foreign document that can be opened with the input extractor.
|
|
403
|
+
*/
|
|
404
|
+
protected chooseForeignDocument(extractor: IForeignCodeExtractor): VirtualDocument;
|
|
405
|
+
/**
|
|
406
|
+
* Create a foreign document from input language and file extension.
|
|
407
|
+
*
|
|
408
|
+
* @param language - the required language
|
|
409
|
+
* @param standalone - the document type is supported natively by LSP?
|
|
410
|
+
* @param fileExtension - File extension.
|
|
411
|
+
*/
|
|
412
|
+
protected openForeign(language: language, standalone: boolean, fileExtension: string): VirtualDocument;
|
|
413
|
+
/**
|
|
414
|
+
* Forward the closed signal from the foreign document to the host document's
|
|
415
|
+
* signal
|
|
416
|
+
*/
|
|
417
|
+
protected forwardClosedSignal(context: Document.IForeignContext): void;
|
|
418
|
+
/**
|
|
419
|
+
* Forward the opened signal from the foreign document to the host document's
|
|
420
|
+
* signal
|
|
421
|
+
*/
|
|
422
|
+
protected forwardOpenedSignal(context: Document.IForeignContext): void;
|
|
423
|
+
/**
|
|
424
|
+
* Slot of the `updateBegan` signal.
|
|
425
|
+
*/
|
|
426
|
+
protected _updateBeganSlot(): void;
|
|
427
|
+
/**
|
|
428
|
+
* Slot of the `blockAdded` signal.
|
|
429
|
+
*/
|
|
430
|
+
protected _blockAddedSlot(blockData: IBlockAddedInfo): void;
|
|
431
|
+
/**
|
|
432
|
+
* Slot of the `updateFinished` signal.
|
|
433
|
+
*/
|
|
434
|
+
protected _updateFinishedSlot(): void;
|
|
435
|
+
protected _foreignDocumentClosed: Emitter<Document.IForeignContext>;
|
|
436
|
+
protected _foreignDocumentOpened: Emitter<Document.IForeignContext>;
|
|
437
|
+
protected _changed: Emitter<VirtualDocument>;
|
|
438
|
+
}
|
|
439
|
+
export declare namespace VirtualDocument {
|
|
440
|
+
/**
|
|
441
|
+
* Identifier composed of `virtual_id`s of a nested structure of documents,
|
|
442
|
+
* used to aide assignment of the connection to the virtual document
|
|
443
|
+
* handling specific, nested language usage; it will be appended to the file name
|
|
444
|
+
* when creating a connection.
|
|
445
|
+
*/
|
|
446
|
+
type idPath = string;
|
|
447
|
+
/**
|
|
448
|
+
* Instance identifier for standalone documents (snippets), or language identifier
|
|
449
|
+
* for documents which should be interpreted as one when stretched across cells.
|
|
450
|
+
*/
|
|
451
|
+
type virtualId = string;
|
|
452
|
+
/**
|
|
453
|
+
* Identifier composed of the file path and id_path.
|
|
454
|
+
*/
|
|
455
|
+
type uri = string;
|
|
456
|
+
}
|
|
457
|
+
/**
|
|
458
|
+
* Create foreign documents if available from input virtual documents.
|
|
459
|
+
* @param virtualDocument - the virtual document to be collected
|
|
460
|
+
* @return - Set of generated foreign documents
|
|
461
|
+
*/
|
|
462
|
+
export declare function collectDocuments(virtualDocument: VirtualDocument): Set<VirtualDocument>;
|
|
463
|
+
export interface IBlockAddedInfo {
|
|
464
|
+
/**
|
|
465
|
+
* The virtual document.
|
|
466
|
+
*/
|
|
467
|
+
virtualDocument: VirtualDocument;
|
|
468
|
+
/**
|
|
469
|
+
* Option of the code block.
|
|
470
|
+
*/
|
|
471
|
+
block: Document.ICodeBlockOptions;
|
|
472
|
+
}
|
|
473
|
+
export declare class UpdateManager implements Disposable {
|
|
474
|
+
protected virtualDocument: VirtualDocument;
|
|
475
|
+
constructor(virtualDocument: VirtualDocument);
|
|
476
|
+
/**
|
|
477
|
+
* Promise resolved when the updating process finishes.
|
|
478
|
+
*/
|
|
479
|
+
get updateDone(): Promise<void>;
|
|
480
|
+
/**
|
|
481
|
+
* Test whether the document is disposed.
|
|
482
|
+
*/
|
|
483
|
+
get isDisposed(): boolean;
|
|
484
|
+
/**
|
|
485
|
+
* Signal emitted when a code block is added to the document.
|
|
486
|
+
*/
|
|
487
|
+
get blockAdded(): Event<IBlockAddedInfo>;
|
|
488
|
+
/**
|
|
489
|
+
* Signal emitted by the editor that triggered the update,
|
|
490
|
+
* providing the root document of the updated documents.
|
|
491
|
+
*/
|
|
492
|
+
get documentUpdated(): Event<VirtualDocument>;
|
|
493
|
+
/**
|
|
494
|
+
* Signal emitted when the update is started
|
|
495
|
+
*/
|
|
496
|
+
get updateBegan(): Event<Document.ICodeBlockOptions[]>;
|
|
497
|
+
/**
|
|
498
|
+
* Signal emitted when the update is finished
|
|
499
|
+
*/
|
|
500
|
+
get updateFinished(): Event<Document.ICodeBlockOptions[]>;
|
|
501
|
+
/**
|
|
502
|
+
* Dispose the class
|
|
503
|
+
*/
|
|
504
|
+
dispose(): void;
|
|
505
|
+
/**
|
|
506
|
+
* Execute provided callback within an update-locked context, which guarantees that:
|
|
507
|
+
* - the previous updates must have finished before the callback call, and
|
|
508
|
+
* - no update will happen when executing the callback
|
|
509
|
+
* @param fn - the callback to execute in update lock
|
|
510
|
+
*/
|
|
511
|
+
withUpdateLock(fn: () => void): Promise<void>;
|
|
512
|
+
/**
|
|
513
|
+
* Update all the virtual documents, emit documents updated with root document if succeeded,
|
|
514
|
+
* and resolve a void promise. The promise does not contain the text value of the root document,
|
|
515
|
+
* as to avoid an easy trap of ignoring the changes in the virtual documents.
|
|
516
|
+
*/
|
|
517
|
+
updateDocuments(blocks: Document.ICodeBlockOptions[]): Promise<void>;
|
|
518
|
+
protected _isDisposed: boolean;
|
|
519
|
+
/**
|
|
520
|
+
* Promise resolved when the updating process finishes.
|
|
521
|
+
*/
|
|
522
|
+
protected _updateDone: Promise<void>;
|
|
523
|
+
/**
|
|
524
|
+
* Virtual documents update guard.
|
|
525
|
+
*/
|
|
526
|
+
protected _isUpdateInProgress: boolean;
|
|
527
|
+
/**
|
|
528
|
+
* Update lock to prevent multiple updates are applied at the same time.
|
|
529
|
+
*/
|
|
530
|
+
protected _updateLock: boolean;
|
|
531
|
+
protected _blockAdded: Emitter<IBlockAddedInfo>;
|
|
532
|
+
protected _documentUpdated: Emitter<VirtualDocument>;
|
|
533
|
+
protected _updateBegan: Emitter<Document.ICodeBlockOptions[]>;
|
|
534
|
+
protected _updateFinished: Emitter<Document.ICodeBlockOptions[]>;
|
|
535
|
+
/**
|
|
536
|
+
* Once all the foreign documents were refreshed, the unused documents (and their connections)
|
|
537
|
+
* should be terminated if their lifetime has expired.
|
|
538
|
+
*/
|
|
539
|
+
protected _onUpdated(rootDocument: VirtualDocument): void;
|
|
540
|
+
/**
|
|
541
|
+
* Check if the document can be updated.
|
|
542
|
+
*/
|
|
543
|
+
protected _canUpdate(): boolean;
|
|
544
|
+
}
|
|
545
|
+
export {};
|
|
546
|
+
//# sourceMappingURL=document.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../src/virtual/document.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,MAAM,EAC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