LSP: link autocompletion broken #11

Closed kento.tngl.sh
Closed opened by and assigned to kento.tngl.sh

When editing via the LSP, link completion tokens trigger the random | sequential suggestion now (see ad10c9bff1f9977dd0e337bd414c2a537f5e971e). This had been fixed I thought...

Interestingly, going through the old commits, I can't find commit in the past few days where it works at all. But it was working for me yesterday. This suggests to me that the issue may be intermittent.

I bisected the issue and found the first bad commit:

4e7cfd5597176716d29b100cb6eec3da35409d05 is the first bad commit
commit 4e7cfd5597176716d29b100cb6eec3da35409d05 (HEAD)
Author: Kento Okura <kentookura@gmail.com>
Date:   Sun Aug 16 12:04:55 2026 +0200

    Filter docs trees from lsp handler ouptut

    Fix some links, and a bug that resulted in spurious broken link errors

 bin/forester/main.ml                     |  8 ++++----
 lib/compiler/Driver.ml                   |  4 +++-
 lib/compiler/State.ml                    | 13 +++++++------
 lib/language_server/Completion.ml        |  3 ++-
 lib/language_server/Forester_lsp.ml      |  5 +----
 lib/language_server/Util.ml              |  2 ++
 lib/language_server/Workspace_symbols.ml |  6 +++++-
 7 files changed, 24 insertions(+), 17 deletions(-)

Upon further investigation, I think this problem may occur only on the forester-notes.org forest, which makes sense given the change to Completion.ml in the above commit.

Sign up or Sign in to add to the discussion.