diff options
| author | Daniel Gavin <danielgavin5@hotmail.com> | 2021-05-05 17:04:09 +0200 |
|---|---|---|
| committer | Daniel Gavin <danielgavin5@hotmail.com> | 2021-05-05 17:04:09 +0200 |
| commit | d25e7a8dfd64e492e4fe23876f2ccc646ed18c57 (patch) | |
| tree | ce5712615fd5068d506b48507fa2b18d5f602ba5 | |
| parent | 1423e70aee9385d814b0fcd835fb256e78275262 (diff) | |
forget to set the last_checked, if the ols version matches the current one.
| -rw-r--r-- | editors/vscode/src/extension.ts | 1 | ||||
| -rw-r--r-- | src/index/collector.odin | 1 | ||||
| -rw-r--r-- | tests/completions_test.odin | 2 |
3 files changed, 2 insertions, 2 deletions
diff --git a/editors/vscode/src/extension.ts b/editors/vscode/src/extension.ts index fed66db..62c47aa 100644 --- a/editors/vscode/src/extension.ts +++ b/editors/vscode/src/extension.ts @@ -320,6 +320,7 @@ async function getServer(config: Config, state: PersistentState): Promise<string }); if (release === undefined || release.id === state.releaseId) { + await state.updateLastCheck(Date.now()); return destExecutable; } diff --git a/src/index/collector.odin b/src/index/collector.odin index 44c439b..053c27e 100644 --- a/src/index/collector.odin +++ b/src/index/collector.odin @@ -89,7 +89,6 @@ collect_procedure_fields :: proc(collection: ^SymbolCollection, proc_type: ^ast. arg_types = args[:], generic = proc_type.generic, }; - return value; } diff --git a/tests/completions_test.odin b/tests/completions_test.odin index c091209..59e58ab 100644 --- a/tests/completions_test.odin +++ b/tests/completions_test.odin @@ -278,7 +278,7 @@ ast_package_completion :: proc(t: ^testing.T) { packages := make([dynamic]test.Package); - append(&packages, test.Package{ + append(&packages, test.Package { pkg = "my_package", source = `package my_package My_Struct :: struct { |