@hydranium/core 1.0.0-next.199 → 1.0.0-next.200
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 +8 -7
- package/lib/documents/ast-document-manager.d.ts +2 -52
- package/lib/documents/ast-document-manager.d.ts.map +1 -1
- package/lib/documents/ast-document-manager.js.map +1 -1
- package/lib/documents/index.d.ts +0 -1
- package/lib/documents/index.d.ts.map +1 -1
- package/lib/documents/index.js +0 -1
- package/lib/documents/index.js.map +1 -1
- package/lib/langium/integrity/integrity-service.d.ts +1 -1
- package/lib/langium/integrity/integrity-service.d.ts.map +1 -1
- package/lib/langium/language-module.d.ts +2 -2
- package/lib/langium/language-module.d.ts.map +1 -1
- package/lib/langium/language-module.js +2 -2
- package/lib/langium/language-module.js.map +1 -1
- package/lib/langium/module.d.ts +3 -3
- package/lib/langium/module.d.ts.map +1 -1
- package/lib/langium/module.js +1 -1
- package/lib/langium/module.js.map +1 -1
- package/lib/langium/shared-services.d.ts +2 -2
- package/lib/langium/shared-services.d.ts.map +1 -1
- package/lib/langium/validation/validation-contribution-collector.d.ts +9 -1
- package/lib/langium/validation/validation-contribution-collector.d.ts.map +1 -1
- package/lib/langium/validation/validation-contribution-collector.js +1 -1
- package/lib/langium/validation/validation-contribution-collector.js.map +1 -1
- package/lib/langium/workspace/file-system-provider.d.ts +52 -2
- package/lib/langium/workspace/file-system-provider.d.ts.map +1 -1
- package/lib/langium/workspace/file-system-provider.js.map +1 -1
- package/lib/langium/workspace/hydranium-workspace-manager.d.ts +1 -1
- package/lib/langium/workspace/hydranium-workspace-manager.d.ts.map +1 -1
- package/lib/langium/workspace/in-memory-file-system-provider.d.ts +1 -1
- package/lib/langium/workspace/in-memory-file-system-provider.d.ts.map +1 -1
- package/lib/langium/workspace/index.d.ts +1 -0
- package/lib/langium/workspace/index.d.ts.map +1 -1
- package/lib/langium/workspace/index.js +1 -0
- package/lib/langium/workspace/index.js.map +1 -1
- package/lib/langium/workspace/persistent-file-system-provider.d.ts +1 -1
- package/lib/langium/workspace/persistent-file-system-provider.d.ts.map +1 -1
- package/lib/{documents → langium/workspace}/self-save-registry.d.ts +1 -1
- package/lib/langium/workspace/self-save-registry.d.ts.map +1 -0
- package/lib/{documents → langium/workspace}/self-save-registry.js +1 -1
- package/lib/langium/workspace/self-save-registry.js.map +1 -0
- package/lib/langium/workspace/virtual-document.d.ts +1 -1
- package/lib/langium/workspace/virtual-document.d.ts.map +1 -1
- package/lib/lsp/hydranium-document-update-handler.d.ts +2 -2
- package/lib/lsp/hydranium-document-update-handler.d.ts.map +1 -1
- package/lib/node/node-file-system-provider.d.ts +2 -2
- package/lib/node/node-file-system-provider.d.ts.map +1 -1
- package/lib/testing/stub-ast-document-manager.d.ts +2 -1
- package/lib/testing/stub-ast-document-manager.d.ts.map +1 -1
- package/lib/testing/stub-ast-document-manager.js.map +1 -1
- package/lib/testing/stub-self-save-registry.d.ts +1 -1
- package/lib/testing/stub-self-save-registry.d.ts.map +1 -1
- package/lib/testing/stub-writable-file-system.d.ts +1 -1
- package/lib/testing/stub-writable-file-system.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/documents/ast-document-manager.ts +2 -61
- package/src/documents/index.ts +0 -1
- package/src/langium/integrity/integrity-service.ts +1 -1
- package/src/langium/language-module.ts +6 -3
- package/src/langium/module.ts +4 -3
- package/src/langium/shared-services.ts +2 -2
- package/src/langium/validation/validation-contribution-collector.ts +10 -1
- package/src/langium/workspace/file-system-provider.ts +53 -2
- package/src/langium/workspace/hydranium-workspace-manager.ts +1 -1
- package/src/langium/workspace/in-memory-file-system-provider.ts +1 -1
- package/src/langium/workspace/index.ts +1 -0
- package/src/langium/workspace/persistent-file-system-provider.ts +1 -1
- package/src/{documents → langium/workspace}/self-save-registry.ts +2 -2
- package/src/langium/workspace/virtual-document.ts +1 -1
- package/src/lsp/hydranium-document-update-handler.ts +2 -2
- package/src/node/node-file-system-provider.ts +2 -2
- package/src/testing/parse-semantic-root.ts +1 -1
- package/src/testing/stub-ast-document-manager.ts +2 -2
- package/src/testing/stub-self-save-registry.ts +1 -1
- package/src/testing/stub-writable-file-system.ts +1 -1
- package/lib/documents/self-save-registry.d.ts.map +0 -1
- package/lib/documents/self-save-registry.js.map +0 -1
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
********************************************************************************/
|
|
9
9
|
|
|
10
10
|
import { URI } from '@hydranium/langium';
|
|
11
|
-
import { type WritableFileSystemProvider } from '
|
|
11
|
+
import { type WritableFileSystemProvider } from './file-system-provider.js';
|
|
12
12
|
import { serverSharedFactory, type ServerSharedServicesMinimal } from '../shared-services.js';
|
|
13
13
|
import { type FileSystemSeed, InMemoryFileSystemProvider, type InMemoryFileSystemOptions } from './in-memory-file-system-provider.js';
|
|
14
14
|
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
********************************************************************************/
|
|
9
9
|
|
|
10
10
|
import { type Clock } from '@hydranium/protocol';
|
|
11
|
-
import { isCaseInsensitiveFileSystem } from '
|
|
12
|
-
import { type ServerSharedServicesMinimal } from '../
|
|
11
|
+
import { isCaseInsensitiveFileSystem } from '../../util/environment.js';
|
|
12
|
+
import { type ServerSharedServicesMinimal } from '../shared-services.js';
|
|
13
13
|
|
|
14
14
|
/** Default eligibility window for a self-save entry. */
|
|
15
15
|
const DEFAULT_TTL_MS = 30_000;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
import { type FileSystemNode, URI } from '@hydranium/langium';
|
|
11
11
|
import { type Tracer } from '@hydranium/protocol';
|
|
12
|
-
import { type WritableFileSystemProvider } from '
|
|
12
|
+
import { type WritableFileSystemProvider } from './file-system-provider.js';
|
|
13
13
|
import { type LogNameOptions } from '../diagnostics/logger.js';
|
|
14
14
|
import { type ServerSharedServicesMinimal } from '../shared-services.js';
|
|
15
15
|
import { NO_SUCH_FILE, NO_SUCH_PATH, UNSUPPORTED_WRITE } from './in-memory-file-system-provider.js';
|
|
@@ -13,8 +13,8 @@ import { DefaultDocumentUpdateHandler } from '@hydranium/langium/lsp';
|
|
|
13
13
|
import { HYDRANIUM_BUILD_REASONS, type HydraniumDocumentBuilder } from '../langium/document-builder/document-builder.js';
|
|
14
14
|
import { type ServerSharedServices } from '../langium/module.js';
|
|
15
15
|
import { LANGUAGE_CLIENT_ID } from '../documents/client-ids.js';
|
|
16
|
-
import { type SelfSaveRegistry } from '../
|
|
17
|
-
import { type WritableFileSystemProvider } from '../
|
|
16
|
+
import { type SelfSaveRegistry } from '../langium/workspace/self-save-registry.js';
|
|
17
|
+
import { type WritableFileSystemProvider } from '../langium/workspace/file-system-provider.js';
|
|
18
18
|
import { type HydraniumTextDocuments } from '../documents/hydranium-text-documents.js';
|
|
19
19
|
import { isConnectionGoneError } from '../util/connection-liveness.js';
|
|
20
20
|
import {
|
|
@@ -13,8 +13,8 @@ import { NodeFileSystemProvider } from '@hydranium/langium/node';
|
|
|
13
13
|
import { randomUUID } from 'node:crypto';
|
|
14
14
|
import { realpathSync } from 'node:fs';
|
|
15
15
|
import * as fsp from 'node:fs/promises';
|
|
16
|
-
import { type WritableFileSystemProvider } from '../
|
|
17
|
-
import { type SelfSaveRegistry } from '../
|
|
16
|
+
import { type WritableFileSystemProvider } from '../langium/workspace/file-system-provider.js';
|
|
17
|
+
import { type SelfSaveRegistry } from '../langium/workspace/self-save-registry.js';
|
|
18
18
|
import { renameOverOpenReaders } from './rename-over-open-readers.js';
|
|
19
19
|
import { type LogNameOptions } from '../langium/diagnostics/logger.js';
|
|
20
20
|
import { serverSharedFactory, type ServerSharedServicesMinimal } from '../langium/shared-services.js';
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
|
|
56
56
|
import { type AstNode, AstUtils, type LangiumCoreServices, URI } from '@hydranium/langium';
|
|
57
57
|
import { type ParseHelperOptions, parseHelper } from '@hydranium/langium/test';
|
|
58
|
-
import type { WritableFileSystemProvider } from '../
|
|
58
|
+
import type { WritableFileSystemProvider } from '../langium/workspace/file-system-provider.js';
|
|
59
59
|
|
|
60
60
|
/** The one field this module reads off a lexer or parser error. */
|
|
61
61
|
interface ParseErrorMessage {
|
|
@@ -14,9 +14,9 @@ import {
|
|
|
14
14
|
AstDocument,
|
|
15
15
|
type AstDocumentManager,
|
|
16
16
|
type AstDocumentUpdatedEvent,
|
|
17
|
-
type UpdateAttribution
|
|
18
|
-
type WritableFileSystemProvider
|
|
17
|
+
type UpdateAttribution
|
|
19
18
|
} from '../documents/ast-document-manager.js';
|
|
19
|
+
import { type WritableFileSystemProvider } from '../langium/workspace/file-system-provider.js';
|
|
20
20
|
import { UNKNOWN_CLIENT_ID } from '../documents/client-ids.js';
|
|
21
21
|
import { DefaultModelLedger, type ModelLedger } from '../documents/model-ledger.js';
|
|
22
22
|
import { type CloseModelArgs, type OpenModelArgs } from '@hydranium/protocol';
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* SPDX-License-Identifier: MIT
|
|
8
8
|
********************************************************************************/
|
|
9
9
|
|
|
10
|
-
import type { SelfSaveRegistry } from '../
|
|
10
|
+
import type { SelfSaveRegistry } from '../langium/workspace/self-save-registry.js';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Stub for the framework's {@link SelfSaveRegistry}. Records `register` calls
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
********************************************************************************/
|
|
9
9
|
|
|
10
10
|
import type { URI } from '@hydranium/langium';
|
|
11
|
-
import type { WritableFileSystemProvider } from '../
|
|
11
|
+
import type { WritableFileSystemProvider } from '../langium/workspace/file-system-provider.js';
|
|
12
12
|
import type { StubSelfSaveRegistry } from './stub-self-save-registry.js';
|
|
13
13
|
|
|
14
14
|
/**
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"self-save-registry.d.ts","sourceRoot":"","sources":["../../src/documents/self-save-registry.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAElF,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,EAA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