A RetroSearch Logo

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

Search Query:

Showing content from https://github.com/neovim/neovim/commit/730a9514dcf540c4921bbe45c1c8849f773bae39 below:

progress handlers should return vim.NIL on error (#16472) · neovim/neovim@730a951 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+2

-2

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+2

-2

lines changed Original file line number Diff line number Diff line change

@@ -28,7 +28,7 @@ local function progress_handler(_, result, ctx, _)

28 28

local client_name = client and client.name or string.format("id=%d", client_id)

29 29

if not client then

30 30

err_message("LSP[", client_name, "] client has shut down after sending the message")

31 -

return

31 +

return vim.NIL

32 32

end

33 33

local val = result.value -- unspecified yet

34 34

local token = result.token -- string or number

@@ -70,7 +70,7 @@ M['window/workDoneProgress/create'] = function(_, result, ctx)

70 70

local client_name = client and client.name or string.format("id=%d", client_id)

71 71

if not client then

72 72

err_message("LSP[", client_name, "] client has shut down after sending the message")

73 -

return

73 +

return vim.NIL

74 74

end

75 75

client.messages.progress[token] = {}

76 76

return vim.NIL

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