diff --git a/tests/context.zig b/tests/context.zig index ac8436a..815bce1 100644 --- a/tests/context.zig +++ b/tests/context.zig @@ -18,7 +18,13 @@ pub const Context = struct { var context = Context{ .server = try Server.init( allocator, - .{}, + .{ + .enable_ast_check_diagnostics = false, + .enable_semantic_tokens = true, + .enable_inlay_hints = true, + .inlay_hints_exclude_single_argument = false, + .inlay_hints_show_builtin = true, + }, null, .debug, ), diff --git a/tests/lsp_features/inlay_hints.zig b/tests/lsp_features/inlay_hints.zig index 0c14fa8..ee6bf24 100644 --- a/tests/lsp_features/inlay_hints.zig +++ b/tests/lsp_features/inlay_hints.zig @@ -71,10 +71,6 @@ fn testInlayHints(source: []const u8) !void { var ctx = try Context.init(); defer ctx.deinit(); - ctx.server.config.enable_inlay_hints = true; - ctx.server.config.inlay_hints_exclude_single_argument = false; - ctx.server.config.inlay_hints_show_builtin = true; - const open_document = requests.OpenDocument{ .params = .{ .textDocument = .{ diff --git a/tests/lsp_features/semantic_tokens.zig b/tests/lsp_features/semantic_tokens.zig index 67cecbb..4c2c04a 100644 --- a/tests/lsp_features/semantic_tokens.zig +++ b/tests/lsp_features/semantic_tokens.zig @@ -24,8 +24,6 @@ fn testSemanticTokens(source: []const u8, expected: []const u32) !void { var ctx = try Context.init(); defer ctx.deinit(); - ctx.server.config.enable_semantic_tokens = true; - const open_document = requests.OpenDocument{ .params = .{ .textDocument = .{