Skip to content

Commit

Permalink
Revert publishDiagnostics workaround and fixed representation of empt…
Browse files Browse the repository at this point in the history
…y object.

Empty tables are sent as JSON arrays, not objects.
  • Loading branch information
orbitalquark committed Sep 22, 2024
1 parent d44e16c commit cac2380
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -369,13 +369,13 @@ function Server.new(lang, root, cmd, init_options)
-- prepareSupportDefaultBehavior = 1,
-- honorsChangeAnnotations = true
-- },
publishDiagnostics = {
relatedInformation = false -- some buggy language servers expect this key
-- tagSupport = {valueSet = {}},
-- versionSupport = true,
-- codeDescriptionSupport = true,
-- dataSupport = true
}
publishDiagnostics = empty_object -- {
-- relatedInformation = true
-- tagSupport = {valueSet = {}},
-- versionSupport = true,
-- codeDescriptionSupport = true,
-- dataSupport = true
-- },
-- foldingRange = {
-- dynamicRegistration = false, -- not supported
-- rangeLimit = ?,
Expand Down

0 comments on commit cac2380

Please sign in to comment.