Skip to content

Commit 0ec64fa

Browse files
committed
Update TestClient to support multiple config scopes
1 parent d272fc3 commit 0ec64fa

17 files changed

+41
-56
lines changed

language-server/src/features/completion/completion.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
import { afterAll, beforeAll, describe, expect, test } from "vitest";
22
import { TestClient } from "../../test/test-client.ts";
33

4-
import type { DocumentSettings } from "../../services/configuration.js";
5-
64

75
describe("Feature - Completion", () => {
8-
let client: TestClient<DocumentSettings>;
6+
let client: TestClient;
97

108
beforeAll(async () => {
119
client = new TestClient();

language-server/src/features/completion/if-then-completion.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@ import { CompletionRequest } from "vscode-languageserver";
33
import { TestClient } from "../../test/test-client.ts";
44
import { ifThenPatternCompletion } from "./if-then-completion.js";
55

6-
import type { DocumentSettings } from "../../services/configuration.js";
7-
86

97
describe("Feature - if/then completion", () => {
10-
let client: TestClient<DocumentSettings>;
8+
let client: TestClient;
119
let documentUri: string;
1210

1311
beforeAll(async () => {

language-server/src/features/completion/keyword-completion.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@ import { afterAll, afterEach, beforeAll, describe, expect, test } from "vitest";
22
import { CompletionRequest, CompletionItemKind } from "vscode-languageserver";
33
import { TestClient } from "../../test/test-client.ts";
44

5-
import type { DocumentSettings } from "../../services/configuration.js";
6-
75

86
describe("Feature - if/then completion", () => {
9-
let client: TestClient<DocumentSettings>;
7+
let client: TestClient;
108
let documentUri: string;
119

1210
beforeAll(async () => {

language-server/src/features/completion/schema-completion.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@ import { afterAll, afterEach, beforeAll, describe, expect, test } from "vitest";
22
import { CompletionItemKind, CompletionRequest } from "vscode-languageserver";
33
import { TestClient } from "../../test/test-client.ts";
44

5-
import type { DocumentSettings } from "../../services/configuration.js";
6-
75

86
describe("Feature - $schema completion", () => {
9-
let client: TestClient<DocumentSettings>;
7+
let client: TestClient;
108
let documentUri: string;
119

1210
beforeAll(async () => {

language-server/src/features/diagnostics/deprecated.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ import { DiagnosticSeverity, DiagnosticTag, PublishDiagnosticsNotification } fro
33
import { TestClient } from "../../test/test-client.ts";
44

55
import type { Diagnostic } from "vscode-languageserver";
6-
import type { DocumentSettings } from "../../services/configuration.js";
76

87

98
describe("Feature - Deprecated", () => {
10-
let client: TestClient<DocumentSettings>;
9+
let client: TestClient;
1110

1211
beforeEach(async () => {
1312
client = new TestClient();

language-server/src/features/diagnostics/validate-dialects.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ import { PublishDiagnosticsNotification } from "vscode-languageserver";
33
import { TestClient } from "../../test/test-client.ts";
44

55
import type { Diagnostic } from "vscode-languageserver";
6-
import type { DocumentSettings } from "../../services/configuration.js";
76

87

98
describe("Feature - Custom Dialects", () => {
10-
let client: TestClient<DocumentSettings>;
9+
let client: TestClient;
1110
let documentUriB: string;
1211
let documentUri: string;
1312

language-server/src/features/diagnostics/validate-references.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ import { PublishDiagnosticsNotification } from "vscode-languageserver";
33
import { TestClient } from "../../test/test-client.ts";
44

55
import type { Diagnostic } from "vscode-languageserver";
6-
import type { DocumentSettings } from "../../services/configuration.js";
76

87

98
describe("Feature - Validate References Errors", () => {
10-
let client: TestClient<DocumentSettings>;
9+
let client: TestClient;
1110

1211
beforeEach(async () => {
1312
client = new TestClient();

language-server/src/features/diagnostics/validate-vocabulary.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ import { DiagnosticSeverity, PublishDiagnosticsNotification } from "vscode-langu
33
import { TestClient } from "../../test/test-client.ts";
44

55
import type { Diagnostic } from "vscode-languageserver";
6-
import type { DocumentSettings } from "../../services/configuration.js";
76

87

98
describe("Feature - Validate $vocabulary", () => {
10-
let client: TestClient<DocumentSettings>;
9+
let client: TestClient;
1110

1211
beforeEach(async () => {
1312
client = new TestClient();

language-server/src/features/diagnostics/validation-errors.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ import { PublishDiagnosticsNotification } from "vscode-languageserver";
33
import { TestClient } from "../../test/test-client.ts";
44

55
import type { Diagnostic } from "vscode-languageserver";
6-
import type { DocumentSettings } from "../../services/configuration.js";
76

87

98
describe("Feature - Validation Errors", () => {
10-
let client: TestClient<DocumentSettings>;
9+
let client: TestClient;
1110

1211
beforeEach(async () => {
1312
client = new TestClient();

language-server/src/features/find-references.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@ import { afterEach, beforeEach, describe, expect, test } from "vitest";
22
import { ReferencesRequest } from "vscode-languageserver";
33
import { TestClient } from "../test/test-client.ts";
44

5-
import type { DocumentSettings } from "../services/configuration.js";
6-
75

86
describe("Feature - References", () => {
9-
let client: TestClient<DocumentSettings>;
7+
let client: TestClient;
108

119
beforeEach(async () => {
1210
client = new TestClient();

0 commit comments

Comments
 (0)