Interface DefaultSharedModuleContext

Context required for creating the default shared dependency injection module.

interface DefaultSharedModuleContext {
    connection?: Connection;
    fileSystemProvider: ((services: LangiumSharedCoreServices) => FileSystemProvider);
}

Hierarchy (view full)

Properties

connection?: Connection

Represents an abstract language server connection

fileSystemProvider: ((services: LangiumSharedCoreServices) => FileSystemProvider)

Factory function to create a FileSystemProvider.

Langium exposes an EmptyFileSystem and NodeFileSystem, exported through langium/node. When running Langium as part of a vscode language server or a Node.js app, using the NodeFileSystem is recommended, the EmptyFileSystem in every other use case.