<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vis-lspc, 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>Merge branch 'fix-doc-history' into 'main'</title>
<updated>2023-11-21T15:50:00+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>gitlab@muhq.space</email>
</author>
<published>2023-11-21T15:50:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/vis-lspc/commit/?id=418167354031ae75c55042574764745a7a825e8f'/>
<id>418167354031ae75c55042574764745a7a825e8f</id>
<content type='text'>
Fix lscp.open_file not actually adding to history

See merge request muhq/vis-lspc!45</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix lscp.open_file not actually adding to history

See merge request muhq/vis-lspc!45</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>increase thedefault style id</title>
<updated>2023-10-25T14:03:33+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fischer@muhq.space</email>
</author>
<published>2023-10-25T14:03:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/vis-lspc/commit/?id=754dad10d3a8434d0c23f919b592d76aa32ace46'/>
<id>754dad10d3a8434d0c23f919b592d76aa32ace46</id>
<content type='text'>
Using the new latex lexer from the upcoming vis release I noticed
that vis-lspc default style id 43 overrides the environment style
from the lexer.

To prevent id clashing use the highest allowed id for lexer styles,
which is 64 according to the enum defined in vis/ui.h.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Using the new latex lexer from the upcoming vis release I noticed
that vis-lspc default style id 43 overrides the environment style
from the lexer.

To prevent id clashing use the highest allowed id for lexer styles,
which is 64 according to the enum defined in vis/ui.h.
</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>improve language in the README</title>
<updated>2023-10-07T09:58:28+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fischer@muhq.space</email>
</author>
<published>2023-10-07T09:58:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/vis-lspc/commit/?id=020f6b2d674b1b4e70b847bd6b4eb2e67f6eb923'/>
<id>020f6b2d674b1b4e70b847bd6b4eb2e67f6eb923</id>
<content type='text'>
* fix typos
* wrap file or project names in code blocks
* drop the hint taht vis-lspc is in an early state
* s/json/JSON/
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* fix typos
* wrap file or project names in code blocks
* drop the hint taht vis-lspc is in an early state
* s/json/JSON/
</pre>
</div>
</content>
</entry>
</feed>
