-
-
Notifications
You must be signed in to change notification settings - Fork 370
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
hls-notes-plugin: Initial implementation #4126
Conversation
The regex did not allow windows line endings in note definitions
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.
Hi, thank you for coming back for this :)
I am wondering, how expensive the note generation is on a huge code base such as GHC.
I am a little bit inclined to disable this plugin by default, to avoid performance regressions, but given that the rule is only triggered on a Goto Definition
request, it might be irrelevant.
Also, you should have to add the configuration for the notes plugin to the configuration integration tests: https://github.com/haskell/haskell-language-server/tree/master/test/testdata/schema and https://github.com/haskell/haskell-language-server/blob/master/test/functional/ConfigSchema.hs, I don't understand why the CI is green wthout that 0.o
I don't think we need to disable this by default because as you said the notes are only searched for when you do |
For the configuration, is that something that I also need to handle in the plugin itself? Or does the hls infrastructure take care of that? |
You should have to add entries to the respective json file, so that I don't forget to update the vscode config during the next release. But we check that in CI, so I don't understand what is going wrong right now. I am looking into it, but I think you are fine right now. |
You are good to go, I documented the bug at #4127 |
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.
LGTM
thanks :) |
Congrats, sorry it took so long :) |
Hello @jvanbruegge The new notes plugin seems too eager to interpret everything as a note. Would you have time to look into this and fix this behavior? |
I agree this should be changed, I'm on it. Have you mapped go-to-definition to ctrl? Also how do I join the matrix room? |
I didn't do any keybinding changes in vscode, Seems like ctrl+click is the default way in vscode to trigger "go to definition" How to join the matrix room: |
@jvanbruegge Just want to let you know, this plugin is awesome! It is awesome to explore a codebase using |
thanks :) |
For some reason I could not reopen the other pull request, so I have to open a new one (#3629). Sorry there were a lot of real live issues compounding a few days ago and closing this was just irrational.
In case you are still interested in this, I would still like to have this merged and would maintain it in the future.