@hydranium/data-server 1.0.0-next.13 → 1.0.0-next.135
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 +14 -1
- package/lib/data-server.d.ts +293 -82
- package/lib/data-server.d.ts.map +1 -1
- package/lib/data-server.js +438 -160
- package/lib/data-server.js.map +1 -1
- package/lib/messages/index.d.ts +18 -0
- package/lib/messages/index.d.ts.map +1 -0
- package/lib/messages/index.js +18 -0
- package/lib/messages/index.js.map +1 -0
- package/lib/testing/data-server-harness.d.ts +7 -1
- package/lib/testing/data-server-harness.d.ts.map +1 -1
- package/lib/testing/data-server-harness.js +5 -2
- package/lib/testing/data-server-harness.js.map +1 -1
- package/package.json +17 -8
- package/src/data-server.ts +540 -178
- package/src/messages/index.ts +26 -0
- package/src/testing/data-server-harness.ts +16 -1
package/README.md
CHANGED
|
@@ -19,10 +19,21 @@ Installed by the server process that already composes
|
|
|
19
19
|
`getModelDocument`, `updateModelDocument`, `saveModelDocument`,
|
|
20
20
|
`closeModelDocument`, `watchModelDocument` / `unwatchModelDocument`, and
|
|
21
21
|
`waitForReady` for clients that must not race workspace initialisation.
|
|
22
|
+
- **Client sessions per connection:** `createSession` registers a participant,
|
|
23
|
+
whose requests then write only what it has open; `createModelDocument` and
|
|
24
|
+
the all-or-none `updateModelDocuments` serve sessions only; `closeSession`, or
|
|
25
|
+
the connection closing, ends a session and closes everything it has open. See
|
|
26
|
+
[Client sessions](../../docs/concepts/client-sessions.md).
|
|
22
27
|
- **Push notifications instead of polling:** `onDocumentUpdated` when a
|
|
23
28
|
subscribed document reaches the configured build phase
|
|
24
29
|
(`DataServerOptions.subscriptionPhase`, `DocumentState.Validated` by default),
|
|
25
|
-
`onDocumentSaved` on a separate channel,
|
|
30
|
+
`onDocumentSaved` on a separate channel, `onDocumentDirtyChanged` when a
|
|
31
|
+
subscribed document starts or stops differing from its file (every document
|
|
32
|
+
the head sends also carries its current `dirty`), `onDocumentDeleted` (a
|
|
33
|
+
deleted document has no built state to carry, and the build-phase path never
|
|
34
|
+
runs for one), `onDocumentsBuilt` once per build for the documents nobody
|
|
35
|
+
watches — chiefly those rebuilt as a cascade, which no filesystem watcher can
|
|
36
|
+
see because their own files did not change — and `onProjectsChanged` from the
|
|
26
37
|
project registry.
|
|
27
38
|
- **Projects as first-class:** `getProjects` and `getProjectForUri`, answered from
|
|
28
39
|
the framework's `ProjectManager`.
|
|
@@ -38,6 +49,8 @@ The projection itself is not this package's: it delegates to `TransferEncoder`
|
|
|
38
49
|
and `ModelService` from `@hydranium/core`, so there is no second in-memory model
|
|
39
50
|
to keep in sync.
|
|
40
51
|
|
|
52
|
+
For the adopter extension path, see [Add a data-server method](../../docs/guides/data-server-method.md). It covers the typed subclass, `additionalMethods`, shared namespace, and client proxy as one wire contract.
|
|
53
|
+
|
|
41
54
|
## Install
|
|
42
55
|
|
|
43
56
|
```bash
|
package/lib/data-server.d.ts
CHANGED
|
@@ -6,13 +6,52 @@
|
|
|
6
6
|
*
|
|
7
7
|
* SPDX-License-Identifier: MIT
|
|
8
8
|
********************************************************************************/
|
|
9
|
-
import { DisposableCollection, ReferenceSource, type CloseModelArgs, type Disposable, type ElementSource, type FindNextNameArgs, type LatencyCollector, type LatencyReport, type OpenModelArgs, type Project, type ReferenceCandidate, type ReferenceContext, type ReferenceRequest, type ReferenceTarget, type Tracer, type TransferDiagnostic,
|
|
10
|
-
import { type DataClientProtocol, type DataServerDiagnosticsProtocol, type DataServerProtocol, type DumpServerStateArgs, type StartProfilingArgs, type StopProfilingArgs, type WriteServerHeapSnapshotArgs, type GetModelDocumentArgs, type GetProjectForUriArgs, type TransferSaveDocumentArgs, type WatchModelDocumentArgs, type TransferDocumentUpdatedEvent, type TransferUpdateDocumentArgs } from '@hydranium/protocol/data';
|
|
9
|
+
import { DisposableCollection, ReferenceSource, type CloseModelArgs, type HydraniumMessageData, type HydraniumResponseError, type Disposable, type ElementSource, type FindNextNameArgs, type LatencyCollector, type LatencyReport, type OpenModelArgs, type Project, type ReferenceCandidate, type ReferenceContext, type ReferenceRequest, type ReferenceTarget, type Tracer, type TransferDiagnostic, TransferDocument, type TransferElement } from '@hydranium/protocol';
|
|
10
|
+
import { type DataClientProtocol, type DataServerDiagnosticsProtocol, type DataServerProtocol, type DumpServerStateArgs, type StartProfilingArgs, type StopProfilingArgs, type WriteServerHeapSnapshotArgs, type CloseSessionArgs, type CreateModelDocumentArgs, type CreateSessionArgs, type GetModelDocumentArgs, type GetProjectForUriArgs, type TransferSaveDocumentArgs, type WatchModelDocumentArgs, type TransferDocumentUpdatedEvent, type TransferUpdateDocumentArgs, type TransferUpdateDocumentsArgs } from '@hydranium/protocol/data';
|
|
11
|
+
/**
|
|
12
|
+
* Raised when a profiling command arrives with no capture running.
|
|
13
|
+
*
|
|
14
|
+
* A `ResponseError` rather than a plain `Error` so the identity survives to the
|
|
15
|
+
* response boundary, which is where the message is rendered. An unwrapped throw
|
|
16
|
+
* reaches the client as a generic internal error instead: no code for a caller
|
|
17
|
+
* to switch on, and nothing for the boundary to render from.
|
|
18
|
+
*/
|
|
19
|
+
export declare const NO_ACTIVE_PROFILE: import("@hydranium/protocol").MessageDefinition<"No profiling capture is active; call startProfiling first.">;
|
|
20
|
+
/**
|
|
21
|
+
* The JSON-RPC code, unrelated to the catalogue code above: this one is numeric,
|
|
22
|
+
* survives reconstruction and is what a caller switches on.
|
|
23
|
+
*/
|
|
24
|
+
export declare const NO_ACTIVE_PROFILE_CODE: 42002;
|
|
25
|
+
export declare const noActiveProfileError: () => HydraniumResponseError;
|
|
26
|
+
/**
|
|
27
|
+
* Raised when a reference question's wait for the build exceeds
|
|
28
|
+
* {@link DataServerOptions.referenceSettleTimeoutMs}.
|
|
29
|
+
*
|
|
30
|
+
* A `ResponseError` because a class name does not cross RPC: without the code a
|
|
31
|
+
* wire client cannot tell a wedged build from a reference that resolves to
|
|
32
|
+
* nothing, which is the distinction the wait exists to keep.
|
|
33
|
+
*/
|
|
34
|
+
export declare const REFERENCE_SETTLE_TIMEOUT: import("@hydranium/protocol").MessageDefinition<"The model is still being processed; try again in a moment.">;
|
|
35
|
+
/** See {@link NO_ACTIVE_PROFILE_CODE} for why this is separate from the catalogue code. */
|
|
36
|
+
export declare const REFERENCE_SETTLE_TIMEOUT_CODE: 42003;
|
|
37
|
+
/** The wait's length rides in `data` as `elapsedMs`, for the code that reacts rather than the reader. */
|
|
38
|
+
export declare const referenceSettleTimeoutError: (elapsedMs: number) => ResponseError<HydraniumMessageData & {
|
|
39
|
+
readonly elapsedMs: number;
|
|
40
|
+
}>;
|
|
11
41
|
import type { DataServerDiagnosticsProvider, DataServerProfileCapture } from './diagnostics-provider.js';
|
|
12
|
-
import type { ClientTextDocumentChangeEvent, HydraniumLanguageServices, LogNameOptions, ModelService, ProjectChangeEvent, ServerSharedServices, TransferEncoder } from '@hydranium/core';
|
|
42
|
+
import type { ClientSession, ClientSessionWriteArgs, ClientTextDocumentChangeEvent, DocumentDirtyChangedEvent, HydraniumLanguageServices, LogNameOptions, AstDiagnostic, AstDocument, ModelService, ProjectChangeEvent, ServerSharedServices, SessionEndCause, TransferEncoder } from '@hydranium/core';
|
|
13
43
|
import type { TextDocument } from 'vscode-languageserver-textdocument';
|
|
14
44
|
import { type AstNode, DocumentState, type LangiumDocument, type URI } from '@hydranium/langium';
|
|
15
|
-
import type
|
|
45
|
+
import { type CancellationToken, type MessageConnection, ResponseError } from 'vscode-jsonrpc';
|
|
46
|
+
/**
|
|
47
|
+
* A session a data connection registered with a resume token, and how to end
|
|
48
|
+
* it from another connection. See {@link DataServer.resumableSessions}.
|
|
49
|
+
*/
|
|
50
|
+
export interface ResumableSession {
|
|
51
|
+
readonly token: string;
|
|
52
|
+
/** End the session as its connection closing would. */
|
|
53
|
+
readonly end: () => void;
|
|
54
|
+
}
|
|
16
55
|
/**
|
|
17
56
|
* Which observable state {@link DataServer.computeDocumentFingerprint} hashes to
|
|
18
57
|
* de-dup `onDocumentUpdated` emissions.
|
|
@@ -82,6 +121,21 @@ export interface DataServerOptions extends LogNameOptions {
|
|
|
82
121
|
* state included). See {@link FingerprintStrategy}.
|
|
83
122
|
*/
|
|
84
123
|
readonly fingerprintStrategy?: FingerprintStrategy;
|
|
124
|
+
/**
|
|
125
|
+
* How long a reference question waits for the build to reach `Linked` before
|
|
126
|
+
* failing with {@link REFERENCE_SETTLE_TIMEOUT_CODE}. Bounded because the
|
|
127
|
+
* wait resolves off a build-phase notification, so a build cancelled below
|
|
128
|
+
* `Linked` with nothing after it leaves the request unanswered for the life
|
|
129
|
+
* of the server.
|
|
130
|
+
*
|
|
131
|
+
* Expiry rejects rather than reading the index anyway: the unsettled index
|
|
132
|
+
* is what the wait keeps the caller away from, so falling through to it on a
|
|
133
|
+
* slow build reinstates the fault — and on a name proposal persists it.
|
|
134
|
+
*
|
|
135
|
+
* Default {@link DataServer.DEFAULT_OPTIONS}, sized for a cold workspace
|
|
136
|
+
* still reaching `Linked` for the first time.
|
|
137
|
+
*/
|
|
138
|
+
readonly referenceSettleTimeoutMs?: number;
|
|
85
139
|
/**
|
|
86
140
|
* Wire-method namespace for both inbound request handlers and the
|
|
87
141
|
* outbound notification client proxy. Defaults to
|
|
@@ -136,14 +190,19 @@ export interface DataServerOptions extends LogNameOptions {
|
|
|
136
190
|
* When supplied, every inbound data-server RPC is timed into this collector
|
|
137
191
|
* (via the `createRpcProxy` binding) and exposed through
|
|
138
192
|
* {@link DataServerDiagnosticsProtocol.getLatency}. A head that also runs an
|
|
139
|
-
* LSP connection can pass the SAME collector to
|
|
140
|
-
*
|
|
141
|
-
*
|
|
193
|
+
* LSP connection can pass the SAME collector through `lspLatencyOptions` to
|
|
194
|
+
* that connection, so one report covers both heads. Absent by default (no
|
|
195
|
+
* timing overhead).
|
|
142
196
|
*/
|
|
143
197
|
readonly latency?: LatencyCollector;
|
|
144
198
|
}
|
|
145
|
-
/**
|
|
146
|
-
|
|
199
|
+
/**
|
|
200
|
+
* Fully-resolved variant of {@link DataServerOptions} — every field set, after
|
|
201
|
+
* merging defaults. Returned by the `protected`
|
|
202
|
+
* {@link DataServer.resolveOptions} and held on {@link DataServer.options}, so
|
|
203
|
+
* an adopter changing how defaults resolve has to name it.
|
|
204
|
+
*/
|
|
205
|
+
export interface ResolvedDataServerOptions {
|
|
147
206
|
readonly subscriptionPhase: DocumentState;
|
|
148
207
|
readonly fingerprintStrategy: FingerprintStrategy;
|
|
149
208
|
readonly methodNamespace: string;
|
|
@@ -151,6 +210,7 @@ interface ResolvedDataServerOptions {
|
|
|
151
210
|
readonly excludedMethods: readonly string[];
|
|
152
211
|
/** Always resolved — to the caller's, or to the platform default. */
|
|
153
212
|
readonly diagnostics: DataServerDiagnosticsProvider;
|
|
213
|
+
readonly referenceSettleTimeoutMs: number;
|
|
154
214
|
}
|
|
155
215
|
/**
|
|
156
216
|
* Typed-RPC protocol head for the hydranium framework. The data-server
|
|
@@ -177,9 +237,11 @@ interface ResolvedDataServerOptions {
|
|
|
177
237
|
* any names supplied via {@link DataServerOptions.additionalMethods}) and
|
|
178
238
|
* builds the {@link DataClientProtocol} notification proxy on the same
|
|
179
239
|
* connection in one {@link createRpcProxy} call (binding `this` as its
|
|
180
|
-
* `localTarget`) under the configured namespace, and subscribes
|
|
181
|
-
* `DocumentBuilder.onDocumentPhase`
|
|
182
|
-
*
|
|
240
|
+
* `localTarget`) under the configured namespace, and subscribes two listeners
|
|
241
|
+
* at the configured phase: a `DocumentBuilder.onDocumentPhase` one dispatching
|
|
242
|
+
* per-document `clientProxy.onDocumentUpdated` for watched URIs, and a
|
|
243
|
+
* `DocumentBuilder.onBuildPhase` one dispatching a single
|
|
244
|
+
* `clientProxy.onDocumentsBuilt` naming the batch's unwatched documents.
|
|
183
245
|
*
|
|
184
246
|
* The data-server requires the full {@link ServerSharedServices}
|
|
185
247
|
* shape — `HydraniumTextDocuments` for client-attributed updates,
|
|
@@ -198,37 +260,37 @@ interface ResolvedDataServerOptions {
|
|
|
198
260
|
*/
|
|
199
261
|
export declare class DataServer<TTransfer extends TransferElement, TDiagnostic extends TransferDiagnostic = TransferDiagnostic, TProject extends Project = Project> implements DataServerProtocol<TTransfer, TDiagnostic, TProject>, DataServerDiagnosticsProtocol, Disposable {
|
|
200
262
|
protected readonly connection: MessageConnection;
|
|
201
|
-
protected readonly services: ServerSharedServices<TProject>;
|
|
263
|
+
protected readonly services: ServerSharedServices<TProject, TDiagnostic>;
|
|
202
264
|
/**
|
|
203
265
|
* Framework defaults, exposed so an adopter can spread them when
|
|
204
266
|
* extending rather than restate a value the framework may change.
|
|
205
267
|
*/
|
|
206
|
-
static readonly DEFAULT_OPTIONS: Required<Pick<DataServerOptions, 'subscriptionPhase'>>;
|
|
268
|
+
static readonly DEFAULT_OPTIONS: Required<Pick<DataServerOptions, 'subscriptionPhase' | 'referenceSettleTimeoutMs'>>;
|
|
207
269
|
protected readonly options: ResolvedDataServerOptions;
|
|
208
270
|
/** Subscription bookkeeping: URI → set of clientIds that subscribed for that URI. */
|
|
209
271
|
protected readonly subscriptions: Map<string, Set<string>>;
|
|
210
272
|
/**
|
|
211
|
-
*
|
|
212
|
-
*
|
|
273
|
+
* The client sessions this connection registered, by client id. A document
|
|
274
|
+
* request carrying one of these ids acts as that session; one carrying any
|
|
275
|
+
* other id fails.
|
|
213
276
|
*
|
|
214
|
-
*
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
* suppressed. The store has no notion of which connection a clientId reached
|
|
218
|
-
* it over, so the connection-scoped set has to live here; teaching it a client
|
|
219
|
-
* identity is the more robust and much larger alternative.
|
|
277
|
+
* Entries stay after {@link dispose} has ended their sessions, so a request
|
|
278
|
+
* still running from before the connection closed reaches the ended handle
|
|
279
|
+
* and fails with the session's own error.
|
|
220
280
|
*/
|
|
221
|
-
protected readonly
|
|
281
|
+
protected readonly clientSessions: Map<string, ClientSession<AstNode, AstDiagnostic, TTransfer, object>>;
|
|
222
282
|
/** Typed client proxy — sends `data-server/on*` notifications back over the same wire. */
|
|
223
283
|
protected readonly clientProxy: DataClientProtocol<TTransfer, TDiagnostic, TProject>;
|
|
224
284
|
protected readonly disposables: DisposableCollection;
|
|
225
285
|
/**
|
|
226
286
|
* Snapshot of the most recent `DocumentBuilder.onUpdate` event. Drives
|
|
227
287
|
* `reason` discrimination on outbound `onDocumentUpdated` notifications:
|
|
228
|
-
* a URI in the `changed` list emits `'changed'`,
|
|
229
|
-
*
|
|
230
|
-
*
|
|
231
|
-
*
|
|
288
|
+
* a URI in the `changed` list emits `'changed'`, otherwise `'rebuilt'`
|
|
289
|
+
* (cascade rebuild from a dependent URI's change). The same mechanism
|
|
290
|
+
* `AstDocumentManager.onUpdate` uses on the LSP side, so reason fidelity
|
|
291
|
+
* stays consistent between heads. The `deleted` half is read by
|
|
292
|
+
* {@link dispatchDeleteEvents} rather than by the reason discrimination,
|
|
293
|
+
* a deletion travelling on its own channel.
|
|
232
294
|
*/
|
|
233
295
|
protected lastBuildUpdate?: {
|
|
234
296
|
changed: readonly URI[];
|
|
@@ -271,12 +333,12 @@ export declare class DataServer<TTransfer extends TransferElement, TDiagnostic e
|
|
|
271
333
|
*/
|
|
272
334
|
protected readonly lastEmittedFingerprint: Map<string, string>;
|
|
273
335
|
/**
|
|
274
|
-
* URIs
|
|
275
|
-
* document from its disk content (discarding unsaved
|
|
276
|
-
* but {@link dispatchPhaseEvent} gates on the
|
|
277
|
-
* last close typically also removed the last
|
|
278
|
-
* only ever fetch via `getModelDocument` would
|
|
279
|
-
* discarded state forever. Marked on the
|
|
336
|
+
* URIs the text store just released after their last close. The store
|
|
337
|
+
* rebuilds such a document from its disk content (discarding unsaved
|
|
338
|
+
* in-session edits), but {@link dispatchPhaseEvent} gates on the
|
|
339
|
+
* subscription map — and the last close typically also removed the last
|
|
340
|
+
* watcher, so consumers that only ever fetch via `getModelDocument` would
|
|
341
|
+
* keep showing the discarded state forever. Marked on the release (see
|
|
280
342
|
* {@link subscribeToTextDocumentCloses}) and consumed by
|
|
281
343
|
* {@link dispatchPhaseEvent}, which broadcasts the following rebuild's
|
|
282
344
|
* phase event even without a subscription — de-duplicated against
|
|
@@ -292,55 +354,84 @@ export declare class DataServer<TTransfer extends TransferElement, TDiagnostic e
|
|
|
292
354
|
/** Per-method RPC latency collector, when the head opted in via {@link DataServerOptions.latency}. */
|
|
293
355
|
protected readonly latency?: LatencyCollector;
|
|
294
356
|
/** Encoder pulled from DI. Adopters rebind `services.model.TransferEncoder` to a typed-overlay subclass. */
|
|
295
|
-
protected readonly encoder: TransferEncoder<
|
|
357
|
+
protected readonly encoder: TransferEncoder<TDiagnostic>;
|
|
296
358
|
/**
|
|
297
359
|
* In-process workspace facade — the lifecycle delegate `get` / `update` / `save` go through.
|
|
298
|
-
*
|
|
299
|
-
*
|
|
300
|
-
* while the wire shape stays `TDiagnostic extends TransferDiagnostic`. The encoder's
|
|
301
|
-
* `astDocumentToTransferDocument` accepts both shapes (wire-shape or LSP-shape) and projects
|
|
302
|
-
* to wire shape on the return — see `TransferEncoder.astDocumentToTransferDocument`.
|
|
360
|
+
* Its documents carry the AST-layer {@link AstDiagnostic}, never the wire `TDiagnostic`:
|
|
361
|
+
* {@link encoder} converts one into the other on the way out.
|
|
303
362
|
*/
|
|
304
|
-
protected readonly modelService: ModelService<AstNode,
|
|
305
|
-
constructor(connection: MessageConnection, services: ServerSharedServices<TProject>, options?: DataServerOptions);
|
|
363
|
+
protected readonly modelService: ModelService<AstNode, AstDiagnostic, TTransfer>;
|
|
364
|
+
constructor(connection: MessageConnection, services: ServerSharedServices<TProject, TDiagnostic>, options?: DataServerOptions);
|
|
306
365
|
/**
|
|
307
366
|
* Release everything the constructor wired up — the bound protocol
|
|
308
367
|
* handlers and every listener — and clear the subscription map and the
|
|
309
368
|
* per-URI emission-fingerprint cache, so a long-lived shared services
|
|
310
369
|
* bundle does not retain per-connection memory after the connection
|
|
311
|
-
* closes. Also
|
|
312
|
-
*
|
|
313
|
-
*
|
|
314
|
-
*
|
|
315
|
-
* Idempotent: subsequent calls are no-ops.
|
|
316
|
-
*
|
|
317
|
-
*
|
|
318
|
-
*
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
370
|
+
* closes. Also ends every session this connection registered, which closes
|
|
371
|
+
* every document it has open: the SHARED store's state rather than this
|
|
372
|
+
* server's, which outlives the connection unless released here.
|
|
373
|
+
*
|
|
374
|
+
* Idempotent: subsequent calls are no-ops. Runs by itself when the
|
|
375
|
+
* connection closes, so adopters who don't hold a reference still get
|
|
376
|
+
* per-connection cleanup; adopters that DO hold a reference may call
|
|
377
|
+
* `dispose()` directly for early teardown. The sessions end with `cause`:
|
|
378
|
+
* `'closed'` reverts every document whose last open they close at once,
|
|
379
|
+
* and `'lost'`, the connection's own close, lets each wait out the revert
|
|
380
|
+
* grace.
|
|
381
|
+
*/
|
|
382
|
+
dispose(cause?: SessionEndCause): void;
|
|
383
|
+
createSession(args: CreateSessionArgs): Promise<void>;
|
|
384
|
+
/**
|
|
385
|
+
* End a session this connection registered. The ended handle stays in
|
|
386
|
+
* {@link clientSessions}, as it does after {@link dispose}, so a request for
|
|
387
|
+
* the id still arriving fails with the ended session's own error.
|
|
388
|
+
*/
|
|
389
|
+
closeSession(args: CloseSessionArgs): Promise<void>;
|
|
390
|
+
/** End `session`, registered here under `clientId`, with `cause`, and drop its watches on this connection. */
|
|
391
|
+
protected endSession(clientId: string, session: ClientSession<AstNode, AstDiagnostic, TTransfer>, cause?: SessionEndCause): void;
|
|
392
|
+
/**
|
|
393
|
+
* The resumable sessions of this services tree, by client id, across all of
|
|
394
|
+
* its data connections: a client resumes on another connection than the one
|
|
395
|
+
* that registered it. An entry leaves when its session ends, by any path, so
|
|
396
|
+
* it keeps no ended connection alive.
|
|
397
|
+
*
|
|
398
|
+
* A takeover by resume token ends the old session even when its connection
|
|
399
|
+
* is still alive, so two clients that shared an id and its token would end
|
|
400
|
+
* each other's sessions. And the token is a guard against colliding with a
|
|
401
|
+
* session the server has not yet seen end, not a secret: the wire carries no
|
|
402
|
+
* authentication, and a peer that learns the token can end the session.
|
|
403
|
+
*/
|
|
404
|
+
protected resumableSessions(): Map<string, ResumableSession>;
|
|
405
|
+
createModelDocument(args: CreateModelDocumentArgs): Promise<TransferDocument<TTransfer, TDiagnostic>>;
|
|
406
|
+
updateModelDocuments(args: TransferUpdateDocumentsArgs<TTransfer>): Promise<TransferDocument<TTransfer, TDiagnostic>[]>;
|
|
407
|
+
/**
|
|
408
|
+
* The session write a wire write request carries. Only the fields a session
|
|
409
|
+
* takes: a field an adopter adds to a request reaches the session only
|
|
410
|
+
* through an override of this.
|
|
411
|
+
*/
|
|
412
|
+
protected toSessionWrite(request: Omit<TransferUpdateDocumentArgs<TTransfer>, 'clientId'>): ClientSessionWriteArgs<TTransfer>;
|
|
413
|
+
/**
|
|
414
|
+
* The session this connection registered under `clientId`, which every
|
|
415
|
+
* document request acts as. An id that is not one fails with the
|
|
416
|
+
* closed-session code: opening or writing under it would leave an open that
|
|
417
|
+
* no session end ever closes.
|
|
418
|
+
*/
|
|
419
|
+
protected requireSession(clientId: string): ClientSession<AstNode, AstDiagnostic, TTransfer>;
|
|
420
|
+
openModelDocument(args: Pick<OpenModelArgs, 'uri' | 'clientId' | 'options'>): Promise<TransferDocument<TTransfer, TDiagnostic>>;
|
|
421
|
+
/**
|
|
422
|
+
* The snapshot a session's open or create answers with. When the read
|
|
423
|
+
* fails, `rollback` undoes the open this call made before the failure is
|
|
424
|
+
* rethrown: the caller sees no open, so nothing on its side would ever close
|
|
425
|
+
* it.
|
|
426
|
+
*
|
|
427
|
+
* Versioned with the store's shared version rather than the snapshot's own:
|
|
428
|
+
* the built document's `textDocument.version` lags the store's whenever the
|
|
429
|
+
* store assigned the version, and the store's is what a write's `basedOn` is
|
|
430
|
+
* compared against, so reporting the snapshot's would make the caller's
|
|
431
|
+
* first based-on write conflict with itself.
|
|
432
|
+
*/
|
|
433
|
+
protected openedSnapshot(uri: string, rollback?: () => Promise<void>): Promise<TransferDocument<TTransfer, TDiagnostic>>;
|
|
322
434
|
closeModelDocument(args: CloseModelArgs): Promise<void>;
|
|
323
|
-
/**
|
|
324
|
-
* Drop the recorded hold for `(uri, clientId)` so {@link dispose} does not
|
|
325
|
-
* close it a second time. Idempotent.
|
|
326
|
-
*/
|
|
327
|
-
protected forgetOpenDocument(uri: string, clientId: string): void;
|
|
328
|
-
/**
|
|
329
|
-
* Close every document still open over this connection, for the clients that
|
|
330
|
-
* opened it here.
|
|
331
|
-
*
|
|
332
|
-
* The document store releases a per-URI hold only from an explicit close, so
|
|
333
|
-
* without this a client that dies mid-session keeps its documents open for the
|
|
334
|
-
* lifetime of the process: `isOpenInAnyClient` stays true, the document stays
|
|
335
|
-
* resident, and the last-close revert never runs. A long-lived multi-client
|
|
336
|
-
* head is the configuration where a dead client is normal rather than
|
|
337
|
-
* exceptional, so the leak accumulates there.
|
|
338
|
-
*
|
|
339
|
-
* Runs from {@link dispose}, which is synchronous, so each close is fired and
|
|
340
|
-
* its failure swallowed — a teardown must not reject, and a URI whose close
|
|
341
|
-
* fails is no worse off than it was before this drain existed.
|
|
342
|
-
*/
|
|
343
|
-
protected closeOpenDocuments(): void;
|
|
344
435
|
getModelDocument(args: GetModelDocumentArgs): Promise<TransferDocument<TTransfer, TDiagnostic>>;
|
|
345
436
|
updateModelDocument(args: TransferUpdateDocumentArgs<TTransfer>): Promise<TransferDocument<TTransfer, TDiagnostic>>;
|
|
346
437
|
saveModelDocument(args: TransferSaveDocumentArgs<TTransfer>): Promise<TransferDocument<TTransfer, TDiagnostic>>;
|
|
@@ -395,6 +486,23 @@ export declare class DataServer<TTransfer extends TransferElement, TDiagnostic e
|
|
|
395
486
|
* subclass.
|
|
396
487
|
*/
|
|
397
488
|
waitForReady(): Promise<void>;
|
|
489
|
+
/**
|
|
490
|
+
* Settle the build before a reference question is answered from the index.
|
|
491
|
+
*
|
|
492
|
+
* A query issued right after a model update otherwise races the rebuild and
|
|
493
|
+
* reads an index missing the symbols it asks about. The cost is not confined
|
|
494
|
+
* to this call: a scope built inside that window is cached, and the build's
|
|
495
|
+
* remaining documents link against it.
|
|
496
|
+
*
|
|
497
|
+
* Waits the source document specifically, but ONLY when one is loaded at
|
|
498
|
+
* that URI: a synthetic source can address a URI with no document (a
|
|
499
|
+
* directory URI, typically), where a per-URI `waitUntil` throws "No document
|
|
500
|
+
* found". Falls back to a global settle, matching the id-based
|
|
501
|
+
* `ElementSource` path.
|
|
502
|
+
*
|
|
503
|
+
* Bounded by {@link DataServerOptions.referenceSettleTimeoutMs}.
|
|
504
|
+
*/
|
|
505
|
+
protected awaitReferencesLinked(source: ReferenceSource): Promise<void>;
|
|
398
506
|
findReferenceCandidates(ctx: ReferenceContext): Promise<ReferenceCandidate[]>;
|
|
399
507
|
resolveReference(ref: ReferenceRequest): Promise<ReferenceTarget<TTransfer> | undefined>;
|
|
400
508
|
findNextName(args: FindNextNameArgs): Promise<string>;
|
|
@@ -409,6 +517,9 @@ export declare class DataServer<TTransfer extends TransferElement, TDiagnostic e
|
|
|
409
517
|
/**
|
|
410
518
|
* Pick the language that owns a reference source, in order:
|
|
411
519
|
*
|
|
520
|
+
* 0. A {@link isSyntheticSource} naming its own `language` routes there.
|
|
521
|
+
* First because every step below infers, and an inference must not
|
|
522
|
+
* override a caller that has said which grammar it means.
|
|
412
523
|
* 1. A URI-bearing source ({@link isDocumentSource}/{@link isSyntheticSource})
|
|
413
524
|
* whose URI resolves to a registered language routes by URI.
|
|
414
525
|
* 2. A single-language workspace always routes to that one language — so
|
|
@@ -482,6 +593,19 @@ export declare class DataServer<TTransfer extends TransferElement, TDiagnostic e
|
|
|
482
593
|
* single boundary point rather than spread across the callers.
|
|
483
594
|
*/
|
|
484
595
|
protected envelope(uri: URI): TransferDocument<TTransfer, TDiagnostic>;
|
|
596
|
+
/**
|
|
597
|
+
* The transfer document a request answers with for `astDocument`, the
|
|
598
|
+
* store's current `dirty` stamped on it by {@link withDirtyState}. Every
|
|
599
|
+
* document a request answers with goes through here, so none goes out
|
|
600
|
+
* without the stamp.
|
|
601
|
+
*/
|
|
602
|
+
protected encodeDocument(astDocument: AstDocument<AstNode, AstDiagnostic>): TransferDocument<TTransfer, TDiagnostic>;
|
|
603
|
+
/**
|
|
604
|
+
* `document` with the store's current {@link TransferDocument.dirty}. Read
|
|
605
|
+
* when the document is sent rather than kept with the build: a save changes
|
|
606
|
+
* the answer without a rebuild.
|
|
607
|
+
*/
|
|
608
|
+
protected withDirtyState(document: TransferDocument<TTransfer, TDiagnostic>): TransferDocument<TTransfer, TDiagnostic>;
|
|
485
609
|
/**
|
|
486
610
|
* Subscribe one listener at the configured {@link DataServerOptions.subscriptionPhase}.
|
|
487
611
|
* The listener dispatches subscription events for every matching URI. A
|
|
@@ -489,6 +613,42 @@ export declare class DataServer<TTransfer extends TransferElement, TDiagnostic e
|
|
|
489
613
|
* regardless of subscriber count.
|
|
490
614
|
*/
|
|
491
615
|
protected subscribeToDocumentBuilder(): void;
|
|
616
|
+
/**
|
|
617
|
+
* Report the documents that reached {@link DataServerOptions.subscriptionPhase}
|
|
618
|
+
* and that NOBODY on this
|
|
619
|
+
* connection is watching — the ones a client was not told about through
|
|
620
|
+
* {@link dispatchPhaseEvent}, which is gated per URI.
|
|
621
|
+
*
|
|
622
|
+
* **The gap this closes is the one no other source can observe.** A document
|
|
623
|
+
* the client watches, it hears about already. A file changed on disk, the
|
|
624
|
+
* host's own filesystem watcher reports — and on a browser host, where the
|
|
625
|
+
* workspace lives behind this head, an external change cannot happen at all.
|
|
626
|
+
* What is left, and what nothing outside the server can see, is a document
|
|
627
|
+
* rebuilt because something it DEPENDS ON changed: its file never changed, so
|
|
628
|
+
* a filesystem watcher is silent by construction, and it has no subscriber, so
|
|
629
|
+
* the update channel is silent by design. A consumer displaying data derived
|
|
630
|
+
* from that document — a tree label, a decorator — otherwise goes stale with
|
|
631
|
+
* no signal from any source, and repairs itself the moment someone opens the
|
|
632
|
+
* file to investigate, which is what makes it expensive to diagnose later.
|
|
633
|
+
*
|
|
634
|
+
* Payload-free on purpose: URIs only, so a client re-reads what it displays
|
|
635
|
+
* rather than being handed transfer documents it did not ask for. That is the
|
|
636
|
+
* property the subscription map protects, and it is preserved here by
|
|
637
|
+
* carrying no document rather than by gating the message.
|
|
638
|
+
*
|
|
639
|
+
* Quiet in the common case. Editing a document that an editor has open leaves
|
|
640
|
+
* that URI watched and therefore out of this set, so a build with no
|
|
641
|
+
* dependents produces nothing at all, and workspace initialisation produces
|
|
642
|
+
* nothing because it does not build to this phase. The ceiling is a
|
|
643
|
+
* whole-workspace rebuild at the subscription phase: one message, URIs only.
|
|
644
|
+
*
|
|
645
|
+
* The URI is canonicalised for the same reason the subscription map is keyed
|
|
646
|
+
* that way, and is untested for the same reason as its twin in
|
|
647
|
+
* {@link dispatchDeleteEvents}: the builder reports URIs out of its own
|
|
648
|
+
* store, so a non-canonical one cannot be produced without a fixture
|
|
649
|
+
* asserting a shape the real system never emits.
|
|
650
|
+
*/
|
|
651
|
+
protected dispatchBuiltEvent(built: readonly LangiumDocument[]): void;
|
|
492
652
|
/**
|
|
493
653
|
* Subscribe to the universal save event on `HydraniumTextDocuments` so a
|
|
494
654
|
* single `onDocumentSaved` wire notification fires for ANY save of a
|
|
@@ -504,13 +664,65 @@ export declare class DataServer<TTransfer extends TransferElement, TDiagnostic e
|
|
|
504
664
|
* clients, which never clear their dirty state.
|
|
505
665
|
*/
|
|
506
666
|
protected subscribeToTextDocumentSaves(): void;
|
|
667
|
+
/** Relay each change of a document's dirty state; see {@link dispatchDirtyEvent}. */
|
|
668
|
+
protected subscribeToDirtyChanges(): void;
|
|
669
|
+
/**
|
|
670
|
+
* Send a dirty flip to the connection, gated by the subscription map as
|
|
671
|
+
* {@link dispatchSaveEvent} is: the answer at any one moment travels on
|
|
672
|
+
* every document sent, so a client that watches nothing reads it there.
|
|
673
|
+
*/
|
|
674
|
+
protected dispatchDirtyEvent(event: DocumentDirtyChangedEvent): void;
|
|
507
675
|
/**
|
|
508
|
-
* Mark the
|
|
509
|
-
* {@link pendingRevertBroadcasts}).
|
|
510
|
-
*
|
|
511
|
-
*
|
|
676
|
+
* Mark each document the store releases after its last close (see
|
|
677
|
+
* {@link pendingRevertBroadcasts}). A release, not the close itself: a
|
|
678
|
+
* document whose last client lost its connection is released only once
|
|
679
|
+
* the revert grace runs out, or when another client opens it meanwhile, and
|
|
680
|
+
* not at all when a client lost from it opens it again within its own
|
|
681
|
+
* grace.
|
|
512
682
|
*/
|
|
513
683
|
protected subscribeToTextDocumentCloses(): void;
|
|
684
|
+
/**
|
|
685
|
+
* Fan out a deletion for each removed URI, to EVERY client on the connection
|
|
686
|
+
* rather than only to the ones watching that URI.
|
|
687
|
+
*
|
|
688
|
+
* **Deliberately ungated, where {@link dispatchPhaseEvent} and
|
|
689
|
+
* {@link dispatchSaveEvent} are gated.** Those two carry a built document and
|
|
690
|
+
* fire on every build, so the subscription map is what keeps bandwidth
|
|
691
|
+
* proportional to what a client asked for. A deletion is neither: it is one
|
|
692
|
+
* URI, it is rare, and it reports the workspace's STRUCTURE rather than a
|
|
693
|
+
* document's content. Gating it forces any consumer that displays the
|
|
694
|
+
* workspace — a model tree, a file decorator — to learn about disappearances
|
|
695
|
+
* from a filesystem watcher instead, which a client hosted in a browser has
|
|
696
|
+
* no way to run: its workspace lives behind the head. A client that does not
|
|
697
|
+
* care filters on the URI, which costs it a comparison.
|
|
698
|
+
*
|
|
699
|
+
* The precedent is the last-close revert broadcast (see
|
|
700
|
+
* {@link pendingRevertBroadcasts}), where the same judgement was already made
|
|
701
|
+
* in the other direction: a transition that matters enough is delivered
|
|
702
|
+
* without a subscription.
|
|
703
|
+
*
|
|
704
|
+
* Runs from the `DocumentBuilder.onUpdate` listener rather than from a phase
|
|
705
|
+
* listener, which is the only place a deletion is observable: `update`
|
|
706
|
+
* removes the document before deriving the rebuild set, so it is never built.
|
|
707
|
+
* That ordering also puts this notification ahead of the `'rebuilt'` events
|
|
708
|
+
* for the dependents whose references the deletion just broke.
|
|
709
|
+
*
|
|
710
|
+
* The `deleted` list arrives already expanded to concrete document URIs —
|
|
711
|
+
* `deleteDocuments` resolves a directory URI to the documents beneath it — so
|
|
712
|
+
* no caller has to handle a directory here.
|
|
713
|
+
*
|
|
714
|
+
* Per-URI derived state is dropped for the same reason it is dropped
|
|
715
|
+
* anywhere: it describes a document that no longer exists.
|
|
716
|
+
* {@link lastEmittedFingerprint} in particular can outlive its subscriptions
|
|
717
|
+
* through the last-close revert path — left behind, it is adopted as the
|
|
718
|
+
* baseline by the next {@link watchModelDocument} and suppresses the first
|
|
719
|
+
* emit after the file returns with its previous content.
|
|
720
|
+
*
|
|
721
|
+
* The subscription itself SURVIVES: a recreated file resumes delivering to
|
|
722
|
+
* the same watchers with no re-subscription, and a client that answers the
|
|
723
|
+
* deletion by closing releases the watch through `closeModelDocument` anyway.
|
|
724
|
+
*/
|
|
725
|
+
protected dispatchDeleteEvents(deleted: readonly URI[]): void;
|
|
514
726
|
/** Fan out a save event for the document's URI, gated by the subscription map. */
|
|
515
727
|
protected dispatchSaveEvent(event: ClientTextDocumentChangeEvent<TextDocument>): void;
|
|
516
728
|
/**
|
|
@@ -556,16 +768,16 @@ export declare class DataServer<TTransfer extends TransferElement, TDiagnostic e
|
|
|
556
768
|
/**
|
|
557
769
|
* Discriminate the reason for a phase-event-driven update notification.
|
|
558
770
|
* Uses the most recent `DocumentBuilder.onUpdate` snapshot:
|
|
559
|
-
* - URI in the `deleted` list → `'deleted'`
|
|
560
771
|
* - URI in the `changed` list → `'changed'` (the URI was passed to
|
|
561
772
|
* `documentBuilder.update(changed, deleted)`, which spans `didChange`
|
|
562
773
|
* text-document events and programmatic `update([uri], [])` calls).
|
|
563
774
|
* - Otherwise → `'rebuilt'` (cascade re-derivation: this URI was rebuilt
|
|
564
775
|
* because something it depends on changed; its own text wasn't flagged).
|
|
565
776
|
*
|
|
566
|
-
* `'saved'` is NOT emitted
|
|
567
|
-
* `DataClientProtocol.onDocumentSaved` channel
|
|
568
|
-
* unified
|
|
777
|
+
* `'saved'` is NOT emitted here — saves take the dedicated
|
|
778
|
+
* `DataClientProtocol.onDocumentSaved` channel, and adopters wanting a
|
|
779
|
+
* unified stream synthesise it in their bridge layer. A deletion is not a
|
|
780
|
+
* reason at all; see {@link dispatchDeleteEvents}.
|
|
569
781
|
*/
|
|
570
782
|
protected resolveUpdateReason(uri: URI): TransferDocumentUpdatedEvent<TTransfer, TDiagnostic>['reason'];
|
|
571
783
|
/**
|
|
@@ -610,5 +822,4 @@ export declare class DataServer<TTransfer extends TransferElement, TDiagnostic e
|
|
|
610
822
|
/** Resolve a partial options object into a fully-defaulted form. */
|
|
611
823
|
protected resolveOptions(partial: DataServerOptions): ResolvedDataServerOptions;
|
|
612
824
|
}
|
|
613
|
-
export {};
|
|
614
825
|
//# sourceMappingURL=data-server.d.ts.map
|
package/lib/data-server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-server.d.ts","sourceRoot":"","sources":["../src/data-server.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAElF,OAAO,
|
|
1
|
+
{"version":3,"file":"data-server.d.ts","sourceRoot":"","sources":["../src/data-server.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAElF,OAAO,EAGJ,oBAAoB,EAOpB,eAAe,EAGf,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,OAAO,EACZ,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,MAAM,EACX,KAAK,kBAAkB,EACvB,gBAAgB,EAChB,KAAK,eAAe,EAEtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAIJ,KAAK,kBAAkB,EACvB,KAAK,6BAA6B,EAClC,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,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