zls/src
Martin Tournoij 622efdcd6a
Use plain text if the client tells zls it's preferred
LSP clients send a list of supported formats for definition and
completion; the specification says "the order describes the preferred
format of the client."[1]

My client sends:

	'hover': {'contentFormat': ['plaintext', 'markdown']},

So it should prefer plaintext, using markdown if that's not supported by
the server. zls behaved slightly different: it would use Markdown if it
appears at all in the list of supported formats.

This fixes it so that it will use plain text if that appears before
'markdown' in the list.

[1]: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_hover
2023-04-13 07:33:43 +02:00
..
analyser fix typos 2023-03-15 17:34:23 +01:00
config_gen add support for running ast-check without zig 2023-04-01 23:03:51 +02:00
data update snippet data 2023-03-26 16:20:15 +01:00
features Avoid accessing inactive union fields in completeDot (#1115) 2023-04-05 10:28:21 -04:00
special hack latest build changes (#1077) 2023-03-18 20:50:26 -04:00
stage2 explain how AstGen will diverge from zig codebase 2023-04-01 23:03:51 +02:00
tracy@f493d4aa8b Update dependencies 2022-08-20 19:27:31 +02:00
analysis.zig Add anytype resolution based on call references (#1067) 2023-03-31 11:54:46 -04:00
ast.zig disable assertions in smallestEnclosingSubrange 2023-04-12 23:44:39 +01:00
BuildAssociatedConfig.zig fix typos 2023-03-15 17:34:23 +01:00
ComptimeInterpreter.zig Fix build runner (#1029) 2023-03-05 14:08:31 -05:00
Config.zig add support for running ast-check without zig 2023-04-01 23:03:51 +02:00
configuration.zig Fix crash if zls.json is empty (#1034) 2023-03-05 14:09:39 -05:00
debug.zig fix printDocumentScope 2023-03-23 15:13:33 +00:00
diff.zig more tracy calls (#1052) 2023-03-11 13:43:14 -05:00
DocumentStore.zig Merge pull request #1000 from Techatrix/stage2-zir 2023-04-01 23:08:40 -04:00
Header.zig fix typos 2023-03-15 17:34:23 +01:00
lsp.zig ignore an unknown CodeActionKind (#1001) 2023-02-21 22:27:47 +00:00
main.zig make semantic token configuration an enum 2023-03-23 15:02:12 +00:00
offsets.zig fix typos 2023-03-15 17:34:23 +01:00
Server.zig Use plain text if the client tells zls it's preferred 2023-04-13 07:33:43 +02:00
shared.zig update data files 2023-01-28 22:42:13 +00:00
tracy.zig tracy: workaround zig bug (#1066) 2023-03-15 11:59:56 -04:00
translate_c.zig more tracy calls (#1052) 2023-03-11 13:43:14 -05:00
uri.zig add multi object for loop support (#1011) 2023-02-21 17:11:35 -05:00
ZigVersionWrapper.zig support new module cli arguments (#1019) 2023-02-23 15:18:52 -05:00
zls.zig Rework file structure (#1069) 2023-03-17 23:01:41 +01:00