Stream: contributing

Topic: LSP WIP new features rename and find-references /inlay hints


view this post on Zulip Alf Richter (Aug 25 2026 at 13:50):

FYI I'm working with claude on some LSP features, hear some sneak peak:

view this post on Zulip Alf Richter (Aug 25 2026 at 17:06):

2/3 PRs are green in CI/CD Pipeline
image.png

#10944 (https://github.com/roc-lang/roc/pull/10944) │ Stop capping line tables at 4096 lines, failures with "The hosted runner lost communication with the server" after 47 minutes; "
image.png

@Eli Dowling or @Luke Boswell or @Anton , could one of you help or do the final review?

view this post on Zulip Anton (Aug 25 2026 at 17:24):

Yes, I will get started on #10946

view this post on Zulip Alf Richter (Aug 25 2026 at 17:26):

cool, FYI its stacked on #10945

view this post on Zulip Anton (Aug 25 2026 at 17:28):

Yeah, I just noticed :)
I will start with #10945

view this post on Zulip Alf Richter (Aug 25 2026 at 17:53):

Here an example without and with LSP inlay hints for inferred types:
image.png
image.png
Toggled via settings.json "inlay_hints"
image.png

view this post on Zulip Anton (Aug 25 2026 at 18:02):

I have reviewed 14 out of 20 files and will continue tomorrow

view this post on Zulip Alf Richter (Aug 26 2026 at 10:22):

@Anton I'll tackle the utf16/bytes from Ticket "# LSP: positions are byte offsets, not UTF-16 code units #10948" in #10945 too at the moment, and ping you when all pipelines are green again.

view this post on Zulip Alf Richter (Aug 26 2026 at 20:10):

@Anton thanks for the review, what are the next steps to get this merged, so we can continue with final one #10946 (#10944 is already merged)? I merged main again, all checks were green before.

view this post on Zulip Anton (Sep 01 2026 at 12:25):

I just came back from vacation @Alf Richter, I should be able to review PR#10946 in the coming days

view this post on Zulip Lukas Juhrich (Sep 03 2026 at 07:33):

@Alf Richter I also wanted to tackle a few LSP related things but didn't get any feedback as to whether it would be useful (and then other projects took precedence) – perhaps some of the things reported in #contributing > lsp: suggested improvements/refactors might come in handy?

I recall that the utf-16 issue was definitely in there as well.

view this post on Zulip Lukas Juhrich (Sep 03 2026 at 07:34):

In any case, cool to see that someone wants to drive LSP features forward!

view this post on Zulip Alf Richter (Sep 03 2026 at 09:42):

@Anton thanks for the review and merge, I have a new PR with two new code actions:

view this post on Zulip Alf Richter (Sep 03 2026 at 13:51):

new LSP actions New LSP actions — sneak peek:
1) annotate function or binding
image.png
image.png

view this post on Zulip Alf Richter (Sep 03 2026 at 13:51):

image.png
image.png

view this post on Zulip Alf Richter (Sep 03 2026 at 13:53):

2) generate test:
image.png
image.png

view this post on Zulip Alf Richter (Sep 03 2026 at 13:53):

FYI:

#    No test is offered for these three, each for its own reason:
#      identity  a type variable has no one literal that fits it
#      apply     an argument that is itself a function would have to be
#                written out, and this cannot invent one
#      answer    not a function, so there is no call to generate
#    The action stays away rather than writing something that looks like a
#    test and is not one.
identity : a -> a
identity = |x| x

apply : (I64 -> I64), I64 -> I64
apply = |f, n| f(n)

answer : I64
answer = 42

Last updated: Sep 03 2026 at 15:16 UTC