set custom config for tests
This commit is contained in:
parent
d8b574a0cc
commit
bcf8bc7094
@ -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,
|
||||
),
|
||||
|
@ -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 = .{
|
||||
|
@ -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 = .{
|
||||
|
Loading…
Reference in New Issue
Block a user