Skip to content

Commit 293e77a

Browse files
authored
Fix issue with crash recovery trying to send didOpen before client is started (#13902)
1 parent c77712b commit 293e77a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Extension/src/LanguageServer/clientCollection.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ export class ClientCollection {
121121
const client: cpptools.Client = pair[1];
122122

123123
const newClient: cpptools.Client = this.createClient(client.RootFolder, true);
124+
await newClient.ready;
124125
for (const document of client.TrackedDocuments.values()) {
125126
this.transferOwnership(document, client);
126127
await newClient.sendDidOpen(document);

0 commit comments

Comments
 (0)