Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document links not rendering in editor despite being correctly returned from the language server #1492

Open
benjamin-t-santos opened this issue Jun 6, 2024 · 0 comments

Comments

@benjamin-t-santos
Copy link

We use document links in our language server to link statements in our program to external files.
These statements are linked to files according to a configuration file. The configuration file specifies the directories to search, so when the configuration file is modified, we want the document links to be updated.

After the configuration file is modified, the client sends a textDocument/documentLink request and receives a response back from the server. The response is correct and includes the new ranges, but these document links are not displayed in the file.
Screenshot 2024-06-06 at 10 48 25 AM

Screenshot 2024-06-06 at 10 49 37 AM Screenshot 2024-06-06 at 10 53 51 AM (I've tried to include the column/line number to show that the document links are not present at the ranges).

I notice that after I make an edit to the program (such as adding a space or deleting a character/undoing the deletion), the document links appear. But I do not understand why they are not appearing in the editor after the response is received.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant