-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
21 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
919d686
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we keep the buildin location? I'm building a middleware on the client-side to add links to documentation when it's part of prelude, and the logic relies on the
/prelude/*.fut
stringdiku-dk/futhark-vscode@6b159ba
919d686
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, if you can use it for something. But I must admit I think it's useless noise to show the location on hover.
919d686
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, but I hope the link to the documentation site will make it useful, convenient to navigate to the corresponding page

919d686
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The "Definition" part doesn't have to be there, though. Extracting this information through parsing a string seems like the wrong approach.
919d686
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. I can construct the link to the documentation site in this line, no need for the client-side to get involved
futhark/src/Futhark/LSP/Tool.hs
Line 44 in 8bcecdd