Repository navigation
Quick info (Ctrl+G I, gi) shows what the name under the caret is - #595
Open
a-team-app[bot] wants to merge 3 commits into
Open
a-team-app[bot] wants to merge 3 commits into
a-team-app[bot] wants to merge 3 commits into
Conversation
Asks the file's language server for textDocument/hover and shows the answer in a box under the caret's line, or above it when there's more room there: the signature coloured with its grammar, then the doc comment wrapped. LspHover reads every shape the protocol allows. The box never takes focus. Its keys are a LayeredScope over whatever had them, so Esc, Enter and the scroll keys are its own, and any other key closes it and carries on to the editor. A click, scroll or resize that moves the caret's cell closes it on the next iteration. The scope stack gains Top so the host can tell whether the box's scope is the one receiving keys before popping it. The code-row colouring the chat used is now CodeBlockColours, shared by both. Closes #591 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Closes #591 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Open
13 tasks
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Quick info (
Ctrl+G I,gi, Go › Quick info, right after Go to definition) asks the file's language server what the name under the caret is and shows it in a box just under the line, or above it near the bottom of the editor: the signature coloured with the file's grammar, then the doc comment wrapped.Esccloses it and leaves the caret where it was.Entercloses it and goes to the definition, asgddoes.↑ ↓ PgUp PgDnscroll a long answer. Any other key closes it and goes on to the editor, so typingxinsertsx.Enter Go to definitionandEsc Close, and clicking one does what its key does. F1 while it's open lists its keys and leaves it open.Nothing to show here. While the server is loading or missing it says so exactly asgddoes, and the menu item is dimmed until the server is ready. If you press it twice quickly, only the second answer shows.Closes #591
Choices beyond the task
Enter Go to definition, thenEsc Close). The style guide's dialog rule puts them in that order, where the pitch mockup had them on the left and the other way round.Enter Definition, then justEnterandEsc, so the buttons never overflow the box.---), backslash escapes and the backticks around inline code are removed. Everything else shows as written.Notes for review
→, Enter, both button clicks and F1 all work; and at 58 and 70 columns the box still fits and draws cleanly. I didn't try it with a Python or TypeScript server, because none is installed here. The parser covers every hover shape those servers send (MarkedString, arrays of them,MarkupContent), and the tests cover each one.IInputScopeStackgainsTop.LayeredScopegains an optional callback for keys it passes on. The chat's code colouring moved intoCodeBlockColoursso the box can share it.a-team try tuicode 595
🤖 Generated with Claude Code