import { startLanguageServer as startLanguim } from "langium/lsp";
import { createConnection, ProposedFeatures } from "vscode-languageserver/node";
import { LikeC4FileSystem } from "./LikeC4FileSystem.js";
import { createCustomLanguageServices } from "./module.js";
import { ConfigurableLayouter } from "./views/configurable-layouter.js";
export { logger as lspLogger, setLogLevel } from "./logger.js";
export { createCustomLanguageServices, createLanguageServices, LikeC4Module } from "./module.js";
export { LikeC4FileSystem };
export function startLanguageServer() {
  const connection = createConnection(ProposedFeatures.all);
  const services = createCustomLanguageServices({ connection, ...LikeC4FileSystem }, ConfigurableLayouter);
  startLanguim(services.shared);
  return services;
}
