<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rneovim.git/runtime/lua/vim/lsp, branch stable</title>
<subtitle>Neovim fork with Rahm's personal hacks.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/'/>
<entry>
<title>fix(lsp): avoid ipairs on non-sequential tables (#15059)</title>
<updated>2021-09-26T18:28:28+00:00</updated>
<author>
<name>Michael Lingelbach</name>
<email>m.j.lbach@gmail.com</email>
</author>
<published>2021-07-11T18:34:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=dc15b3a92c9b6af1a985fa5b62f04177795e58df'/>
<id>dc15b3a92c9b6af1a985fa5b62f04177795e58df</id>
<content type='text'>
ipairs terminates on the first nil index when iterating over table keys:

for i,k in ipairs( {[1] = 'test', [3] = 'test'} ) do
  print(i, k)
end

prints:
1 test

Instead, use pairs which continues iterating over the entire table:

for i,k in pairs( {[1] = 'test', [3] = 'test'} ) do
  print(i, k)
end

prints:
1 test
3 test</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
ipairs terminates on the first nil index when iterating over table keys:

for i,k in ipairs( {[1] = 'test', [3] = 'test'} ) do
  print(i, k)
end

prints:
1 test

Instead, use pairs which continues iterating over the entire table:

for i,k in pairs( {[1] = 'test', [3] = 'test'} ) do
  print(i, k)
end

prints:
1 test
3 test</pre>
</div>
</content>
</entry>
<entry>
<title>feat(lsp): improve vim.lsp.util.apply_text_edits (#15561)</title>
<updated>2021-09-26T18:28:28+00:00</updated>
<author>
<name>hrsh7th</name>
<email>hrsh7th@gmail.com</email>
</author>
<published>2021-09-18T20:19:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=18375c6df609d4e89640c609490a85110852795c'/>
<id>18375c6df609d4e89640c609490a85110852795c</id>
<content type='text'>
- Fix the cursor position after applying TextEdits
- Support reversed range of TextEdit
- Invoke nvim_buf_set_text one by one
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Fix the cursor position after applying TextEdits
- Support reversed range of TextEdit
- Invoke nvim_buf_set_text one by one
</pre>
</div>
</content>
</entry>
<entry>
<title>feat(lsp): improve logging (#15636)</title>
<updated>2021-09-26T18:28:28+00:00</updated>
<author>
<name>Michael Lingelbach</name>
<email>m.j.lbach@gmail.com</email>
</author>
<published>2021-09-15T18:35:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=7b1315fe61131f787d9351ecd444346b95f5e49c'/>
<id>7b1315fe61131f787d9351ecd444346b95f5e49c</id>
<content type='text'>
* Simplify rpc encode/decode messages to rpc.send/rcp.receive
* Make missing handlers message throw a warning
* Clean up formatting style in log
* Move all non-RPC loop messages to trace instead of debug
* Add format func option to log to allow newlines in per log entry
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Simplify rpc encode/decode messages to rpc.send/rcp.receive
* Make missing handlers message throw a warning
* Clean up formatting style in log
* Move all non-RPC loop messages to trace instead of debug
* Add format func option to log to allow newlines in per log entry
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(lsp): update lsp-handler signature in call_hierarchy (#15738)</title>
<updated>2021-09-26T17:25:17+00:00</updated>
<author>
<name>Mathias Fußenegger</name>
<email>mfussenegger@users.noreply.github.com</email>
</author>
<published>2021-09-21T22:05:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=27bac13be66946e2cb2912a44185d18b0f856a32'/>
<id>27bac13be66946e2cb2912a44185d18b0f856a32</id>
<content type='text'>
This fixes the handler signature and also prevents n+1 requests firing
if there are multiple clients.

(The first `prepareCallHierarchy` handler is called once per client,
each invocation used `buf_request` to make more requests using *all*
clients)</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fixes the handler signature and also prevents n+1 requests firing
if there are multiple clients.

(The first `prepareCallHierarchy` handler is called once per client,
each invocation used `buf_request` to make more requests using *all*
clients)</pre>
</div>
</content>
</entry>
<entry>
<title>fix(lsp): adapt codelens resolve to handler signature change (#15578)</title>
<updated>2021-09-26T17:25:17+00:00</updated>
<author>
<name>Mathias Fußenegger</name>
<email>mfussenegger@users.noreply.github.com</email>
</author>
<published>2021-09-06T15:30:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=d26d489e2e5986c8201af8e3e1e8b860adb57afc'/>
<id>d26d489e2e5986c8201af8e3e1e8b860adb57afc</id>
<content type='text'>
Follow up to https://github.com/neovim/neovim/pull/15504</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Follow up to https://github.com/neovim/neovim/pull/15504</pre>
</div>
</content>
</entry>
<entry>
<title>fix(lsp): update workspace/applyEdit handler signature (#15573)</title>
<updated>2021-09-26T17:25:17+00:00</updated>
<author>
<name>Jose Alvarez</name>
<email>j.alvarez11@icloud.com</email>
</author>
<published>2021-09-05T19:48:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=a6eab6e25e57c10baabc4c061fe6a9339614c8f4'/>
<id>a6eab6e25e57c10baabc4c061fe6a9339614c8f4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>feat(lsp)!: change handler signature #15504</title>
<updated>2021-09-26T17:25:17+00:00</updated>
<author>
<name>Michael Lingelbach</name>
<email>m.j.lbach@gmail.com</email>
</author>
<published>2021-09-05T17:27:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=cd8f6c5fb7858d8981fdfb2067bddb3eb86c13d0'/>
<id>cd8f6c5fb7858d8981fdfb2067bddb3eb86c13d0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>backport: fix(lsp): Ensure human readable errors are printed</title>
<updated>2021-09-16T13:37:20+00:00</updated>
<author>
<name>Mathias Fussenegger</name>
<email>f.mathias@zignar.net</email>
</author>
<published>2021-07-11T09:22:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=a265201307f6d7551518b67e16de68f5b9e2527c'/>
<id>a265201307f6d7551518b67e16de68f5b9e2527c</id>
<content type='text'>
`return err_message(tostring(err))` caused errors to be printed as
`table: 0x123456789` instead of showing the error code and error
message.

This also removes some `if err` blocks that never got called because at
the end of `handlers.lua` all the handlers are wrapped with logic that
adds generic error handling.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`return err_message(tostring(err))` caused errors to be printed as
`table: 0x123456789` instead of showing the error code and error
message.

This also removes some `if err` blocks that never got called because at
the end of `handlers.lua` all the handlers are wrapped with logic that
adds generic error handling.
</pre>
</div>
</content>
</entry>
<entry>
<title>backport: fix(lsp): Ensure users get feedback on references/symbols errors or empty results</title>
<updated>2021-09-16T13:36:49+00:00</updated>
<author>
<name>Mathias Fussenegger</name>
<email>f.mathias@zignar.net</email>
</author>
<published>2021-07-11T08:47:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=33000bd9cff3efe54c4ca14756008300d18ac07b'/>
<id>33000bd9cff3efe54c4ca14756008300d18ac07b</id>
<content type='text'>
Relates to https://github.com/neovim/neovim/issues/15050

Users should get some indication if there was an error or an empty
result.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Relates to https://github.com/neovim/neovim/issues/15050

Users should get some indication if there was an error or an empty
result.
</pre>
</div>
</content>
</entry>
<entry>
<title>backport: fix(lsp): correctly check for windows in lsp logger (#14954)</title>
<updated>2021-09-16T13:31:49+00:00</updated>
<author>
<name>Oliver Marriott</name>
<email>rktjmp@users.noreply.github.com</email>
</author>
<published>2021-07-10T18:11:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=9f73b7c214c679bd2d82d192751e70a6b6251d69'/>
<id>9f73b7c214c679bd2d82d192751e70a6b6251d69</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
