diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-08-12 11:29:12 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-08-12 11:29:12 -0400 |
| commit | 613c9e6d59dfcdc72dfb3fcc72e63f1ed277cbfc (patch) | |
| tree | 754f21d9accf6ad7b9eecfd94870fd45ac062a54 /src/server/requests.odin | |
| parent | 9e6c39fcd74edce577015d4c2a09cbad89adf958 (diff) | |
Use empty struct as map values when wanting a hashset
Diffstat (limited to 'src/server/requests.odin')
| -rw-r--r-- | src/server/requests.odin | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/server/requests.odin b/src/server/requests.odin index c34f7f5..aeda500 100644 --- a/src/server/requests.odin +++ b/src/server/requests.odin @@ -247,14 +247,14 @@ call_map: map[string]proc(_: json.Value, _: RequestId, _: ^common.Config, _: ^Wr "workspace/didChangeWatchedFiles" = notification_did_change_watched_files, } -notification_map: map[string]bool = { - "textDocument/didOpen" = true, - "textDocument/didChange" = true, - "textDocument/didClose" = true, - "textDocument/didSave" = true, - "initialized" = true, - "window/progress" = true, - "workspace/didChangeWatchedFiles" = true, +notification_map: map[string]struct{} = { + "textDocument/didOpen" = {}, + "textDocument/didChange" = {}, + "textDocument/didClose" = {}, + "textDocument/didSave" = {}, + "initialized" = {}, + "window/progress" = {}, + "workspace/didChangeWatchedFiles" = {}, } consume_requests :: proc(config: ^common.Config, writer: ^Writer) -> bool { |