From 99230742a81ebfc39ae9f7a889b261415f6dfc82 Mon Sep 17 00:00:00 2001 From: Lars Reimann Date: Thu, 7 Mar 2024 17:31:18 +0100 Subject: [PATCH] fix: language server crash on startup (#947) Closes #945 ### Summary of Changes Add a missing `await` to fix a crash when starting the language server. --- packages/safe-ds-lang/src/language/main.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/safe-ds-lang/src/language/main.ts b/packages/safe-ds-lang/src/language/main.ts index e6a044fe3..0ba9cb8c1 100644 --- a/packages/safe-ds-lang/src/language/main.ts +++ b/packages/safe-ds-lang/src/language/main.ts @@ -4,13 +4,12 @@ import { createConnection, ProposedFeatures } from 'vscode-languageserver/node.j import { createSafeDsServices } from './safe-ds-module.js'; /* c8 ignore start */ -export const startLanguageServer = () => { +export const startLanguageServer = async () => { // Create a connection to the client const connection = createConnection(ProposedFeatures.all); // Inject the shared services and language-specific services - // @ts-ignore - const { shared } = createSafeDsServices({ connection, ...NodeFileSystem }); + const { shared } = await createSafeDsServices({ connection, ...NodeFileSystem }); // Start the language server with the shared services doStartLanguageServer(shared);