Skip to content

Commit

Permalink
lsp: reduce wait time to 2 sec
Browse files Browse the repository at this point in the history
  • Loading branch information
bummoblizard committed Aug 16, 2024
1 parent ab4e58d commit 60137bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/languageService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ export const connectMonacoToLanguageServer = (
isLanguageService: true,
})
);
// quick hack: wait for the server to start (5 seconds)
await new Promise((resolve) => setTimeout(resolve, 5000));
// quick hack: wait for the server to start (2 seconds)
await new Promise((resolve) => setTimeout(resolve, 2000));

const socket = toSocket(webSocket);
const reader = new WebSocketMessageReader(socket);
Expand Down

0 comments on commit 60137bb

Please sign in to comment.