Skip to content

Commit 587bb2d

Browse files
committed
Windows sucks
1 parent 37fbd35 commit 587bb2d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

language-server/src/services/schemas-neovim.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { afterAll, beforeAll, describe, expect, test } from "vitest";
22
import { TestClient } from "../test/test-client.ts";
33
import { PublishDiagnosticsNotification } from "vscode-languageserver";
4+
import { wait } from "../test/test-utils.ts";
45

56
import type { DocumentSettings } from "./configuration.js";
67

@@ -43,10 +44,13 @@ describe("Feature - workspace (neovim)", () => {
4344
const schemaUris: string[] = [];
4445

4546
client.onNotification(PublishDiagnosticsNotification.type, (params) => {
47+
console.log(params.uri);
4648
schemaUris.push(params.uri);
4749
});
50+
await wait(100);
4851

4952
await client.writeDocument("./subjectB.schema.json", `{ "$schema": "https://json-schema.org/draft/2020-12/schema" }`);
53+
await wait(100);
5054

5155
expect(schemaUris).to.eql([documentUriA, documentUriB]);
5256
});

0 commit comments

Comments
 (0)