Oops we need to explicitly start LSP now

This commit is contained in:
Radon Rosborough 2021-08-16 15:54:37 -07:00
parent 9a89d1a14a
commit 399bc90f59
1 changed files with 3 additions and 0 deletions

View File

@ -288,6 +288,9 @@ class Test {
? template.indexOf(after) + after.length
: template.length;
const code = template.slice(0, idx) + insertedCode + template.slice(idx);
this.send({
event: "lspStart",
});
const root = await this.wait("lspStarted message", (msg) => {
if (msg.event === "lspStarted") {
return msg.root;