Skip to content

Commit 315e2ba

Browse files
committed
Windows sucks
1 parent 37fbd35 commit 315e2ba

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

language-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"main": "./src/server.js",
77
"scripts": {
88
"lint": "eslint src",
9-
"test": "vitest --watch=false",
9+
"test": "vitest --watch=false --allowOnly src/services/schemas-neovim.test.ts",
1010
"coverage": "vitest run --coverage",
1111
"type-check": "tsc --noEmit"
1212
},

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,13 @@ describe("Feature - workspace (neovim)", () => {
4343
const schemaUris: string[] = [];
4444

4545
client.onNotification(PublishDiagnosticsNotification.type, (params) => {
46+
console.log("PublishDiagnosticsNotification", params.uri);
4647
schemaUris.push(params.uri);
4748
});
4849

50+
console.log("writeDocument");
4951
await client.writeDocument("./subjectB.schema.json", `{ "$schema": "https://json-schema.org/draft/2020-12/schema" }`);
52+
console.log("document written");
5053

5154
expect(schemaUris).to.eql([documentUriA, documentUriB]);
5255
});

language-server/src/test/test-client.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ export class TestClient<Configuration> {
247247
const buildCompleted = this.buildCompleted();
248248

249249
if (this.watchEnabled) {
250+
console.log("Send DidChangeWatchedFiles");
250251
await this.client.sendNotification(DidChangeWatchedFilesNotification.type, {
251252
changes: [{
252253
type: exists ? FileChangeType.Changed : FileChangeType.Created,
@@ -312,7 +313,9 @@ export class TestClient<Configuration> {
312313
private buildCompleted() {
313314
return new Promise<void>((resolve) => {
314315
this.client.onRequest(WorkDoneProgressCreateRequest.type, ({ token }) => {
316+
console.log("WorkDonProgressCreateRequest");
315317
this.client.onProgress(WorkDoneProgress.type, token, ({ kind }) => {
318+
console.log("WorkDonProgress", kind);
316319
if (kind === "end") {
317320
resolve();
318321
}

0 commit comments

Comments
 (0)