Skip to content

Commit ea0083b

Browse files
authored
Merge pull request #113 from kfigiela/master
Fix multiple hie processes issue
2 parents a551c65 + 5ff38b5 commit ea0083b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/extension.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,12 @@ function activateHieNoCheck(context: ExtensionContext, folder: WorkspaceFolder,
210210
hieCommandsRegistered = true;
211211
}
212212

213+
// If the client already has an LSP server, then don't start a new one.
214+
// We check this again, as there may be multiple parallel requests.
215+
if (clients.has(folder.uri.toString())) {
216+
return;
217+
}
218+
213219
// Finally start the client and add it to the list of clients.
214220
langClient.start();
215221
clients.set(folder.uri.toString(), langClient);

0 commit comments

Comments
 (0)