Skip to content

Commit 0a900b9

Browse files
authored
Fix method called before initialize (#667)
wait for init in onInitialize before sending response to the client, so that client won't try to do request before the lsp handlers are registered.
1 parent d4ee4b4 commit 0a900b9

File tree

1 file changed

+1
-1
lines changed
  • packages/tailwindcss-language-server/src

1 file changed

+1
-1
lines changed

packages/tailwindcss-language-server/src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2249,7 +2249,7 @@ connection.onInitialize(async (params: InitializeParams): Promise<InitializeResu
22492249
}
22502250
}
22512251

2252-
tw.init()
2252+
await tw.init()
22532253

22542254
return {
22552255
capabilities: {

0 commit comments

Comments
 (0)