<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vis-lspc/init.lua, branch apply-workspaceEdit-remember-cursor</title>
<subtitle>language server protocol client for the vis editor</subtitle>
<link rel='alternate' type='text/html' href='https://git.muhq.space/vis-lspc/'/>
<entry>
<title>restore the primary cursor position after a workspaceEdit</title>
<updated>2024-03-22T09:23:28+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fischer@muhq.space</email>
</author>
<published>2024-03-22T09:21:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/vis-lspc/commit/?id=e44ec3fa609fa7701de369939674a1ea46743ea8'/>
<id>e44ec3fa609fa7701de369939674a1ea46743ea8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix lscp.open_file not actually adding to history</title>
<updated>2023-11-21T12:58:37+00:00</updated>
<author>
<name>Michiel van den Heuvel</name>
<email>michielvdnheuvel@gmail.com</email>
</author>
<published>2023-11-21T12:58:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/vis-lspc/commit/?id=17e40a5be84b51fa004a985c004d3ff34e477662'/>
<id>17e40a5be84b51fa004a985c004d3ff34e477662</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix wandering empty diagnostic highlights</title>
<updated>2023-10-12T18:14:57+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fischer@muhq.space</email>
</author>
<published>2023-10-12T18:14:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/vis-lspc/commit/?id=ecd67870e578c061b06ecc4072477da5e9ea9f52'/>
<id>ecd67870e578c061b06ecc4072477da5e9ea9f52</id>
<content type='text'>
The last commit introduces support for highlighting empty selections
by properly calculating their vis ranges.
However File:content does return an empty string for empty ranges
and we can not check whether the diagnostic still applies to the same
position.

This is fixed by faking a one character range when receiving an
empty one.
Doing so we get a valid one-character content we can compare and
still have proper highlighting because we unconditionally decrement
the range end in highlight_diagnostics.

Fixes: 7099e56062861fc8dbb143e78447cce6bf886a97
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The last commit introduces support for highlighting empty selections
by properly calculating their vis ranges.
However File:content does return an empty string for empty ranges
and we can not check whether the diagnostic still applies to the same
position.

This is fixed by faking a one character range when receiving an
empty one.
Doing so we get a valid one-character content we can compare and
still have proper highlighting because we unconditionally decrement
the range end in highlight_diagnostics.

Fixes: 7099e56062861fc8dbb143e78447cce6bf886a97
</pre>
</div>
</content>
</entry>
<entry>
<title>fix diagnostic highlighting and message</title>
<updated>2023-10-12T16:52:19+00:00</updated>
<author>
<name>Thim Cederlund</name>
<email>thim@cederlund.de</email>
</author>
<published>2023-10-11T15:28:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/vis-lspc/commit/?id=7099e56062861fc8dbb143e78447cce6bf886a97'/>
<id>7099e56062861fc8dbb143e78447cce6bf886a97</id>
<content type='text'>
Some language servers report diagnostics with empty ranges, start and
end are at the same line and character, which currently results in
no highlighting at all.

Since the end of a LSP range is exclusive we always subtract 1 from
it which results in invalid ranges when the server has sent an empty one.
Introduce a check to fix this special case.

`textDocument/publishDiagnostics` doesn't always have a `code` field,
resulting in `diagnostic.code` being nil and so it is replaced with
`diagnostic` in those cases.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Some language servers report diagnostics with empty ranges, start and
end are at the same line and character, which currently results in
no highlighting at all.

Since the end of a LSP range is exclusive we always subtract 1 from
it which results in invalid ranges when the server has sent an empty one.
Introduce a check to fix this special case.

`textDocument/publishDiagnostics` doesn't always have a `code` field,
resulting in `diagnostic.code` being nil and so it is replaced with
`diagnostic` in those cases.
</pre>
</div>
</content>
</entry>
<entry>
<title>allow to specify the syntax to use for the diagnostics commands</title>
<updated>2023-10-12T16:50:28+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fischer@muhq.space</email>
</author>
<published>2023-10-08T08:38:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/vis-lspc/commit/?id=c91a9c94b1408a308a33acbe56e8eb9bcf86d197'/>
<id>c91a9c94b1408a308a33acbe56e8eb9bcf86d197</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>report if no diagnostics are available</title>
<updated>2023-10-12T16:50:20+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fischer@muhq.space</email>
</author>
<published>2023-10-08T08:18:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/vis-lspc/commit/?id=1d9b9603bb98a0cd0fc8240cbe0a7989bf785db0'/>
<id>1d9b9603bb98a0cd0fc8240cbe0a7989bf785db0</id>
<content type='text'>
Since the diagnostics table is created when we open the file
it will always be ~= nil.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since the diagnostics table is created when we open the file
it will always be ~= nil.
</pre>
</div>
</content>
</entry>
<entry>
<title>store diagnostics received for files not in the current window</title>
<updated>2023-10-12T16:50:09+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fischer@muhq.space</email>
</author>
<published>2023-10-08T08:02:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/vis-lspc/commit/?id=067ec7dd2d5006af72aa73a4fada5380da5c0126'/>
<id>067ec7dd2d5006af72aa73a4fada5380da5c0126</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>implement cycling between available diagnostics</title>
<updated>2023-10-07T08:35:01+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fischer@muhq.space</email>
</author>
<published>2023-10-07T08:35:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/vis-lspc/commit/?id=cb0153aa0f10259037dc7cdb69d75f64909657e1'/>
<id>cb0153aa0f10259037dc7cdb69d75f64909657e1</id>
<content type='text'>
This is implemented by the two new commands:
  * lspc-next-diagnostics - jump to the next available diagnostic
  * lspc-prev-diagnostics - jump to the previous available diagnostic
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is implemented by the two new commands:
  * lspc-next-diagnostics - jump to the next available diagnostic
  * lspc-prev-diagnostics - jump to the previous available diagnostic
</pre>
</div>
</content>
</entry>
<entry>
<title>fix diagnostics line highlighting</title>
<updated>2023-10-06T11:28:08+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fischer@muhq.space</email>
</author>
<published>2023-10-06T11:28:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/vis-lspc/commit/?id=59d46b01ce5985d51c7b761b948060aa8b11d35b'/>
<id>59d46b01ce5985d51c7b761b948060aa8b11d35b</id>
<content type='text'>
Range highlighting used the vis_range and line highlighting the LSP
range. Do not touch old code you no longer understand because you think
you are apparently smarter than your past self!

Fixes: efd5262f2c45d3289e482b1091d3c1d44cf67a42
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Range highlighting used the vis_range and line highlighting the LSP
range. Do not touch old code you no longer understand because you think
you are apparently smarter than your past self!

Fixes: efd5262f2c45d3289e482b1091d3c1d44cf67a42
</pre>
</div>
</content>
</entry>
<entry>
<title>use vis default formatting options</title>
<updated>2023-10-06T11:16:19+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fischer@muhq.space</email>
</author>
<published>2023-08-25T09:57:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/vis-lspc/commit/?id=15fbc713017dc6db6bdca7b16a2b9a3f4e201867'/>
<id>15fbc713017dc6db6bdca7b16a2b9a3f4e201867</id>
<content type='text'>
Since vis 0.9 the options are exposed via the vis.options table.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since vis 0.9 the options are exposed via the vis.options table.
</pre>
</div>
</content>
</entry>
</feed>
