diff options
Diffstat (limited to 'src/server/completion.odin')
| -rw-r--r-- | src/server/completion.odin | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/server/completion.odin b/src/server/completion.odin index 806f334..092a406 100644 --- a/src/server/completion.odin +++ b/src/server/completion.odin @@ -1815,7 +1815,17 @@ format_to_label_details :: proc(list: ^CompletionList) { item.detail = item.label case .Keyword: item.detail = "keyword" - } + } + + // hack for sublime text's issue + // remove when this issue is fixed: https://github.com/sublimehq/sublime_text/issues/6033 + // or if this PR gets merged: https://github.com/sublimelsp/LSP/pull/2293 + dt:= &item.labelDetails.? or_else nil + if dt == nil do continue + if strings.contains(dt.detail, "..") || strings.contains(dt.detail, "#") { + s, _ := strings.replace_all(dt.detail, "..", "ꓸꓸ", allocator = context.temp_allocator) + dt.detail = s + } } } |