@hydranium/core 1.0.0-next.14 → 1.0.0-next.148
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 +5 -1
- package/lib/documents/ast-document-manager.d.ts +187 -27
- package/lib/documents/ast-document-manager.d.ts.map +1 -1
- package/lib/documents/ast-document-manager.js +235 -38
- package/lib/documents/ast-document-manager.js.map +1 -1
- package/lib/documents/client-ids.d.ts +5 -19
- package/lib/documents/client-ids.d.ts.map +1 -1
- package/lib/documents/client-ids.js +5 -19
- package/lib/documents/client-ids.js.map +1 -1
- package/lib/documents/client-session-errors.d.ts +15 -0
- package/lib/documents/client-session-errors.d.ts.map +1 -0
- package/lib/documents/client-session-errors.js +15 -0
- package/lib/documents/client-session-errors.js.map +1 -0
- package/lib/documents/client-session-registry.d.ts +138 -0
- package/lib/documents/client-session-registry.d.ts.map +1 -0
- package/lib/documents/client-session-registry.js +187 -0
- package/lib/documents/client-session-registry.js.map +1 -0
- package/lib/documents/file-system-task-queue.d.ts +49 -0
- package/lib/documents/file-system-task-queue.d.ts.map +1 -0
- package/lib/documents/file-system-task-queue.js +34 -0
- package/lib/documents/file-system-task-queue.js.map +1 -0
- package/lib/documents/hydranium-text-documents.d.ts +386 -57
- package/lib/documents/hydranium-text-documents.d.ts.map +1 -1
- package/lib/documents/hydranium-text-documents.js +700 -126
- package/lib/documents/hydranium-text-documents.js.map +1 -1
- package/lib/documents/index.d.ts +3 -0
- package/lib/documents/index.d.ts.map +1 -1
- package/lib/documents/index.js +3 -0
- package/lib/documents/index.js.map +1 -1
- package/lib/documents/language-client-text-shadow.d.ts +41 -9
- package/lib/documents/language-client-text-shadow.d.ts.map +1 -1
- package/lib/documents/language-client-text-shadow.js +56 -11
- package/lib/documents/language-client-text-shadow.js.map +1 -1
- package/lib/documents/self-save-registry.d.ts +37 -6
- package/lib/documents/self-save-registry.d.ts.map +1 -1
- package/lib/documents/self-save-registry.js +28 -15
- package/lib/documents/self-save-registry.js.map +1 -1
- package/lib/index.d.ts +3 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +6 -0
- package/lib/index.js.map +1 -1
- package/lib/langium/ast-extension/ast-node-builder.d.ts +32 -9
- package/lib/langium/ast-extension/ast-node-builder.d.ts.map +1 -1
- package/lib/langium/ast-extension/ast-node-builder.js +60 -22
- package/lib/langium/ast-extension/ast-node-builder.js.map +1 -1
- package/lib/langium/bootstrap.d.ts.map +1 -1
- package/lib/langium/bootstrap.js +16 -9
- package/lib/langium/bootstrap.js.map +1 -1
- package/lib/langium/config/configuration-provider.d.ts +81 -0
- package/lib/langium/config/configuration-provider.d.ts.map +1 -0
- package/lib/langium/config/configuration-provider.js +112 -0
- package/lib/langium/config/configuration-provider.js.map +1 -0
- package/lib/langium/config/index.d.ts +1 -0
- package/lib/langium/config/index.d.ts.map +1 -1
- package/lib/langium/config/index.js +1 -0
- package/lib/langium/config/index.js.map +1 -1
- package/lib/langium/diagnostics/lsp-logger.d.ts +17 -0
- package/lib/langium/diagnostics/lsp-logger.d.ts.map +1 -1
- package/lib/langium/diagnostics/lsp-logger.js +40 -6
- package/lib/langium/diagnostics/lsp-logger.js.map +1 -1
- package/lib/langium/document-builder/build-pipeline-integration.d.ts +21 -1
- package/lib/langium/document-builder/build-pipeline-integration.d.ts.map +1 -1
- package/lib/langium/document-builder/build-pipeline-integration.js +32 -5
- package/lib/langium/document-builder/build-pipeline-integration.js.map +1 -1
- package/lib/langium/document-builder/build-session.d.ts +93 -0
- package/lib/langium/document-builder/build-session.d.ts.map +1 -0
- package/lib/langium/document-builder/build-session.js +72 -0
- package/lib/langium/document-builder/build-session.js.map +1 -0
- package/lib/langium/document-builder/document-builder.d.ts +352 -16
- package/lib/langium/document-builder/document-builder.d.ts.map +1 -1
- package/lib/langium/document-builder/document-builder.js +616 -40
- package/lib/langium/document-builder/document-builder.js.map +1 -1
- package/lib/langium/document-builder/index.d.ts +1 -0
- package/lib/langium/document-builder/index.d.ts.map +1 -1
- package/lib/langium/document-builder/index.js +1 -0
- package/lib/langium/document-builder/index.js.map +1 -1
- package/lib/langium/integration-services.d.ts +45 -1
- package/lib/langium/integration-services.d.ts.map +1 -1
- package/lib/langium/integration-services.js +10 -5
- package/lib/langium/integration-services.js.map +1 -1
- package/lib/langium/integrity/integrity-rule.d.ts +13 -5
- package/lib/langium/integrity/integrity-rule.d.ts.map +1 -1
- package/lib/langium/integrity/integrity-rule.js.map +1 -1
- package/lib/langium/integrity/integrity-service.d.ts +50 -6
- package/lib/langium/integrity/integrity-service.d.ts.map +1 -1
- package/lib/langium/integrity/integrity-service.js +193 -17
- package/lib/langium/integrity/integrity-service.js.map +1 -1
- package/lib/langium/keys/containment.d.ts +64 -0
- package/lib/langium/keys/containment.d.ts.map +1 -0
- package/lib/langium/keys/containment.js +53 -0
- package/lib/langium/keys/containment.js.map +1 -0
- package/lib/langium/keys/index.d.ts +1 -0
- package/lib/langium/keys/index.d.ts.map +1 -1
- package/lib/langium/keys/index.js +1 -0
- package/lib/langium/keys/index.js.map +1 -1
- package/lib/langium/keys/name-based-key-provider.d.ts +4 -0
- package/lib/langium/keys/name-based-key-provider.d.ts.map +1 -1
- package/lib/langium/keys/name-based-key-provider.js +4 -0
- package/lib/langium/keys/name-based-key-provider.js.map +1 -1
- package/lib/langium/language-module.d.ts +27 -2
- package/lib/langium/language-module.d.ts.map +1 -1
- package/lib/langium/language-module.js +16 -2
- package/lib/langium/language-module.js.map +1 -1
- package/lib/langium/model-service/client-session.d.ts +307 -0
- package/lib/langium/model-service/client-session.d.ts.map +1 -0
- package/lib/langium/model-service/client-session.js +395 -0
- package/lib/langium/model-service/client-session.js.map +1 -0
- package/lib/langium/model-service/index.d.ts +1 -0
- package/lib/langium/model-service/index.d.ts.map +1 -1
- package/lib/langium/model-service/index.js +1 -0
- package/lib/langium/model-service/index.js.map +1 -1
- package/lib/langium/model-service/model-service.d.ts +261 -198
- package/lib/langium/model-service/model-service.d.ts.map +1 -1
- package/lib/langium/model-service/model-service.js +232 -344
- package/lib/langium/model-service/model-service.js.map +1 -1
- package/lib/langium/module.d.ts +107 -24
- package/lib/langium/module.d.ts.map +1 -1
- package/lib/langium/module.js +30 -12
- package/lib/langium/module.js.map +1 -1
- package/lib/langium/naming/name-provider.d.ts +25 -4
- package/lib/langium/naming/name-provider.d.ts.map +1 -1
- package/lib/langium/naming/name-provider.js +2 -1
- package/lib/langium/naming/name-provider.js.map +1 -1
- package/lib/langium/naming/name-separator-validation.d.ts +23 -0
- package/lib/langium/naming/name-separator-validation.d.ts.map +1 -1
- package/lib/langium/naming/name-separator-validation.js +30 -1
- package/lib/langium/naming/name-separator-validation.js.map +1 -1
- package/lib/langium/residency/cst-residency-service.d.ts +31 -11
- package/lib/langium/residency/cst-residency-service.d.ts.map +1 -1
- package/lib/langium/residency/cst-residency-service.js +13 -56
- package/lib/langium/residency/cst-residency-service.js.map +1 -1
- package/lib/langium/scope/hydranium-scope-provider.d.ts +48 -13
- package/lib/langium/scope/hydranium-scope-provider.d.ts.map +1 -1
- package/lib/langium/scope/hydranium-scope-provider.js +56 -20
- package/lib/langium/scope/hydranium-scope-provider.js.map +1 -1
- package/lib/langium/serialization/abstract-serializer.d.ts +11 -20
- package/lib/langium/serialization/abstract-serializer.d.ts.map +1 -1
- package/lib/langium/serialization/abstract-serializer.js +12 -21
- package/lib/langium/serialization/abstract-serializer.js.map +1 -1
- package/lib/langium/service-registry.d.ts +15 -1
- package/lib/langium/service-registry.d.ts.map +1 -1
- package/lib/langium/service-registry.js +16 -0
- package/lib/langium/service-registry.js.map +1 -1
- package/lib/langium/shared-services.d.ts +15 -2
- package/lib/langium/shared-services.d.ts.map +1 -1
- package/lib/langium/shared-services.js.map +1 -1
- package/lib/langium/transfer/transfer-encoder.d.ts +60 -17
- package/lib/langium/transfer/transfer-encoder.d.ts.map +1 -1
- package/lib/langium/transfer/transfer-encoder.js +38 -16
- package/lib/langium/transfer/transfer-encoder.js.map +1 -1
- package/lib/langium/trivia/comment-preserver.d.ts +423 -0
- package/lib/langium/trivia/comment-preserver.d.ts.map +1 -0
- package/lib/langium/trivia/comment-preserver.js +906 -0
- package/lib/langium/trivia/comment-preserver.js.map +1 -0
- package/lib/langium/trivia/document-ending-preserver.d.ts +43 -0
- package/lib/langium/trivia/document-ending-preserver.d.ts.map +1 -0
- package/lib/langium/trivia/document-ending-preserver.js +48 -0
- package/lib/langium/trivia/document-ending-preserver.js.map +1 -0
- package/lib/langium/trivia/index.d.ts +14 -0
- package/lib/langium/trivia/index.d.ts.map +1 -0
- package/lib/langium/trivia/index.js +14 -0
- package/lib/langium/trivia/index.js.map +1 -0
- package/lib/langium/trivia/trivia-contribution.d.ts +37 -0
- package/lib/langium/trivia/trivia-contribution.d.ts.map +1 -0
- package/lib/langium/trivia/trivia-contribution.js +10 -0
- package/lib/langium/trivia/trivia-contribution.js.map +1 -0
- package/lib/langium/trivia/trivia-preserver.d.ts +50 -0
- package/lib/langium/trivia/trivia-preserver.d.ts.map +1 -0
- package/lib/langium/trivia/trivia-preserver.js +10 -0
- package/lib/langium/trivia/trivia-preserver.js.map +1 -0
- package/lib/langium/trivia/trivia-service.d.ts +70 -0
- package/lib/langium/trivia/trivia-service.d.ts.map +1 -0
- package/lib/langium/trivia/trivia-service.js +56 -0
- package/lib/langium/trivia/trivia-service.js.map +1 -0
- package/lib/langium/update-rewrite/update-rewrite.d.ts +1 -1
- package/lib/langium/validation/document-validator.d.ts +294 -10
- package/lib/langium/validation/document-validator.d.ts.map +1 -1
- package/lib/langium/validation/document-validator.js +448 -5
- package/lib/langium/validation/document-validator.js.map +1 -1
- package/lib/langium/workspace/document-uri-policy.d.ts +3 -4
- package/lib/langium/workspace/document-uri-policy.d.ts.map +1 -1
- package/lib/langium/workspace/document-uri-policy.js +3 -4
- package/lib/langium/workspace/document-uri-policy.js.map +1 -1
- package/lib/langium/workspace/file-system-provider.d.ts +9 -1
- package/lib/langium/workspace/file-system-provider.d.ts.map +1 -1
- package/lib/langium/workspace/file-system-provider.js +40 -7
- package/lib/langium/workspace/file-system-provider.js.map +1 -1
- package/lib/langium/workspace/hydranium-langium-document-factory.d.ts +25 -0
- package/lib/langium/workspace/hydranium-langium-document-factory.d.ts.map +1 -1
- package/lib/langium/workspace/hydranium-langium-document-factory.js +25 -0
- package/lib/langium/workspace/hydranium-langium-document-factory.js.map +1 -1
- package/lib/langium/workspace/hydranium-workspace-lock.d.ts +13 -0
- package/lib/langium/workspace/hydranium-workspace-lock.d.ts.map +1 -1
- package/lib/langium/workspace/hydranium-workspace-lock.js +18 -0
- package/lib/langium/workspace/hydranium-workspace-lock.js.map +1 -1
- package/lib/langium/workspace/hydranium-workspace-manager.d.ts +21 -1
- package/lib/langium/workspace/hydranium-workspace-manager.d.ts.map +1 -1
- package/lib/langium/workspace/hydranium-workspace-manager.js +28 -0
- package/lib/langium/workspace/hydranium-workspace-manager.js.map +1 -1
- package/lib/langium/workspace/in-memory-file-system-provider.d.ts +23 -0
- package/lib/langium/workspace/in-memory-file-system-provider.d.ts.map +1 -1
- package/lib/langium/workspace/in-memory-file-system-provider.js +55 -9
- package/lib/langium/workspace/in-memory-file-system-provider.js.map +1 -1
- package/lib/langium/workspace/initialize-workspace.d.ts +31 -2
- package/lib/langium/workspace/initialize-workspace.d.ts.map +1 -1
- package/lib/langium/workspace/initialize-workspace.js +13 -5
- package/lib/langium/workspace/initialize-workspace.js.map +1 -1
- package/lib/langium/workspace/langium-documents.d.ts +79 -17
- package/lib/langium/workspace/langium-documents.d.ts.map +1 -1
- package/lib/langium/workspace/langium-documents.js +83 -28
- package/lib/langium/workspace/langium-documents.js.map +1 -1
- package/lib/langium/workspace/virtual-document.d.ts +18 -3
- package/lib/langium/workspace/virtual-document.d.ts.map +1 -1
- package/lib/langium/workspace/virtual-document.js +19 -2
- package/lib/langium/workspace/virtual-document.js.map +1 -1
- package/lib/langium/workspace/write-lock-scope.d.ts +4 -3
- package/lib/langium/workspace/write-lock-scope.d.ts.map +1 -1
- package/lib/langium/workspace/write-lock-scope.js +4 -3
- package/lib/langium/workspace/write-lock-scope.js.map +1 -1
- package/lib/locale/index.d.ts +10 -0
- package/lib/locale/index.d.ts.map +1 -0
- package/lib/locale/index.js +10 -0
- package/lib/locale/index.js.map +1 -0
- package/lib/locale/server-locale.d.ts +73 -0
- package/lib/locale/server-locale.d.ts.map +1 -0
- package/lib/locale/server-locale.js +61 -0
- package/lib/locale/server-locale.js.map +1 -0
- package/lib/lsp/completion/hydranium-completion-provider.d.ts +44 -2
- package/lib/lsp/completion/hydranium-completion-provider.d.ts.map +1 -1
- package/lib/lsp/completion/hydranium-completion-provider.js +68 -0
- package/lib/lsp/completion/hydranium-completion-provider.js.map +1 -1
- package/lib/lsp/connection-features.d.ts +23 -0
- package/lib/lsp/connection-features.d.ts.map +1 -0
- package/lib/lsp/connection-features.js +60 -0
- package/lib/lsp/connection-features.js.map +1 -0
- package/lib/lsp/diagnostics-connection.d.ts +27 -0
- package/lib/lsp/diagnostics-connection.d.ts.map +1 -0
- package/lib/lsp/diagnostics-connection.js +53 -0
- package/lib/lsp/diagnostics-connection.js.map +1 -0
- package/lib/lsp/hydranium-document-update-handler.d.ts +90 -79
- package/lib/lsp/hydranium-document-update-handler.d.ts.map +1 -1
- package/lib/lsp/hydranium-document-update-handler.js +152 -99
- package/lib/lsp/hydranium-document-update-handler.js.map +1 -1
- package/lib/lsp/index.d.ts +3 -1
- package/lib/lsp/index.d.ts.map +1 -1
- package/lib/lsp/index.js +3 -1
- package/lib/lsp/index.js.map +1 -1
- package/lib/lsp/lsp-latency.d.ts +39 -0
- package/lib/lsp/lsp-latency.d.ts.map +1 -0
- package/lib/lsp/lsp-latency.js +58 -0
- package/lib/lsp/lsp-latency.js.map +1 -0
- package/lib/lsp/semantic-token-provider.d.ts +34 -1
- package/lib/lsp/semantic-token-provider.d.ts.map +1 -1
- package/lib/lsp/semantic-token-provider.js +55 -8
- package/lib/lsp/semantic-token-provider.js.map +1 -1
- package/lib/lsp/shared-module.d.ts +4 -8
- package/lib/lsp/shared-module.d.ts.map +1 -1
- package/lib/lsp/shared-module.js.map +1 -1
- package/lib/lsp/start-language-server.d.ts +8 -7
- package/lib/lsp/start-language-server.d.ts.map +1 -1
- package/lib/lsp/start-language-server.js +13 -7
- package/lib/lsp/start-language-server.js.map +1 -1
- package/lib/messages/carriers.d.ts +54 -0
- package/lib/messages/carriers.d.ts.map +1 -0
- package/lib/messages/carriers.js +62 -0
- package/lib/messages/carriers.js.map +1 -0
- package/lib/messages/index.d.ts +25 -0
- package/lib/messages/index.d.ts.map +1 -0
- package/lib/messages/index.js +25 -0
- package/lib/messages/index.js.map +1 -0
- package/lib/messages/renderer.d.ts +142 -0
- package/lib/messages/renderer.d.ts.map +1 -0
- package/lib/messages/renderer.js +165 -0
- package/lib/messages/renderer.js.map +1 -0
- package/lib/node/heap-ceiling.d.ts +61 -0
- package/lib/node/heap-ceiling.d.ts.map +1 -0
- package/lib/node/heap-ceiling.js +72 -0
- package/lib/node/heap-ceiling.js.map +1 -0
- package/lib/node/index.d.ts +1 -0
- package/lib/node/index.d.ts.map +1 -1
- package/lib/node/index.js +1 -0
- package/lib/node/index.js.map +1 -1
- package/lib/node/latency-from-env.d.ts +1 -1
- package/lib/node/latency-from-env.js +1 -1
- package/lib/node/measure-memory.d.ts.map +1 -1
- package/lib/node/measure-memory.js +1 -0
- package/lib/node/measure-memory.js.map +1 -1
- package/lib/node/node-file-system-provider.d.ts +35 -1
- package/lib/node/node-file-system-provider.d.ts.map +1 -1
- package/lib/node/node-file-system-provider.js +140 -45
- package/lib/node/node-file-system-provider.js.map +1 -1
- package/lib/node/profile-capture.d.ts +8 -2
- package/lib/node/profile-capture.d.ts.map +1 -1
- package/lib/node/profile-capture.js.map +1 -1
- package/lib/node/profiling-run.d.ts +2 -2
- package/lib/node/profiling-run.js +1 -1
- package/lib/node/profiling-run.js.map +1 -1
- package/lib/node/rename-over-open-readers.d.ts +52 -0
- package/lib/node/rename-over-open-readers.d.ts.map +1 -0
- package/lib/node/rename-over-open-readers.js +66 -0
- package/lib/node/rename-over-open-readers.js.map +1 -0
- package/lib/node/socket-launcher.d.ts +16 -1
- package/lib/node/socket-launcher.d.ts.map +1 -1
- package/lib/node/socket-launcher.js +4 -3
- package/lib/node/socket-launcher.js.map +1 -1
- package/lib/node/stdio-launcher.d.ts +1 -1
- package/lib/node/stdio-launcher.d.ts.map +1 -1
- package/lib/node/stdio-launcher.js +1 -1
- package/lib/node/stdio-launcher.js.map +1 -1
- package/lib/testing/fake-document.d.ts +16 -4
- package/lib/testing/fake-document.d.ts.map +1 -1
- package/lib/testing/fake-document.js +18 -3
- package/lib/testing/fake-document.js.map +1 -1
- package/lib/testing/make-noop-shared-services.d.ts +14 -0
- package/lib/testing/make-noop-shared-services.d.ts.map +1 -1
- package/lib/testing/make-noop-shared-services.js +28 -2
- package/lib/testing/make-noop-shared-services.js.map +1 -1
- package/lib/testing/make-test-services.d.ts +62 -14
- package/lib/testing/make-test-services.d.ts.map +1 -1
- package/lib/testing/make-test-services.js +27 -6
- package/lib/testing/make-test-services.js.map +1 -1
- package/lib/testing/node/index.d.ts +1 -0
- package/lib/testing/node/index.d.ts.map +1 -1
- package/lib/testing/node/index.js +1 -0
- package/lib/testing/node/index.js.map +1 -1
- package/lib/testing/node/lsp-harness.d.ts.map +1 -1
- package/lib/testing/node/lsp-harness.js +2 -0
- package/lib/testing/node/lsp-harness.js.map +1 -1
- package/lib/testing/node/lsp-server-connection.d.ts +11 -3
- package/lib/testing/node/lsp-server-connection.d.ts.map +1 -1
- package/lib/testing/node/lsp-server-connection.js +42 -9
- package/lib/testing/node/lsp-server-connection.js.map +1 -1
- package/lib/testing/node/scratch-workspace.d.ts.map +1 -1
- package/lib/testing/node/scratch-workspace.js +10 -5
- package/lib/testing/node/scratch-workspace.js.map +1 -1
- package/lib/testing/node/spawned-server.d.ts +14 -0
- package/lib/testing/node/spawned-server.d.ts.map +1 -1
- package/lib/testing/node/spawned-server.js +33 -1
- package/lib/testing/node/spawned-server.js.map +1 -1
- package/lib/testing/node/unhandled-rejections.d.ts +20 -0
- package/lib/testing/node/unhandled-rejections.d.ts.map +1 -0
- package/lib/testing/node/unhandled-rejections.js +32 -0
- package/lib/testing/node/unhandled-rejections.js.map +1 -0
- package/lib/testing/playwright/flaky-network-proxy.d.ts +76 -0
- package/lib/testing/playwright/flaky-network-proxy.d.ts.map +1 -0
- package/lib/testing/playwright/flaky-network-proxy.js +164 -0
- package/lib/testing/playwright/flaky-network-proxy.js.map +1 -0
- package/lib/testing/playwright/index.d.ts +1 -0
- package/lib/testing/playwright/index.d.ts.map +1 -1
- package/lib/testing/playwright/index.js +1 -0
- package/lib/testing/playwright/index.js.map +1 -1
- package/lib/testing/playwright/server-log-capture.d.ts +14 -4
- package/lib/testing/playwright/server-log-capture.d.ts.map +1 -1
- package/lib/testing/playwright/server-log-capture.js +21 -4
- package/lib/testing/playwright/server-log-capture.js.map +1 -1
- package/lib/testing/playwright/server-log-rename-reporter.d.ts.map +1 -1
- package/lib/testing/playwright/server-log-rename-reporter.js +10 -1
- package/lib/testing/playwright/server-log-rename-reporter.js.map +1 -1
- package/lib/testing/run-update-pipeline.d.ts +4 -4
- package/lib/testing/run-update-pipeline.d.ts.map +1 -1
- package/lib/testing/stub-ast-document-manager.d.ts +10 -9
- package/lib/testing/stub-ast-document-manager.d.ts.map +1 -1
- package/lib/testing/stub-ast-document-manager.js +17 -9
- package/lib/testing/stub-ast-document-manager.js.map +1 -1
- package/lib/testing/stub-document-builder.d.ts +26 -11
- package/lib/testing/stub-document-builder.d.ts.map +1 -1
- package/lib/testing/stub-document-builder.js +57 -4
- package/lib/testing/stub-document-builder.js.map +1 -1
- package/lib/testing/stub-hydranium-text-documents.d.ts +22 -7
- package/lib/testing/stub-hydranium-text-documents.d.ts.map +1 -1
- package/lib/testing/stub-hydranium-text-documents.js +92 -15
- package/lib/testing/stub-hydranium-text-documents.js.map +1 -1
- package/lib/testing/stub-langium-documents.d.ts +3 -2
- package/lib/testing/stub-langium-documents.d.ts.map +1 -1
- package/lib/testing/stub-langium-documents.js.map +1 -1
- package/lib/testing/stub-model-service.d.ts +7 -6
- package/lib/testing/stub-model-service.d.ts.map +1 -1
- package/lib/testing/stub-model-service.js +4 -4
- package/lib/testing/stub-model-service.js.map +1 -1
- package/lib/util/connection-liveness.d.ts +7 -6
- package/lib/util/connection-liveness.d.ts.map +1 -1
- package/lib/util/connection-liveness.js +35 -14
- package/lib/util/connection-liveness.js.map +1 -1
- package/package.json +17 -8
- package/src/documents/ast-document-manager.ts +345 -62
- package/src/documents/client-ids.ts +5 -22
- package/src/documents/client-session-errors.ts +24 -0
- package/src/documents/client-session-registry.ts +240 -0
- package/src/documents/file-system-task-queue.ts +68 -0
- package/src/documents/hydranium-text-documents.ts +856 -154
- package/src/documents/index.ts +3 -0
- package/src/documents/language-client-text-shadow.ts +59 -11
- package/src/documents/self-save-registry.ts +52 -13
- package/src/index.ts +6 -0
- package/src/langium/ast-extension/ast-node-builder.ts +66 -22
- package/src/langium/bootstrap.ts +16 -9
- package/src/langium/config/configuration-provider.ts +119 -0
- package/src/langium/config/index.ts +1 -0
- package/src/langium/diagnostics/lsp-logger.ts +41 -6
- package/src/langium/document-builder/build-pipeline-integration.ts +50 -5
- package/src/langium/document-builder/build-session.ts +87 -0
- package/src/langium/document-builder/document-builder.ts +698 -39
- package/src/langium/document-builder/index.ts +1 -0
- package/src/langium/integration-services.ts +67 -6
- package/src/langium/integrity/integrity-rule.ts +13 -5
- package/src/langium/integrity/integrity-service.ts +202 -17
- package/src/langium/keys/containment.ts +87 -0
- package/src/langium/keys/index.ts +1 -0
- package/src/langium/keys/name-based-key-provider.ts +4 -0
- package/src/langium/language-module.ts +42 -4
- package/src/langium/model-service/client-session.ts +606 -0
- package/src/langium/model-service/index.ts +1 -0
- package/src/langium/model-service/model-service.ts +393 -349
- package/src/langium/module.ts +137 -30
- package/src/langium/naming/name-provider.ts +27 -5
- package/src/langium/naming/name-separator-validation.ts +34 -5
- package/src/langium/residency/cst-residency-service.ts +36 -14
- package/src/langium/scope/hydranium-scope-provider.ts +60 -22
- package/src/langium/serialization/abstract-serializer.ts +13 -32
- package/src/langium/service-registry.ts +19 -2
- package/src/langium/shared-services.ts +19 -2
- package/src/langium/transfer/transfer-encoder.ts +85 -24
- package/src/langium/trivia/comment-preserver.ts +1100 -0
- package/src/langium/trivia/document-ending-preserver.ts +55 -0
- package/src/langium/trivia/index.ts +14 -0
- package/src/langium/trivia/trivia-contribution.ts +39 -0
- package/src/langium/trivia/trivia-preserver.ts +54 -0
- package/src/langium/trivia/trivia-service.ts +99 -0
- package/src/langium/update-rewrite/update-rewrite.ts +1 -1
- package/src/langium/validation/document-validator.ts +537 -11
- package/src/langium/workspace/document-uri-policy.ts +3 -4
- package/src/langium/workspace/file-system-provider.ts +48 -8
- package/src/langium/workspace/hydranium-langium-document-factory.ts +34 -0
- package/src/langium/workspace/hydranium-workspace-lock.ts +21 -0
- package/src/langium/workspace/hydranium-workspace-manager.ts +30 -1
- package/src/langium/workspace/in-memory-file-system-provider.ts +62 -10
- package/src/langium/workspace/initialize-workspace.ts +43 -5
- package/src/langium/workspace/langium-documents.ts +106 -33
- package/src/langium/workspace/virtual-document.ts +21 -3
- package/src/langium/workspace/write-lock-scope.ts +4 -3
- package/src/locale/index.ts +10 -0
- package/src/locale/server-locale.ts +86 -0
- package/src/lsp/completion/hydranium-completion-provider.ts +82 -2
- package/src/lsp/connection-features.ts +67 -0
- package/src/lsp/diagnostics-connection.ts +56 -0
- package/src/lsp/hydranium-document-update-handler.ts +182 -106
- package/src/lsp/index.ts +3 -1
- package/src/lsp/lsp-latency.ts +62 -0
- package/src/lsp/semantic-token-provider.ts +74 -7
- package/src/lsp/shared-module.ts +4 -8
- package/src/lsp/start-language-server.ts +13 -7
- package/src/messages/carriers.ts +78 -0
- package/src/messages/index.ts +36 -0
- package/src/messages/renderer.ts +212 -0
- package/src/node/heap-ceiling.ts +108 -0
- package/src/node/index.ts +1 -0
- package/src/node/latency-from-env.ts +1 -1
- package/src/node/measure-memory.ts +1 -0
- package/src/node/node-file-system-provider.ts +154 -47
- package/src/node/profile-capture.ts +8 -2
- package/src/node/profiling-run.ts +3 -3
- package/src/node/rename-over-open-readers.ts +78 -0
- package/src/node/socket-launcher.ts +19 -4
- package/src/node/stdio-launcher.ts +1 -2
- package/src/testing/fake-document.ts +24 -5
- package/src/testing/make-noop-shared-services.ts +50 -2
- package/src/testing/make-test-services.ts +103 -27
- package/src/testing/node/index.ts +1 -0
- package/src/testing/node/lsp-harness.ts +2 -0
- package/src/testing/node/lsp-server-connection.ts +61 -11
- package/src/testing/node/scratch-workspace.ts +10 -5
- package/src/testing/node/spawned-server.ts +35 -1
- package/src/testing/node/unhandled-rejections.ts +31 -0
- package/src/testing/playwright/flaky-network-proxy.ts +240 -0
- package/src/testing/playwright/index.ts +1 -0
- package/src/testing/playwright/server-log-capture.ts +24 -5
- package/src/testing/playwright/server-log-rename-reporter.ts +12 -1
- package/src/testing/run-update-pipeline.ts +4 -4
- package/src/testing/stub-ast-document-manager.ts +28 -21
- package/src/testing/stub-document-builder.ts +83 -17
- package/src/testing/stub-hydranium-text-documents.ts +127 -22
- package/src/testing/stub-langium-documents.ts +3 -2
- package/src/testing/stub-model-service.ts +9 -8
- package/src/util/connection-liveness.ts +37 -14
- package/lib/lsp/instrument-connection.d.ts +0 -36
- package/lib/lsp/instrument-connection.d.ts.map +0 -1
- package/lib/lsp/instrument-connection.js +0 -62
- package/lib/lsp/instrument-connection.js.map +0 -1
- package/src/lsp/instrument-connection.ts +0 -66
|
@@ -7,14 +7,29 @@
|
|
|
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';
|
|
11
|
-
import { CancellationToken } from 'vscode-languageserver-protocol';
|
|
10
|
+
import { type AstNode, type BuildOptions, DefaultDocumentBuilder, type DocumentPhaseListener, DocumentState, type LangiumDocument, MultiMap, type URI, type WorkspaceLock } from '@hydranium/langium';
|
|
11
|
+
import { CancellationToken, Disposable } from 'vscode-languageserver-protocol';
|
|
12
12
|
import { type LogNameOptions } from '../diagnostics/logger.js';
|
|
13
|
+
import type { MessageRenderer } from '../../messages/renderer.js';
|
|
13
14
|
import { type ExtendedServiceRegistry } from '../service-registry.js';
|
|
14
15
|
import { type ServerSharedServicesMinimal } from '../shared-services.js';
|
|
15
16
|
import { type DocumentUriPolicy } from '../workspace/document-uri-policy.js';
|
|
17
|
+
import { BuildSession, type BuildSessionContext } from './build-session.js';
|
|
16
18
|
/** Document states a phase-reached line is emitted for by default — every built phase. */
|
|
17
19
|
export declare const DEFAULT_LOGGED_PHASES: DocumentState[];
|
|
20
|
+
/**
|
|
21
|
+
* The build reasons the framework stages through
|
|
22
|
+
* {@link HydraniumDocumentBuilder.markNextReason}: the LSP events the update
|
|
23
|
+
* handler dispatches on, and `didClose` for the revert the text store runs
|
|
24
|
+
* after a last close. Exposed so a subclass layering reasons of its own keeps
|
|
25
|
+
* the names the framework emits.
|
|
26
|
+
*/
|
|
27
|
+
export declare const HYDRANIUM_BUILD_REASONS: Readonly<{
|
|
28
|
+
readonly didOpen: "didOpen";
|
|
29
|
+
readonly didChangeContent: "didChangeContent";
|
|
30
|
+
readonly didChangeWatchedFiles: "didChangeWatchedFiles";
|
|
31
|
+
readonly didClose: "didClose";
|
|
32
|
+
}>;
|
|
18
33
|
/** Constructor options for {@link HydraniumDocumentBuilder}. */
|
|
19
34
|
export interface DocumentBuilderOptions extends LogNameOptions {
|
|
20
35
|
/**
|
|
@@ -46,6 +61,18 @@ export interface DocumentBuilderOptions extends LogNameOptions {
|
|
|
46
61
|
* logged. Default: `25`. Read per phase; accepts a {@link MaybeObservableValue}.
|
|
47
62
|
*/
|
|
48
63
|
readonly slowBuildMs?: MaybeObservableValue<number>;
|
|
64
|
+
/**
|
|
65
|
+
* Build duration at or above which a build's phase-reached and slow-listener
|
|
66
|
+
* lines are emitted; they are held for the duration of the build and dropped
|
|
67
|
+
* when it finishes faster. Default `0` — no buffering, every line emitted as
|
|
68
|
+
* it is produced, which is the only setting that keeps lines interleaved with
|
|
69
|
+
* the rest of the log in real time.
|
|
70
|
+
*
|
|
71
|
+
* Set it to make a fast rebuild log nothing but its one build line. The
|
|
72
|
+
* decision needs the build's TOTAL duration, so it cannot be made by any
|
|
73
|
+
* per-line hook. Read once per build; accepts a {@link MaybeObservableValue}.
|
|
74
|
+
*/
|
|
75
|
+
readonly phaseDetailMs?: MaybeObservableValue<number>;
|
|
49
76
|
/**
|
|
50
77
|
* Refresh cross-document `ComputedScopes` derivations when a referencing
|
|
51
78
|
* document is cascade-rebuilt (see
|
|
@@ -58,29 +85,62 @@ export interface DocumentBuilderOptions extends LogNameOptions {
|
|
|
58
85
|
*/
|
|
59
86
|
readonly refreshCrossDocumentComputedScopes?: boolean;
|
|
60
87
|
}
|
|
88
|
+
/**
|
|
89
|
+
* One locked build {@link HydraniumDocumentBuilder.scheduleUpdate} queued,
|
|
90
|
+
* which later requests merge into while it waits and join while it runs.
|
|
91
|
+
*/
|
|
92
|
+
export interface ScheduledUpdate {
|
|
93
|
+
/** URIs to build, by URI string. Merged requests change it while the write is queued; fixed once it runs. */
|
|
94
|
+
readonly changed: Map<string, URI>;
|
|
95
|
+
/** URIs to delete, by URI string, under the same rule as {@link changed}. */
|
|
96
|
+
readonly deleted: Map<string, URI>;
|
|
97
|
+
/** The latest build reason any merged request gave; staged through {@link HydraniumDocumentBuilder.markNextReason} when the write runs. */
|
|
98
|
+
reason?: string;
|
|
99
|
+
/** The lock's {@link HydraniumWorkspaceLock.writeCancellations} right after this write was queued. */
|
|
100
|
+
readonly cancellations: number;
|
|
101
|
+
/**
|
|
102
|
+
* Set when the write starts to run, so its presence marks a running build:
|
|
103
|
+
* the text version of each changed URI the text store holds at that point.
|
|
104
|
+
*/
|
|
105
|
+
takenVersions?: Map<string, number>;
|
|
106
|
+
/** The lock's promise for this write: settles when the build completes or is cancelled. */
|
|
107
|
+
readonly promise: Promise<void>;
|
|
108
|
+
}
|
|
61
109
|
/**
|
|
62
110
|
* Extends Langium's {@link DefaultDocumentBuilder} with:
|
|
63
111
|
*
|
|
64
112
|
* - **Bug-fixes** (always on): an {@link awaitDocumentState} that waits where
|
|
65
|
-
* the default rejects,
|
|
113
|
+
* the default rejects (re-queuing, under the workspace lock, a document no
|
|
114
|
+
* build will carry), a {@link prepareBuild} that keeps a cancelled
|
|
66
115
|
* non-validating build from suppressing validation, and a
|
|
67
116
|
* {@link shouldRelink} that never judges a document unaffected on an index
|
|
68
117
|
* that does not describe it.
|
|
118
|
+
* - **Shared locked builds** ({@link scheduleUpdate}): build requests that
|
|
119
|
+
* coincide share one locked build instead of cancelling each other.
|
|
69
120
|
* - **URI handling** (always on): directory-aware flattening and cascade
|
|
70
121
|
* deletes in {@link update}, plus the CST-rehydration and cross-document
|
|
71
122
|
* refresh resets in {@link resetToState}.
|
|
72
123
|
* - **In-place rebuild helpers** — {@link reparse} and
|
|
73
124
|
* {@link reparseAndRelink} — for a build-phase listener that mutated a
|
|
74
125
|
* document's AST and must reconcile it within the same build.
|
|
75
|
-
* - **Diagnostic dedupe** at `Validated` ({@link dedupeDiagnostics})
|
|
126
|
+
* - **Diagnostic dedupe** at `Validated` ({@link dedupeDiagnostics}), followed
|
|
127
|
+
* by the **one server-side message render** every head inherits
|
|
128
|
+
* ({@link renderDiagnostics}).
|
|
129
|
+
* - **Build sessions** ({@link BuildSession}): each `update` / `build` call is
|
|
130
|
+
* one correlated unit carrying an id, a trigger label, a start time and
|
|
131
|
+
* cancellation lineage, so every line of a rebuild reads as belonging to it
|
|
132
|
+
* and a preempted build is distinguishable from the winner.
|
|
76
133
|
* - **Logging instrumentation** (default on, opt-out via `logLevel: 'off'`):
|
|
77
|
-
* phase-reached lines, slow-listener breakdowns on
|
|
78
|
-
* and slow-build-phase totals on `notifyBuildPhase`.
|
|
134
|
+
* a per-build line, phase-reached lines, slow-listener breakdowns on
|
|
135
|
+
* `notifyDocumentPhase`, and slow-build-phase totals on `notifyBuildPhase`.
|
|
79
136
|
*
|
|
80
137
|
* Adopters extend this class — the configuration knobs cover what most
|
|
81
138
|
* adopters need; the `format*Line` methods, `formatUri`, and
|
|
82
139
|
* `collectDeletedURIs` are protected so subclasses can customise wording or
|
|
83
|
-
* domain-aware cascades without re-implementing surrounding logic.
|
|
140
|
+
* domain-aware cascades without re-implementing surrounding logic. An adopter
|
|
141
|
+
* with build-scoped state of its own subclasses {@link BuildSession} and
|
|
142
|
+
* overrides {@link createBuildSession}, which puts that state under the same
|
|
143
|
+
* preemption-correct teardown rather than a reimplementation of it.
|
|
84
144
|
*/
|
|
85
145
|
export declare class HydraniumDocumentBuilder extends DefaultDocumentBuilder {
|
|
86
146
|
protected readonly tracer: Tracer;
|
|
@@ -94,8 +154,15 @@ export declare class HydraniumDocumentBuilder extends DefaultDocumentBuilder {
|
|
|
94
154
|
protected readonly slowListenerMs: ObservableValue<number>;
|
|
95
155
|
/** Live slow-build-phase-total threshold; read `.value` per phase. */
|
|
96
156
|
protected readonly slowBuildMs: ObservableValue<number>;
|
|
157
|
+
/** Live phase-detail buffering threshold; read `.value` once per build, onto the session. */
|
|
158
|
+
protected readonly phaseDetailMs: ObservableValue<number>;
|
|
97
159
|
protected readonly uriPolicy: DocumentUriPolicy;
|
|
98
160
|
protected readonly clock: Clock;
|
|
161
|
+
protected readonly messageRenderer: MessageRenderer;
|
|
162
|
+
/** The lock {@link scheduleUpdate} builds under. */
|
|
163
|
+
protected readonly workspaceLock: WorkspaceLock;
|
|
164
|
+
/** The latest write {@link scheduleUpdate} queued, until it ends; see {@link ScheduledUpdate}. */
|
|
165
|
+
protected scheduledUpdate?: ScheduledUpdate;
|
|
99
166
|
/** Narrower handle on the same registry as the inherited `serviceRegistry`, for {@link ExtendedServiceRegistry.registrations}. */
|
|
100
167
|
protected readonly languageRegistry: ExtendedServiceRegistry;
|
|
101
168
|
protected languageFileExtensions: string[];
|
|
@@ -106,11 +173,40 @@ export declare class HydraniumDocumentBuilder extends DefaultDocumentBuilder {
|
|
|
106
173
|
protected readonly refreshCrossDocumentComputedScopes: boolean;
|
|
107
174
|
/** LSP event name (e.g. `'didChangeWatchedFiles'`) staged for the next `update()` call. */
|
|
108
175
|
protected pendingUpdateReason?: string;
|
|
176
|
+
/**
|
|
177
|
+
* The build currently in progress, or `undefined` between builds.
|
|
178
|
+
*
|
|
179
|
+
* A subclass carrying its own build-scoped state returns a {@link BuildSession}
|
|
180
|
+
* subclass from {@link createBuildSession} and narrows this with a typeguard
|
|
181
|
+
* where it reads that state — rather than redeclaring the field, whose
|
|
182
|
+
* initialiser would run after `super()` and clear a session opened during
|
|
183
|
+
* construction.
|
|
184
|
+
*/
|
|
185
|
+
protected activeSession?: BuildSession;
|
|
186
|
+
/**
|
|
187
|
+
* `traceId` of the last build that ended in cancellation, for the successor's
|
|
188
|
+
* "cancels #N" tag. Held here rather than on a session because the session
|
|
189
|
+
* that carries it is already gone by the time its successor is opened.
|
|
190
|
+
*/
|
|
191
|
+
protected lastCancelledTraceId?: number;
|
|
192
|
+
/** Registered through {@link onDocumentPhaseDelivered}, by phase. */
|
|
193
|
+
protected readonly documentPhaseDeliveredListeners: MultiMap<DocumentState, (document: LangiumDocument, version: number) => void>;
|
|
194
|
+
/**
|
|
195
|
+
* Called with `false` by {@link buildDocuments} once a build has run every
|
|
196
|
+
* phase, and with `true` by {@link checkWaitsOnceDrained} after a build that
|
|
197
|
+
* threw; see {@link awaitDocumentState}. A listener runs synchronously,
|
|
198
|
+
* inside the build or inside that check's lock read. A throw fails the
|
|
199
|
+
* finished build; in the read it skips the listeners after it and surfaces
|
|
200
|
+
* only as an unhandled rejection.
|
|
201
|
+
*/
|
|
202
|
+
protected readonly buildEndedListeners: Set<(drained: boolean) => void>;
|
|
203
|
+
/** Set while the lock read {@link checkWaitsOnceDrained} queued has not run. */
|
|
204
|
+
protected drainCheckQueued: boolean;
|
|
109
205
|
constructor(services: ServerSharedServicesMinimal, options?: DocumentBuilderOptions);
|
|
110
206
|
/**
|
|
111
207
|
* Stage an LSP event name for the next `update()` call. Adopters call before
|
|
112
|
-
* the update fires; `HydraniumDocumentUpdateHandler` does it for the
|
|
113
|
-
*
|
|
208
|
+
* the update fires; `HydraniumDocumentUpdateHandler` does it for the LSP
|
|
209
|
+
* events, and the text store for the revert that follows a last close.
|
|
114
210
|
*
|
|
115
211
|
* The framework stages the value and never reads it back. The consumer is a
|
|
116
212
|
* subclass overriding the build logging, which takes
|
|
@@ -119,6 +215,20 @@ export declare class HydraniumDocumentBuilder extends DefaultDocumentBuilder {
|
|
|
119
215
|
* with no read — that is the seam working, not a dead field.
|
|
120
216
|
*/
|
|
121
217
|
markNextReason(reason: string | undefined): void;
|
|
218
|
+
/**
|
|
219
|
+
* Call `listener` with a document once every {@link onDocumentPhase}
|
|
220
|
+
* listener of `state` ran for it and none was skipped by cancellation, and
|
|
221
|
+
* with the text version the phase listeners were called at. A write during
|
|
222
|
+
* them moves the document's own version on, past what they saw.
|
|
223
|
+
*
|
|
224
|
+
* Only here is it known what the phase listeners delivered. Langium sets the
|
|
225
|
+
* document's state before it notifies, and a cancel between two listeners
|
|
226
|
+
* skips the rest, leaving the document at the phase with those listeners
|
|
227
|
+
* never run and nothing to run them later. A build-phase listener comes too
|
|
228
|
+
* late: a cancel after this document but before the batch ends skips it,
|
|
229
|
+
* although every listener of this document ran.
|
|
230
|
+
*/
|
|
231
|
+
onDocumentPhaseDelivered(state: DocumentState, listener: (document: LangiumDocument, version: number) => void): Disposable;
|
|
122
232
|
/**
|
|
123
233
|
* Diagnostic snapshot for use in timeout/error messages around document
|
|
124
234
|
* state.
|
|
@@ -130,6 +240,8 @@ export declare class HydraniumDocumentBuilder extends DefaultDocumentBuilder {
|
|
|
130
240
|
* duplicate what this already knows.
|
|
131
241
|
*/
|
|
132
242
|
formatBuildStatus(uri: URI): string;
|
|
243
|
+
/** Render a session for a status line. `undefined` — no build in progress — reads as `none`. */
|
|
244
|
+
protected formatSession(session: BuildSession | undefined): string;
|
|
133
245
|
/**
|
|
134
246
|
* Two edge cases the default Langium implementation rejects on:
|
|
135
247
|
* - Document below target state with no build active (newly-created file):
|
|
@@ -144,15 +256,41 @@ export declare class HydraniumDocumentBuilder extends DefaultDocumentBuilder {
|
|
|
144
256
|
*
|
|
145
257
|
* Replacing Langium's rejection with a wait makes the wait's liveness this
|
|
146
258
|
* class's responsibility: a listener can only fire if some build is still
|
|
147
|
-
* going to reach `state`.
|
|
148
|
-
*
|
|
149
|
-
*
|
|
150
|
-
* the
|
|
259
|
+
* going to reach `state`. So the wait re-queues the document whenever
|
|
260
|
+
* {@link isOrphaned} holds: once when it is armed, and again after every
|
|
261
|
+
* build that completes (see {@link buildDocuments}). The second check is
|
|
262
|
+
* the one a wait armed during a build needs, since only the build's end
|
|
263
|
+
* shows whether it left the document behind; Langium's `onBuildPhase` for
|
|
264
|
+
* `Validated` cannot serve, as it stays silent for a build that validates
|
|
265
|
+
* nothing, such as the workspace's initial one. A build that throws is
|
|
266
|
+
* checked once the lock drains instead (see {@link checkWaitsOnceDrained}):
|
|
267
|
+
* whatever cancelled it may build nothing. Re-queuing stops after
|
|
151
268
|
* {@link MAX_STALLED_REQUEUES} builds that fail to advance the document, so a
|
|
152
269
|
* document the builder will never carry to `state` degrades to a pending wait
|
|
153
270
|
* plus a warning rather than an endless build loop.
|
|
271
|
+
*
|
|
272
|
+
* A wait for `Validated` on a document that a validating build skips
|
|
273
|
+
* resolves once that build has indexed its references, without diagnostics:
|
|
274
|
+
* see {@link skipsValidation}. Waiting on would never end, and re-queuing
|
|
275
|
+
* would skip it again.
|
|
276
|
+
*
|
|
277
|
+
* A re-queued build takes the {@link WorkspaceLock} (see
|
|
278
|
+
* {@link requeueOrphaned}), so a caller that awaits this wait while it holds
|
|
279
|
+
* the lock, inside a read or write action, deadlocks on a document that needs
|
|
280
|
+
* a re-queue: the build waits for that action to end. Await it outside the
|
|
281
|
+
* lock.
|
|
154
282
|
*/
|
|
155
283
|
protected awaitDocumentState(state: DocumentState, uri: URI, cancelToken: CancellationToken): Promise<URI>;
|
|
284
|
+
/**
|
|
285
|
+
* Whether the build that carries or last carried `document` has indexed its
|
|
286
|
+
* references, asks for validation, and still skips it, which is an override
|
|
287
|
+
* of `shouldValidate` excluding it. A build that does not ask for
|
|
288
|
+
* validation, such as the workspace's initial one, is not a skip: the next
|
|
289
|
+
* validating build validates the document. Nor is a document below
|
|
290
|
+
* `IndexedReferences`: the build writes its options before the first phase,
|
|
291
|
+
* so the document would pass for skipped before it is even parsed.
|
|
292
|
+
*/
|
|
293
|
+
protected skipsValidation(document: LangiumDocument): boolean;
|
|
156
294
|
/**
|
|
157
295
|
* Whether no build will advance `document` to `state`, so a wait on it can
|
|
158
296
|
* only be resolved by starting one.
|
|
@@ -170,7 +308,9 @@ export declare class HydraniumDocumentBuilder extends DefaultDocumentBuilder {
|
|
|
170
308
|
* `currentState` still advances to `Validated` (the validation phase runs
|
|
171
309
|
* over an empty document list). Any first read that wants diagnostics — a
|
|
172
310
|
* one-shot data-head read, a CLI query, `ModelService.validated` — lands
|
|
173
|
-
* here.
|
|
311
|
+
* here. A read that arrives while that build still runs finds `currentState`
|
|
312
|
+
* below `state`, so this holds for it only once the build has ended, which
|
|
313
|
+
* is why {@link awaitDocumentState} asks again then.
|
|
174
314
|
*/
|
|
175
315
|
protected isOrphaned(document: LangiumDocument, state: DocumentState): boolean;
|
|
176
316
|
/**
|
|
@@ -179,8 +319,104 @@ export declare class HydraniumDocumentBuilder extends DefaultDocumentBuilder {
|
|
|
179
319
|
* notification, so awaiting here would invert the dependency. A rejection is
|
|
180
320
|
* logged rather than swallowed — it leaves the waiter pending until its own
|
|
181
321
|
* cancellation token fires, which is worth a line in the log.
|
|
322
|
+
*
|
|
323
|
+
* The build is a {@link scheduleUpdate}, entered from a {@link WorkspaceLock}
|
|
324
|
+
* read. The read waits until no write runs or is queued, so the build neither
|
|
325
|
+
* runs beside a locked one nor cancels the build a re-queue is fired from.
|
|
326
|
+
* Unlocked, it runs beside a locked build that cannot cancel it: both
|
|
327
|
+
* validate the same version and deliver it twice. Taking the write directly,
|
|
328
|
+
* without the read, cancels the running build and skips the rest of its
|
|
329
|
+
* build-phase listeners. The read must not await the write, which queues
|
|
330
|
+
* behind that read. A build scheduled in the gap between the read batch
|
|
331
|
+
* starting and this action running is still queued, so the re-queue merges
|
|
332
|
+
* into it rather than cancelling it.
|
|
333
|
+
*
|
|
334
|
+
* A write that ran while the read waited may have carried the document to
|
|
335
|
+
* `state` already, and a second build would deliver that version again; the
|
|
336
|
+
* read skips the write then.
|
|
182
337
|
*/
|
|
183
338
|
protected requeueOrphaned(document: LangiumDocument, state: DocumentState, reason: string): void;
|
|
339
|
+
/**
|
|
340
|
+
* Build `changed` and `deleted` under the {@link WorkspaceLock}, as
|
|
341
|
+
* `workspaceLock.write(token => update(changed, deleted, token))` would,
|
|
342
|
+
* except where the build this method queued last already carries the
|
|
343
|
+
* request. The promise settles when the build that carries the request
|
|
344
|
+
* ends, completed or cancelled, as the lock's own promise does.
|
|
345
|
+
*
|
|
346
|
+
* Without it, requests that coincide cancel each other: each lock write
|
|
347
|
+
* cancels the one before it, after Langium's `update` has already reset the
|
|
348
|
+
* documents, scanned the workspace for relinking and called every
|
|
349
|
+
* `onUpdate` listener.
|
|
350
|
+
*
|
|
351
|
+
* - **Queued, not yet running:** the request merges into it, so nothing is
|
|
352
|
+
* cancelled. The later of a change and a deletion of one URI wins, so
|
|
353
|
+
* each URI reaches `update` in one list only: a file deleted and written
|
|
354
|
+
* again before the build starts is a change.
|
|
355
|
+
* - **Running:** the request joins it only when {@link canJoinRunningUpdate}
|
|
356
|
+
* holds, which keeps an edit made while it runs cancelling it.
|
|
357
|
+
* - **Otherwise,** or when anything else has cancelled that write since it
|
|
358
|
+
* was queued, a new write, which cancels the running build as any lock
|
|
359
|
+
* write does.
|
|
360
|
+
*
|
|
361
|
+
* `reason` is staged through {@link markNextReason} when the write runs. The
|
|
362
|
+
* latest reason of a merged request wins, as it does in the update
|
|
363
|
+
* handler's own debounced burst; a joining request's reason is dropped, since
|
|
364
|
+
* the build it joins has already started. A request without one leaves a
|
|
365
|
+
* reason staged by the caller in place.
|
|
366
|
+
*
|
|
367
|
+
* A caller that must run code of its own inside the write action takes the
|
|
368
|
+
* lock itself, and forgoes the sharing. A lock that is not a
|
|
369
|
+
* {@link HydraniumWorkspaceLock} cannot report a cancelled queued write, so
|
|
370
|
+
* every request then takes its own write.
|
|
371
|
+
*/
|
|
372
|
+
scheduleUpdate(changed: URI[], deleted: URI[], reason?: string): Promise<void>;
|
|
373
|
+
/**
|
|
374
|
+
* Whether a request for `changed` and `deleted` is carried by the running
|
|
375
|
+
* `scheduled` build, whose write nothing has cancelled: the request deletes
|
|
376
|
+
* nothing, and each changed URI is one the build took, held by the text
|
|
377
|
+
* store at the version it had when the build started.
|
|
378
|
+
*
|
|
379
|
+
* Each condition keeps a request from joining a build that would miss its
|
|
380
|
+
* change. Text that moved since the start may be newer than what the build
|
|
381
|
+
* parsed; a URI the text store does not hold is read from its file, which
|
|
382
|
+
* may have changed after the build read it; and a deletion may concern a
|
|
383
|
+
* document the build has already built. A joined request is also absent
|
|
384
|
+
* from the running `update`'s `onUpdate` call, which reported the store as
|
|
385
|
+
* it was when the build started; at an unchanged version that is the store
|
|
386
|
+
* the request sees.
|
|
387
|
+
*/
|
|
388
|
+
protected canJoinRunningUpdate(scheduled: ScheduledUpdate, changed: URI[], deleted: URI[]): boolean;
|
|
389
|
+
/**
|
|
390
|
+
* The write action of a {@link scheduleUpdate}: freeze the request, record
|
|
391
|
+
* what it takes, stage its reason and run `update`. Releases
|
|
392
|
+
* {@link scheduledUpdate} inside the lock, whatever throws, so a request
|
|
393
|
+
* arriving after the build ends starts a write of its own rather than
|
|
394
|
+
* joining a build that is over.
|
|
395
|
+
*/
|
|
396
|
+
protected runScheduledUpdate(request: ScheduledUpdate, token: CancellationToken): Promise<void>;
|
|
397
|
+
/**
|
|
398
|
+
* Tell the {@link buildEndedListeners} once every phase has run, which is
|
|
399
|
+
* the one point where a build that skipped a waited-on document can be seen
|
|
400
|
+
* to have ended. Langium's `onBuildPhase` for `Validated` is not: it stays
|
|
401
|
+
* silent when no document reached that phase, which is every build that
|
|
402
|
+
* validates nothing, the workspace's initial one among them.
|
|
403
|
+
*
|
|
404
|
+
* A build that throws, whether cancelled or failed, tells none of them
|
|
405
|
+
* here: `currentState` is then below `Validated`, so {@link isOrphaned}
|
|
406
|
+
* could hold for no wait. {@link checkWaitsOnceDrained} tells them instead.
|
|
407
|
+
*/
|
|
408
|
+
protected buildDocuments(documents: LangiumDocument[], options: BuildOptions, cancelToken: CancellationToken): Promise<void>;
|
|
409
|
+
/**
|
|
410
|
+
* After a build that threw, tell the {@link buildEndedListeners}, with
|
|
411
|
+
* `drained` set, from a {@link WorkspaceLock} read: it runs once no write
|
|
412
|
+
* runs or is queued, so no locked build is left that could still carry a
|
|
413
|
+
* waited-on document. A cancelled build is usually followed by its
|
|
414
|
+
* canceller's, but a write that builds nothing, such as a last-close revert
|
|
415
|
+
* that finds its document reopened, leaves a wait armed during the build
|
|
416
|
+
* with nothing to resolve it, and so does a build that fails. One read
|
|
417
|
+
* serves every build that throws before it runs.
|
|
418
|
+
*/
|
|
419
|
+
protected checkWaitsOnceDrained(): void;
|
|
184
420
|
/**
|
|
185
421
|
* Don't let a cancelled non-validating build suppress validation forever.
|
|
186
422
|
*
|
|
@@ -228,6 +464,12 @@ export declare class HydraniumDocumentBuilder extends DefaultDocumentBuilder {
|
|
|
228
464
|
*/
|
|
229
465
|
protected shouldRelink(document: LangiumDocument, changedUris: Set<string>): boolean;
|
|
230
466
|
update(changed: URI[], deleted: URI[], cancelToken?: CancellationToken): Promise<void>;
|
|
467
|
+
/**
|
|
468
|
+
* The workspace-initialization entry point, bracketed by a session like
|
|
469
|
+
* {@link update}. Langium's `update` reaches `buildDocuments` directly rather
|
|
470
|
+
* than through here, so the two never nest.
|
|
471
|
+
*/
|
|
472
|
+
build<T extends AstNode>(documents: Array<LangiumDocument<T>>, options?: BuildOptions, cancelToken?: CancellationToken): Promise<void>;
|
|
231
473
|
/**
|
|
232
474
|
* Refresh cross-document `ComputedScopes` derivations on cascade, when
|
|
233
475
|
* {@link refreshCrossDocumentComputedScopes} is set (default off).
|
|
@@ -340,10 +582,66 @@ export declare class HydraniumDocumentBuilder extends DefaultDocumentBuilder {
|
|
|
340
582
|
* project descriptor should cascade to all its members).
|
|
341
583
|
*/
|
|
342
584
|
protected collectDeletedURIs(uri: URI): URI[];
|
|
585
|
+
/**
|
|
586
|
+
* Open a session, run `body` inside it, and close it — the bracket every
|
|
587
|
+
* line of a rebuild is emitted within.
|
|
588
|
+
*
|
|
589
|
+
* The session is installed **synchronously**, before the timed body runs, so
|
|
590
|
+
* that state a subclass computed in {@link createBuildSession} is already
|
|
591
|
+
* readable by the time Langium's `update` consults `shouldRelink`.
|
|
592
|
+
*
|
|
593
|
+
* Teardown is preemption-correct, which is the reason this is framework code
|
|
594
|
+
* rather than a recipe. A build outside the workspace lock overlaps another:
|
|
595
|
+
* the later one installs itself as {@link activeSession} while the earlier
|
|
596
|
+
* one is still running, and the earlier one's `finally` runs LAST. Clearing
|
|
597
|
+
* unconditionally there would discard the later build's state mid-build.
|
|
598
|
+
* Only the session that is still current clears — and the check is
|
|
599
|
+
* reference equality on the session object,
|
|
600
|
+
* not on {@link BuildSession.traceId}, which is `undefined` for every build
|
|
601
|
+
* whenever the timing level is suppressed and would compare equal to itself
|
|
602
|
+
* across two different builds.
|
|
603
|
+
*
|
|
604
|
+
* Builds outside the lock are not hypothetical even without an adopter: the
|
|
605
|
+
* model service with `serializeBuilds` off starts one. Two locked builds
|
|
606
|
+
* never overlap, since the lock starts a write only once the write it
|
|
607
|
+
* cancelled has unwound.
|
|
608
|
+
*/
|
|
609
|
+
protected runInSession(context: BuildSessionContext, label: string, body: () => Promise<void>): Promise<void>;
|
|
610
|
+
/**
|
|
611
|
+
* Construct the session for one build. Override to return a
|
|
612
|
+
* {@link BuildSession} subclass carrying adopter build-scoped state — it is
|
|
613
|
+
* called before the build body, so anything derived here is readable
|
|
614
|
+
* throughout it.
|
|
615
|
+
*/
|
|
616
|
+
protected createBuildSession(context: BuildSessionContext): BuildSession;
|
|
617
|
+
/**
|
|
618
|
+
* Close `session`: flush what it buffered, then release it if it is still the
|
|
619
|
+
* current one (see {@link runInSession} on why that check is conditional).
|
|
620
|
+
* The flush is unconditional — a preempted build's lines still describe work
|
|
621
|
+
* that happened.
|
|
622
|
+
*/
|
|
623
|
+
protected endSession(session: BuildSession): void;
|
|
624
|
+
/**
|
|
625
|
+
* Emit the lines `session` held back, if it ran long enough to be worth the
|
|
626
|
+
* detail; drop them otherwise. Emits through {@link emit} rather than
|
|
627
|
+
* {@link log}, which would route them straight back into the buffer.
|
|
628
|
+
*/
|
|
629
|
+
protected flushSession(session: BuildSession): void;
|
|
630
|
+
/** Label for the build's own log line. Override to customise wording. */
|
|
631
|
+
protected rebuildLabel(changed: URI[], deleted: URI[]): string;
|
|
632
|
+
/** Short description of what triggered the build, repeated on every phase line. Override to customise wording. */
|
|
633
|
+
protected buildTriggerLabel(changed: URI[], deleted: URI[]): string;
|
|
343
634
|
protected registerPhaseListeners(): void;
|
|
344
635
|
/** Called once per phase-reached event. Override to add custom side-effects beyond logging. */
|
|
345
636
|
protected onPhaseReached(state: DocumentState, documents: LangiumDocument[]): void;
|
|
346
|
-
/**
|
|
637
|
+
/**
|
|
638
|
+
* Format the phase-reached log line. Override to customise wording.
|
|
639
|
+
*
|
|
640
|
+
* Within a session the line names what triggered the build, so a phase read
|
|
641
|
+
* in isolation still says which rebuild it belongs to. `elapsedMs` is ignored
|
|
642
|
+
* for the FIRST phase of a session: it measures from the previous build's
|
|
643
|
+
* last phase, an idle gap that says nothing about this build.
|
|
644
|
+
*/
|
|
347
645
|
protected phaseReachedLine(state: DocumentState, documents: LangiumDocument[], elapsedMs: number): string;
|
|
348
646
|
notifyDocumentPhase(document: LangiumDocument, state: DocumentState, cancelToken: CancellationToken): Promise<void>;
|
|
349
647
|
/**
|
|
@@ -399,7 +697,45 @@ export declare class HydraniumDocumentBuilder extends DefaultDocumentBuilder {
|
|
|
399
697
|
* serialising anything.
|
|
400
698
|
*/
|
|
401
699
|
protected dedupeDiagnostics(document: LangiumDocument): void;
|
|
402
|
-
/**
|
|
700
|
+
/**
|
|
701
|
+
* Render every diagnostic on `document` through the bound message renderer,
|
|
702
|
+
* in ONE pass over the finished list.
|
|
703
|
+
*
|
|
704
|
+
* All three heads read `document.diagnostics` — the LSP publish,
|
|
705
|
+
* `TransferEncoder.toTransferDiagnostic` and the GLSP validation path — so
|
|
706
|
+
* one pass here is what keeps the render from happening per head. It is also
|
|
707
|
+
* the only placement that covers lexer and parser errors, which Langium
|
|
708
|
+
* pushes onto the document without routing them through `toDiagnostic`.
|
|
709
|
+
*
|
|
710
|
+
* Running here rather than from a `Validated` phase listener needs no
|
|
711
|
+
* ordering assumption: Langium publishes from `addDiagnosticsHandler`, a free
|
|
712
|
+
* function it registers as such a listener, which can only be outrun.
|
|
713
|
+
*
|
|
714
|
+
* **It inherits {@link dedupeDiagnostics}'s window, and therefore the same
|
|
715
|
+
* precondition.** A build settling inside the listener window appends
|
|
716
|
+
* diagnostics this pass never saw, and the publisher of the build that
|
|
717
|
+
* rendered sends them — unrendered. `ModelServiceOptions.serializeBuilds`
|
|
718
|
+
* closes it and defaults to `true`, so "every diagnostic is rendered" holds
|
|
719
|
+
* by default and is an opt-out rather than a guarantee. Opting out accepts
|
|
720
|
+
* unrendered diagnostics on exactly the terms it already accepts duplicates.
|
|
721
|
+
*
|
|
722
|
+
* Entries are REPLACED rather than mutated: `sendDiagnostics` passes the
|
|
723
|
+
* array by reference and serialises later, so an in-place message mutation
|
|
724
|
+
* reaches the wire even when it runs after the publisher — which would make
|
|
725
|
+
* a test for the ordering pass in either state.
|
|
726
|
+
*/
|
|
727
|
+
protected renderDiagnostics(document: LangiumDocument): void;
|
|
728
|
+
/**
|
|
729
|
+
* Dispatch a log line at the configured log level; a no-op when `logLevel ===
|
|
730
|
+
* 'off'`.
|
|
731
|
+
*
|
|
732
|
+
* Held on the active session when it buffers, so the "was this build worth a
|
|
733
|
+
* per-phase breakdown" decision — which needs the build's total duration, and
|
|
734
|
+
* so cannot be taken by anything that runs while the lines are produced — is
|
|
735
|
+
* deferred to {@link flushSession}.
|
|
736
|
+
*/
|
|
403
737
|
protected log(message: string): void;
|
|
738
|
+
/** Write a line out, bypassing session buffering. The single sink every framework log line reaches. */
|
|
739
|
+
protected emit(message: string): void;
|
|
404
740
|
}
|
|
405
741
|
//# 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,
|
|
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,OAAO,EACZ,KAAK,YAAY,EACjB,sBAAsB,EACtB,KAAK,qBAAqB,EAC1B,aAAa,EACb,KAAK,eAAe,EACpB,QAAQ,EAER,KAAK,GAAG,E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