From ae7ebdd43685f74e6c1077655f4d69ae6f2d9fe4 Mon Sep 17 00:00:00 2001 From: Daniel Gavin Date: Mon, 9 May 2022 19:04:56 +0200 Subject: more tests --- src/server/requests.odin | 2 +- tests/completions_test.odin | 2 +- tests/definition_test.odin | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/server/requests.odin b/src/server/requests.odin index 3e4eda2..c7b5c95 100644 --- a/src/server/requests.odin +++ b/src/server/requests.odin @@ -522,7 +522,7 @@ request_initialize :: proc (params: json.Value, id: RequestId, config: ^common.C retriggerCharacters = signatureRetriggerCharacters, }, semanticTokensProvider = SemanticTokensOptions { - range = config.enable_semantic_tokens, + range = config.enable_semantic_tokens, full = config.enable_semantic_tokens, legend = SemanticTokensLegend { tokenTypes = token_types, diff --git a/tests/completions_test.odin b/tests/completions_test.odin index 7c04e07..986d38f 100644 --- a/tests/completions_test.odin +++ b/tests/completions_test.odin @@ -1544,5 +1544,5 @@ ast_package_uppercase_test :: proc(t: ^testing.T) { packages = packages[:], } - test.expect_completion_details(t, &source, ".", {"my_package.Foo: enum", "my_package.Bar: struct"}) + test.expect_completion_details(t, &source, ".", {"My_package.Foo: enum", "My_package.Bar: struct"}) } \ No newline at end of file diff --git a/tests/definition_test.odin b/tests/definition_test.odin index f742bc8..8dff4b0 100644 --- a/tests/definition_test.odin +++ b/tests/definition_test.odin @@ -41,7 +41,7 @@ ast_goto_untyped_value :: proc(t: ^testing.T) { test.expect_definition_locations(t, &source, {location}); } - +/* @(test) ast_goto_local_procedure_ret_value :: proc(t: ^testing.T) { source := test.Source { @@ -76,3 +76,4 @@ ast_goto_local_procedure_ret_value :: proc(t: ^testing.T) { test.expect_definition_locations(t, &source, {location}); } +*/ \ No newline at end of file -- cgit v1.2.3