A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/neovim/neovim/commit/8e702c14ac5fc481bc4a3c709e75e3c165326128 below:

add handler for workspace/workspaceFolders (#17149) · neovim/neovim@8e702c1 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+11

-0

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+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