@hydranium/core 1.0.0-next.22 → 1.0.0-next.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/lib/langium/document-builder/build-session.d.ts +93 -0
  2. package/lib/langium/document-builder/build-session.d.ts.map +1 -0
  3. package/lib/langium/document-builder/build-session.js +72 -0
  4. package/lib/langium/document-builder/build-session.js.map +1 -0
  5. package/lib/langium/document-builder/document-builder.d.ts +117 -6
  6. package/lib/langium/document-builder/document-builder.d.ts.map +1 -1
  7. package/lib/langium/document-builder/document-builder.js +230 -9
  8. package/lib/langium/document-builder/document-builder.js.map +1 -1
  9. package/lib/langium/document-builder/index.d.ts +1 -0
  10. package/lib/langium/document-builder/index.d.ts.map +1 -1
  11. package/lib/langium/document-builder/index.js +1 -0
  12. package/lib/langium/document-builder/index.js.map +1 -1
  13. package/lib/langium/module.d.ts +7 -0
  14. package/lib/langium/module.d.ts.map +1 -1
  15. package/lib/langium/module.js +5 -0
  16. package/lib/langium/module.js.map +1 -1
  17. package/lib/langium/residency/cst-residency-service.d.ts +1 -1
  18. package/lib/langium/residency/cst-residency-service.js +1 -1
  19. package/lib/langium/shared-services.d.ts +2 -0
  20. package/lib/langium/shared-services.d.ts.map +1 -1
  21. package/lib/langium/shared-services.js.map +1 -1
  22. package/lib/langium/validation/document-validator.d.ts +17 -4
  23. package/lib/langium/validation/document-validator.d.ts.map +1 -1
  24. package/lib/langium/validation/document-validator.js.map +1 -1
  25. package/lib/langium/workspace/document-uri-policy.d.ts +3 -4
  26. package/lib/langium/workspace/document-uri-policy.d.ts.map +1 -1
  27. package/lib/langium/workspace/document-uri-policy.js +3 -4
  28. package/lib/langium/workspace/document-uri-policy.js.map +1 -1
  29. package/lib/langium/workspace/langium-documents.d.ts +44 -17
  30. package/lib/langium/workspace/langium-documents.d.ts.map +1 -1
  31. package/lib/langium/workspace/langium-documents.js +45 -28
  32. package/lib/langium/workspace/langium-documents.js.map +1 -1
  33. package/package.json +5 -5
  34. package/src/langium/document-builder/build-session.ts +87 -0
  35. package/src/langium/document-builder/document-builder.ts +269 -9
  36. package/src/langium/document-builder/index.ts +1 -0
  37. package/src/langium/module.ts +11 -0
  38. package/src/langium/residency/cst-residency-service.ts +1 -1
  39. package/src/langium/shared-services.ts +6 -0
  40. package/src/langium/validation/document-validator.ts +17 -4
  41. package/src/langium/workspace/document-uri-policy.ts +3 -4
  42. package/src/langium/workspace/langium-documents.ts +55 -33
@@ -0,0 +1,93 @@
1
+ /********************************************************************************
2
+ * Copyright (c) 2026 CrossBreeze, EclipseSource and others.
3
+ *
4
+ * This program and the accompanying materials are made available under the
5
+ * terms of the MIT License which is available in the project root.
6
+ *
7
+ * SPDX-License-Identifier: MIT
8
+ ********************************************************************************/
9
+ import { type URI } from '@hydranium/langium';
10
+ /** What a build is about, handed to `HydraniumDocumentBuilder.createBuildSession`. */
11
+ export interface BuildSessionContext {
12
+ /**
13
+ * Which entry point opened the build: `'build'` is the workspace-wide pass
14
+ * (initialization), `'update'` an incremental rebuild. A subclass deriving
15
+ * cascade state skips the work for `'build'`, where every document is in the
16
+ * set already and `shouldRelink` is never consulted.
17
+ */
18
+ readonly kind: 'build' | 'update';
19
+ /** Formatted description of what caused the build — a URI, a count summary. */
20
+ readonly trigger: string;
21
+ /** True when {@link trigger} already states the document count. */
22
+ readonly triggerCountsDocs: boolean;
23
+ /** URIs the build was asked to rebuild, already flattened and canonicalized. */
24
+ readonly changed: readonly URI[];
25
+ /** URIs the build was asked to delete, already expanded by `collectDeletedURIs`. Empty for a `build` call. */
26
+ readonly deleted: readonly URI[];
27
+ }
28
+ /**
29
+ * One rebuild, treated as a correlated unit.
30
+ *
31
+ * Everything a build phase needs to know about the build it belongs to — what
32
+ * triggered it, when it started, whether it was cancelled, and the log lines it
33
+ * has produced so far. A `HydraniumDocumentBuilder` opens one per `update` /
34
+ * `build` call and holds it for the duration, so a per-phase hook can reach
35
+ * build-wide facts that no per-line formatting hook could.
36
+ *
37
+ * **Identity is the object, not {@link traceId}.** `Tracer.time` short-circuits
38
+ * when its log level is suppressed and never calls `captureId`, so `traceId` is
39
+ * `undefined` on every build in a production configuration that logs above
40
+ * `debug`. A teardown guard keyed on the id would then compare `undefined`
41
+ * against `undefined` and let a preempted build clear its successor's state.
42
+ * Reference equality against `HydraniumDocumentBuilder.activeSession` holds in
43
+ * both configurations, which is why nothing here is keyed on the id.
44
+ *
45
+ * Adopters carrying build-scoped state of their own subclass this and return it
46
+ * from `HydraniumDocumentBuilder.createBuildSession`, narrowing with an
47
+ * `instanceof` where they read it back. That buys them the framework's
48
+ * preemption-correct teardown rather than a second copy of it.
49
+ */
50
+ export declare class BuildSession {
51
+ /** Millisecond timestamp the build started at, on the same clock as `performance.now()`. */
52
+ readonly startMs: number;
53
+ /** What caused this build — a formatted URI, a count summary, or an adopter label. */
54
+ readonly trigger: string;
55
+ /** True when {@link trigger} already states the document count, so a phase line must not repeat it. */
56
+ readonly triggerCountsDocs: boolean;
57
+ /**
58
+ * Build duration at or above which the buffered lines are emitted; `0`
59
+ * disables buffering entirely. Captured per session so the flush decision
60
+ * uses the same value the buffering decision did, even if the underlying
61
+ * observable changed mid-build.
62
+ */
63
+ readonly detailThresholdMs: number;
64
+ /**
65
+ * `Tracer.time` correlation id, so a phase line and the build line share a
66
+ * `#N`. `undefined` until the timer starts, and permanently `undefined` when
67
+ * the timing line is suppressed.
68
+ */
69
+ traceId?: number;
70
+ /** Set when the build ended in `OperationCancelled`, so the successor can tag itself "cancels #N". */
71
+ cancelled: boolean;
72
+ /** Phase-reached lines produced so far; the first one measures from {@link startMs} rather than from the previous phase. */
73
+ phasesLogged: number;
74
+ /** Lines held back by {@link detailThresholdMs}; flushed or dropped when the build ends. */
75
+ readonly bufferedLines: string[];
76
+ constructor(
77
+ /** Millisecond timestamp the build started at, on the same clock as `performance.now()`. */
78
+ startMs: number,
79
+ /** What caused this build — a formatted URI, a count summary, or an adopter label. */
80
+ trigger: string,
81
+ /** True when {@link trigger} already states the document count, so a phase line must not repeat it. */
82
+ triggerCountsDocs: boolean,
83
+ /**
84
+ * Build duration at or above which the buffered lines are emitted; `0`
85
+ * disables buffering entirely. Captured per session so the flush decision
86
+ * uses the same value the buffering decision did, even if the underlying
87
+ * observable changed mid-build.
88
+ */
89
+ detailThresholdMs: number);
90
+ /** True while lines are being held rather than emitted as they are produced. */
91
+ get buffers(): boolean;
92
+ }
93
+ //# sourceMappingURL=build-session.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build-session.d.ts","sourceRoot":"","sources":["../../../src/langium/document-builder/build-session.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAElF,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,oBAAoB,CAAC;AAE9C,sFAAsF;AACtF,MAAM,WAAW,mBAAmB;IACjC;;;;;OAKG;IACH,QAAQ,CAAC,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAC;IAClC,+EAA+E;IAC/E,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,mEAAmE;IACnE,QAAQ,CAAC,iBAAiB,EAAE,OAAO,CAAC;IACpC,gFAAgF;IAChF,QAAQ,CAAC,OAAO,EAAE,SAAS,GAAG,EAAE,CAAC;IACjC,8GAA8G;IAC9G,QAAQ,CAAC,OAAO,EAAE,SAAS,GAAG,EAAE,CAAC;CACnC;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,qBAAa,YAAY;IAenB,4FAA4F;IAC5F,QAAQ,CAAC,OAAO,EAAE,MAAM;IACxB,sFAAsF;IACtF,QAAQ,CAAC,OAAO,EAAE,MAAM;IACxB,uGAAuG;IACvG,QAAQ,CAAC,iBAAiB,EAAE,OAAO;IACnC;;;;;OAKG;IACH,QAAQ,CAAC,iBAAiB,EAAE,MAAM;IA1BrC;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sGAAsG;IACtG,SAAS,UAAS;IAClB,4HAA4H;IAC5H,YAAY,SAAK;IACjB,4FAA4F;IAC5F,QAAQ,CAAC,aAAa,EAAE,MAAM,EAAE,CAAM;;IAGnC,4FAA4F;IACnF,OAAO,EAAE,MAAM;IACxB,sFAAsF;IAC7E,OAAO,EAAE,MAAM;IACxB,uGAAuG;IAC9F,iBAAiB,EAAE,OAAO;IACnC;;;;;OAKG;IACM,iBAAiB,EAAE,MAAM;IAGrC,gFAAgF;IAChF,IAAI,OAAO,IAAI,OAAO,CAErB;CACH"}
@@ -0,0 +1,72 @@
1
+ /********************************************************************************
2
+ * Copyright (c) 2026 CrossBreeze, EclipseSource and others.
3
+ *
4
+ * This program and the accompanying materials are made available under the
5
+ * terms of the MIT License which is available in the project root.
6
+ *
7
+ * SPDX-License-Identifier: MIT
8
+ ********************************************************************************/
9
+ /**
10
+ * One rebuild, treated as a correlated unit.
11
+ *
12
+ * Everything a build phase needs to know about the build it belongs to — what
13
+ * triggered it, when it started, whether it was cancelled, and the log lines it
14
+ * has produced so far. A `HydraniumDocumentBuilder` opens one per `update` /
15
+ * `build` call and holds it for the duration, so a per-phase hook can reach
16
+ * build-wide facts that no per-line formatting hook could.
17
+ *
18
+ * **Identity is the object, not {@link traceId}.** `Tracer.time` short-circuits
19
+ * when its log level is suppressed and never calls `captureId`, so `traceId` is
20
+ * `undefined` on every build in a production configuration that logs above
21
+ * `debug`. A teardown guard keyed on the id would then compare `undefined`
22
+ * against `undefined` and let a preempted build clear its successor's state.
23
+ * Reference equality against `HydraniumDocumentBuilder.activeSession` holds in
24
+ * both configurations, which is why nothing here is keyed on the id.
25
+ *
26
+ * Adopters carrying build-scoped state of their own subclass this and return it
27
+ * from `HydraniumDocumentBuilder.createBuildSession`, narrowing with an
28
+ * `instanceof` where they read it back. That buys them the framework's
29
+ * preemption-correct teardown rather than a second copy of it.
30
+ */
31
+ export class BuildSession {
32
+ startMs;
33
+ trigger;
34
+ triggerCountsDocs;
35
+ detailThresholdMs;
36
+ /**
37
+ * `Tracer.time` correlation id, so a phase line and the build line share a
38
+ * `#N`. `undefined` until the timer starts, and permanently `undefined` when
39
+ * the timing line is suppressed.
40
+ */
41
+ traceId;
42
+ /** Set when the build ended in `OperationCancelled`, so the successor can tag itself "cancels #N". */
43
+ cancelled = false;
44
+ /** Phase-reached lines produced so far; the first one measures from {@link startMs} rather than from the previous phase. */
45
+ phasesLogged = 0;
46
+ /** Lines held back by {@link detailThresholdMs}; flushed or dropped when the build ends. */
47
+ bufferedLines = [];
48
+ constructor(
49
+ /** Millisecond timestamp the build started at, on the same clock as `performance.now()`. */
50
+ startMs,
51
+ /** What caused this build — a formatted URI, a count summary, or an adopter label. */
52
+ trigger,
53
+ /** True when {@link trigger} already states the document count, so a phase line must not repeat it. */
54
+ triggerCountsDocs,
55
+ /**
56
+ * Build duration at or above which the buffered lines are emitted; `0`
57
+ * disables buffering entirely. Captured per session so the flush decision
58
+ * uses the same value the buffering decision did, even if the underlying
59
+ * observable changed mid-build.
60
+ */
61
+ detailThresholdMs) {
62
+ this.startMs = startMs;
63
+ this.trigger = trigger;
64
+ this.triggerCountsDocs = triggerCountsDocs;
65
+ this.detailThresholdMs = detailThresholdMs;
66
+ }
67
+ /** True while lines are being held rather than emitted as they are produced. */
68
+ get buffers() {
69
+ return this.detailThresholdMs > 0;
70
+ }
71
+ }
72
+ //# sourceMappingURL=build-session.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build-session.js","sourceRoot":"","sources":["../../../src/langium/document-builder/build-session.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAuBlF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,OAAO,YAAY;IAgBV;IAEA;IAEA;IAOA;IA1BZ;;;;OAIG;IACH,OAAO,CAAU;IACjB,sGAAsG;IACtG,SAAS,GAAG,KAAK,CAAC;IAClB,4HAA4H;IAC5H,YAAY,GAAG,CAAC,CAAC;IACjB,4FAA4F;IACnF,aAAa,GAAa,EAAE,CAAC;IAEtC;IACG,4FAA4F;IACnF,OAAe;IACxB,sFAAsF;IAC7E,OAAe;IACxB,uGAAuG;IAC9F,iBAA0B;IACnC;;;;;OAKG;IACM,iBAAyB;QAXzB,YAAO,GAAP,OAAO,CAAQ;QAEf,YAAO,GAAP,OAAO,CAAQ;QAEf,sBAAiB,GAAjB,iBAAiB,CAAS;QAO1B,sBAAiB,GAAjB,iBAAiB,CAAQ;IAClC,CAAC;IAEJ,gFAAgF;IAChF,IAAI,OAAO;QACR,OAAO,IAAI,CAAC,iBAAiB,GAAG,CAAC,CAAC;IACrC,CAAC;CACH"}
@@ -7,12 +7,13 @@
7
7
  * SPDX-License-Identifier: MIT
8
8
  ********************************************************************************/
9
9
  import { type Clock, type LogThreshold, type MaybeObservableValue, ObservableValue, type Tracer } from '@hydranium/protocol';
10
- import { type BuildOptions, DefaultDocumentBuilder, type DocumentPhaseListener, DocumentState, type LangiumDocument, type URI } from '@hydranium/langium';
10
+ import { type AstNode, type BuildOptions, DefaultDocumentBuilder, type DocumentPhaseListener, DocumentState, type LangiumDocument, type URI } from '@hydranium/langium';
11
11
  import { CancellationToken } from 'vscode-languageserver-protocol';
12
12
  import { type LogNameOptions } from '../diagnostics/logger.js';
13
13
  import { type ExtendedServiceRegistry } from '../service-registry.js';
14
14
  import { type ServerSharedServicesMinimal } from '../shared-services.js';
15
15
  import { type DocumentUriPolicy } from '../workspace/document-uri-policy.js';
16
+ import { BuildSession, type BuildSessionContext } from './build-session.js';
16
17
  /** Document states a phase-reached line is emitted for by default — every built phase. */
17
18
  export declare const DEFAULT_LOGGED_PHASES: DocumentState[];
18
19
  /** Constructor options for {@link HydraniumDocumentBuilder}. */
@@ -46,6 +47,18 @@ export interface DocumentBuilderOptions extends LogNameOptions {
46
47
  * logged. Default: `25`. Read per phase; accepts a {@link MaybeObservableValue}.
47
48
  */
48
49
  readonly slowBuildMs?: MaybeObservableValue<number>;
50
+ /**
51
+ * Build duration at or above which a build's phase-reached and slow-listener
52
+ * lines are emitted; they are held for the duration of the build and dropped
53
+ * when it finishes faster. Default `0` — no buffering, every line emitted as
54
+ * it is produced, which is the only setting that keeps lines interleaved with
55
+ * the rest of the log in real time.
56
+ *
57
+ * Set it to make a fast rebuild log nothing but its one build line. The
58
+ * decision needs the build's TOTAL duration, so it cannot be made by any
59
+ * per-line hook. Read once per build; accepts a {@link MaybeObservableValue}.
60
+ */
61
+ readonly phaseDetailMs?: MaybeObservableValue<number>;
49
62
  /**
50
63
  * Refresh cross-document `ComputedScopes` derivations when a referencing
51
64
  * document is cascade-rebuilt (see
@@ -73,14 +86,21 @@ export interface DocumentBuilderOptions extends LogNameOptions {
73
86
  * {@link reparseAndRelink} — for a build-phase listener that mutated a
74
87
  * document's AST and must reconcile it within the same build.
75
88
  * - **Diagnostic dedupe** at `Validated` ({@link dedupeDiagnostics}).
89
+ * - **Build sessions** ({@link BuildSession}): each `update` / `build` call is
90
+ * one correlated unit carrying an id, a trigger label, a start time and
91
+ * cancellation lineage, so every line of a rebuild reads as belonging to it
92
+ * and a preempted build is distinguishable from the winner.
76
93
  * - **Logging instrumentation** (default on, opt-out via `logLevel: 'off'`):
77
- * phase-reached lines, slow-listener breakdowns on `notifyDocumentPhase`,
78
- * and slow-build-phase totals on `notifyBuildPhase`.
94
+ * a per-build line, phase-reached lines, slow-listener breakdowns on
95
+ * `notifyDocumentPhase`, and slow-build-phase totals on `notifyBuildPhase`.
79
96
  *
80
97
  * Adopters extend this class — the configuration knobs cover what most
81
98
  * adopters need; the `format*Line` methods, `formatUri`, and
82
99
  * `collectDeletedURIs` are protected so subclasses can customise wording or
83
- * domain-aware cascades without re-implementing surrounding logic.
100
+ * domain-aware cascades without re-implementing surrounding logic. An adopter
101
+ * with build-scoped state of its own subclasses {@link BuildSession} and
102
+ * overrides {@link createBuildSession}, which puts that state under the same
103
+ * preemption-correct teardown rather than a reimplementation of it.
84
104
  */
85
105
  export declare class HydraniumDocumentBuilder extends DefaultDocumentBuilder {
86
106
  protected readonly tracer: Tracer;
@@ -94,6 +114,8 @@ export declare class HydraniumDocumentBuilder extends DefaultDocumentBuilder {
94
114
  protected readonly slowListenerMs: ObservableValue<number>;
95
115
  /** Live slow-build-phase-total threshold; read `.value` per phase. */
96
116
  protected readonly slowBuildMs: ObservableValue<number>;
117
+ /** Live phase-detail buffering threshold; read `.value` once per build, onto the session. */
118
+ protected readonly phaseDetailMs: ObservableValue<number>;
97
119
  protected readonly uriPolicy: DocumentUriPolicy;
98
120
  protected readonly clock: Clock;
99
121
  /** Narrower handle on the same registry as the inherited `serviceRegistry`, for {@link ExtendedServiceRegistry.registrations}. */
@@ -106,6 +128,22 @@ export declare class HydraniumDocumentBuilder extends DefaultDocumentBuilder {
106
128
  protected readonly refreshCrossDocumentComputedScopes: boolean;
107
129
  /** LSP event name (e.g. `'didChangeWatchedFiles'`) staged for the next `update()` call. */
108
130
  protected pendingUpdateReason?: string;
131
+ /**
132
+ * The build currently in progress, or `undefined` between builds.
133
+ *
134
+ * A subclass carrying its own build-scoped state returns a {@link BuildSession}
135
+ * subclass from {@link createBuildSession} and narrows this with a typeguard
136
+ * where it reads that state — rather than redeclaring the field, whose
137
+ * initialiser would run after `super()` and clear a session opened during
138
+ * construction.
139
+ */
140
+ protected activeSession?: BuildSession;
141
+ /**
142
+ * `traceId` of the last build that ended in cancellation, for the successor's
143
+ * "cancels #N" tag. Held here rather than on a session because the session
144
+ * that carries it is already gone by the time its successor is opened.
145
+ */
146
+ protected lastCancelledTraceId?: number;
109
147
  constructor(services: ServerSharedServicesMinimal, options?: DocumentBuilderOptions);
110
148
  /**
111
149
  * Stage an LSP event name for the next `update()` call. Adopters call before
@@ -130,6 +168,8 @@ export declare class HydraniumDocumentBuilder extends DefaultDocumentBuilder {
130
168
  * duplicate what this already knows.
131
169
  */
132
170
  formatBuildStatus(uri: URI): string;
171
+ /** Render a session for a status line. `undefined` — no build in progress — reads as `none`. */
172
+ protected formatSession(session: BuildSession | undefined): string;
133
173
  /**
134
174
  * Two edge cases the default Langium implementation rejects on:
135
175
  * - Document below target state with no build active (newly-created file):
@@ -228,6 +268,12 @@ export declare class HydraniumDocumentBuilder extends DefaultDocumentBuilder {
228
268
  */
229
269
  protected shouldRelink(document: LangiumDocument, changedUris: Set<string>): boolean;
230
270
  update(changed: URI[], deleted: URI[], cancelToken?: CancellationToken): Promise<void>;
271
+ /**
272
+ * The workspace-initialization entry point, bracketed by a session like
273
+ * {@link update}. Langium's `update` reaches `buildDocuments` directly rather
274
+ * than through here, so the two never nest.
275
+ */
276
+ build<T extends AstNode>(documents: Array<LangiumDocument<T>>, options?: BuildOptions, cancelToken?: CancellationToken): Promise<void>;
231
277
  /**
232
278
  * Refresh cross-document `ComputedScopes` derivations on cascade, when
233
279
  * {@link refreshCrossDocumentComputedScopes} is set (default off).
@@ -340,10 +386,65 @@ export declare class HydraniumDocumentBuilder extends DefaultDocumentBuilder {
340
386
  * project descriptor should cascade to all its members).
341
387
  */
342
388
  protected collectDeletedURIs(uri: URI): URI[];
389
+ /**
390
+ * Open a session, run `body` inside it, and close it — the bracket every
391
+ * line of a rebuild is emitted within.
392
+ *
393
+ * The session is installed **synchronously**, before the timed body runs, so
394
+ * that state a subclass computed in {@link createBuildSession} is already
395
+ * readable by the time Langium's `update` consults `shouldRelink`.
396
+ *
397
+ * Teardown is preemption-correct, which is the reason this is framework code
398
+ * rather than a recipe. Langium's write mutex cancels an in-flight build when
399
+ * a later one arrives, so two sessions overlap: the successor installs itself
400
+ * as {@link activeSession} while the predecessor is still unwinding, and the
401
+ * predecessor's `finally` runs LAST. Clearing unconditionally there would
402
+ * discard the winner's state mid-build. Only the session that is still
403
+ * current clears — and the check is reference equality on the session object,
404
+ * not on {@link BuildSession.traceId}, which is `undefined` for every build
405
+ * whenever the timing level is suppressed and would compare equal to itself
406
+ * across two different builds.
407
+ *
408
+ * Re-entrancy is not hypothetical even without an adopter: {@link
409
+ * requeueOrphaned} calls `update` from inside a wait, while a build may be
410
+ * running.
411
+ */
412
+ protected runInSession(context: BuildSessionContext, label: string, body: () => Promise<void>): Promise<void>;
413
+ /**
414
+ * Construct the session for one build. Override to return a
415
+ * {@link BuildSession} subclass carrying adopter build-scoped state — it is
416
+ * called before the build body, so anything derived here is readable
417
+ * throughout it.
418
+ */
419
+ protected createBuildSession(context: BuildSessionContext): BuildSession;
420
+ /**
421
+ * Close `session`: flush what it buffered, then release it if it is still the
422
+ * current one (see {@link runInSession} on why that check is conditional).
423
+ * The flush is unconditional — a preempted build's lines still describe work
424
+ * that happened.
425
+ */
426
+ protected endSession(session: BuildSession): void;
427
+ /**
428
+ * Emit the lines `session` held back, if it ran long enough to be worth the
429
+ * detail; drop them otherwise. Emits through {@link emit} rather than
430
+ * {@link log}, which would route them straight back into the buffer.
431
+ */
432
+ protected flushSession(session: BuildSession): void;
433
+ /** Label for the build's own log line. Override to customise wording. */
434
+ protected rebuildLabel(changed: URI[], deleted: URI[]): string;
435
+ /** Short description of what triggered the build, repeated on every phase line. Override to customise wording. */
436
+ protected buildTriggerLabel(changed: URI[], deleted: URI[]): string;
343
437
  protected registerPhaseListeners(): void;
344
438
  /** Called once per phase-reached event. Override to add custom side-effects beyond logging. */
345
439
  protected onPhaseReached(state: DocumentState, documents: LangiumDocument[]): void;
346
- /** Format the phase-reached log line. Override to customise wording. */
440
+ /**
441
+ * Format the phase-reached log line. Override to customise wording.
442
+ *
443
+ * Within a session the line names what triggered the build, so a phase read
444
+ * in isolation still says which rebuild it belongs to. `elapsedMs` is ignored
445
+ * for the FIRST phase of a session: it measures from the previous build's
446
+ * last phase, an idle gap that says nothing about this build.
447
+ */
347
448
  protected phaseReachedLine(state: DocumentState, documents: LangiumDocument[], elapsedMs: number): string;
348
449
  notifyDocumentPhase(document: LangiumDocument, state: DocumentState, cancelToken: CancellationToken): Promise<void>;
349
450
  /**
@@ -399,7 +500,17 @@ export declare class HydraniumDocumentBuilder extends DefaultDocumentBuilder {
399
500
  * serialising anything.
400
501
  */
401
502
  protected dedupeDiagnostics(document: LangiumDocument): void;
402
- /** Dispatch a log line at the configured log level; a no-op when `logLevel === 'off'`. */
503
+ /**
504
+ * Dispatch a log line at the configured log level; a no-op when `logLevel ===
505
+ * 'off'`.
506
+ *
507
+ * Held on the active session when it buffers, so the "was this build worth a
508
+ * per-phase breakdown" decision — which needs the build's total duration, and
509
+ * so cannot be taken by anything that runs while the lines are produced — is
510
+ * deferred to {@link flushSession}.
511
+ */
403
512
  protected log(message: string): void;
513
+ /** Write a line out, bypassing session buffering. The single sink every framework log line reaches. */
514
+ protected emit(message: string): void;
404
515
  }
405
516
  //# sourceMappingURL=document-builder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"document-builder.d.ts","sourceRoot":"","sources":["../../../src/langium/document-builder/document-builder.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAElF,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,YAAY,EAAE,KAAK,oBAAoB,EAAE,eAAe,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7H,OAAO,EACJ,KAAK,YAAY,EACjB,sBAAsB,EACtB,KAAK,qBAAqB,EAC1B,aAAa,EACb,KAAK,eAAe,EAEpB,KAAK,GAAG,EAIV,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,iBAAiB,EAAmB,MAAM,gCAAgC,CAAC;AACpF,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE/D,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACtE,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAG7E,0FAA0F;AAC1F,eAAO,MAAM,qBAAqB,EAAE,aAAa,EAOhD,CAAC;AAWF,gEAAgE;AAChE,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC3D;;;;;OAKG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,YAAY,CAAC;IACjC;;;;OAIG;IACH,QAAQ,CAA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