+11
-0
lines changedFilter options
+11
-0
lines changed Original file line number Diff line number Diff line change
@@ -152,6 +152,17 @@ M['workspace/configuration'] = function(_, result, ctx)
152
152
return response
153
153
end
154
154
155
+
--see: https://microsoft.github.io/language-server-protocol/specifications/specification-current/#workspace_workspaceFolders
156
+
M['workspace/workspaceFolders'] = function(_, _, ctx)
157
+
local client_id = ctx.client_id
158
+
local client = vim.lsp.get_client_by_id(client_id)
159
+
if not client then
160
+
err_message("LSP[id=", client_id, "] client has shut down after sending the message")
161
+
return
162
+
end
163
+
return client.workspace_folders or vim.NIL
164
+
end
165
+
155
166
M['textDocument/publishDiagnostics'] = function(...)
156
167
return require('vim.lsp.diagnostic').on_publish_diagnostics(...)
157
168
end
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4