-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
TUI / GUI tooltip with content from ALEHover #1556
Merged
+75
−31
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
c6a45b1
Guard the ballooneval settings
gagbo 288c791
Mark main objectives to do to get nice Hover
gagbo d8c7a86
Make tweaks to make the tooltip work - See " XXX: comments
gagbo a86d494
Guard balloon_show call
gagbo d5bbb5e
Use return instead of finish for functions
gagbo f4ab2b8
ale#hover#show : Add optional arguments to specify arbtirary position
gagbo 90c9a64
ale#ballon#Disable : Remove feature guards
gagbo daed3e3
ale#balloon : Show 'ALEHover' output on balloon if no diagnostic found
gagbo c41e062
ale#hover#HandleLSPResponse : remove the check for cursor position
gagbo 284ec91
ale#balloon#MessageForPos : Change the return of balloonexpr
gagbo 0ca9747
ale#hover#Response : Feature guard balloon_show calls
gagbo d5ba722
ale#hover : always display 'Hover' information in messages
gagbo 159a371
Merge remote-tracking branch 'upstream/master' into balloon_ALEHover
gagbo 4a49a05
Merge remote-tracking branch 'upstream/master' into balloon_ALEHover
gagbo f22e7a9
{LSP,TS}Response : use only variables from the Response
gagbo 577dad2
hover#ShowDetails : fix an issue where not having focus broke balloons
gagbo e25b763
{LSP,TS}Response : Remove redundant checks for balloon_show call
gagbo d8ac705
balloonexpr? : Add a flag to separate hover#Show() calls
gagbo e826b8b
ale#hover#hover_map : Protect accesses to hover_map
gagbo 7156ad4
Raise timeout to try to get Appveyor happy
gagbo 1cbc3d4
Merge remote-tracking branch 'upstream/master' into balloon_ALEHover
gagbo 32c50d4
Review : Fix comments
gagbo 273ed54
Review : pass the optional argument 'called_from_balloonexpr' in a Dict
gagbo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
We'll need to think about the meaning of the
set_balloons
setting. I guess it makes sense how you've done it here. I doubt many people really look at the balloons for the error messages at the moment.I say we should do it how you've done it here, and update the documentation to say that the option also enables hover information for LSP and tsserver.
I might update the tsserver stuff myself, or you can give it a go if you want. If you install TypeScript into
node_modules
for a project, it should be pretty easy to get it runningtsserver
comes with TypeScript.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.
I assumed that the
ale#hover
callbacks were only called byale#hover#Show
, and therefore the value of set_ballons in this context is only relevant for the Hover information to begin with. I think this specific part of the code is not related to the actual design decision, it's really just a sanity check on what the user asked for relatively to balloons before we make it appear.The part that makes the meaning of
set_balloons
matter in a "hover vs diagnostics" way is inale#balloon#MessageForPos
(where I decided that if diagnostics are found, show them and don't even try to get hover information for the position).