Repository navigation
Scripting terminal: idContext.ops completion and signature hints - #96
Merged
Merged
Conversation
Coverage Report for CI Build 39205496703Coverage decreased (-0.8%) to 44.72%Details
Uncovered ChangesNo uncovered changes found. Coverage Regressions599 previously-covered lines in 4 files lost coverage. Coverage Stats
💛 - Coveralls |
Typing after idContext.ops. now shows the matching global operators with their signatures. Up and Down select one, Tab or Enter inserts it, and Escape closes the list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018MRyTdV3fSV5Q5NPGep4q9
While the cursor is inside the arguments of an idContext.ops call, its argument and output types are shown above the line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018MRyTdV3fSV5Q5NPGep4q9
rubensworks
force-pushed
the
terminal-ux-clean/10-last-value
branch
from
October 19, 2026 05:37
a7b646b to
ad76d8b
Compare
rubensworks
force-pushed
the
terminal-ux-clean/11-completion
branch
from
October 19, 2026 05:37
b7bd33a to
77d5d2b
Compare
This was referenced Oct 19, 2026
Base automatically changed from
terminal-ux-clean/10-last-value
to
master-1.21-lts
October 20, 2026 17:03
Completions could only be chosen with the keyboard. Clicking one now inserts it, and scrolling on the list moves through it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018MRyTdV3fSV5Q5NPGep4q9
Types in the completion list and signature hint were plain text. They are now shown in the colors of their value types, as in tooltips, on a dark background those colors are made for, with a neutral selection. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018MRyTdV3fSV5Q5NPGep4q9
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.
Stacked on #95. There are four standalone commits:
idContext.ops. Typing afteridContext.ops.shows the matching global operators, with their signatures in the player's language, for examplenumberMax (Number, Number): Number.name(, and Escape closes the list. Escape closes the list before it would leave the enlarged editor or close the screen.idContext.ops.x(call, including nested calls,x(Types): Outputis shown above the line, like parameter info in IntelliJ and VS Code.Not included: completion of methods on values (
item.). Scripts carry no static type information, so the receiver type is unknown, and listing every method of every value type would be mostly wrong suggestions.The logic is in
JavaScriptCompletions, with unit tests, and is exposed throughILanguageHandler.getCompletionsandgetSignatureHint(both default to null). Signatures are built once fromOperators.REGISTRY.Validation:
idContext.ops.itemstandnumberm; Tab, and clicking an entry, both insert it; scrolling on the list moves the selection; the hint showsnumberMax(Number, Number): Numberwith colored types.buildandrunGameTestServer(25/25) pass.🤖 Generated with Claude Code
https://claude.ai/code/session_018MRyTdV3fSV5Q5NPGep4q9