You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
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
Implements a new command, "Show Parameter Hint".
Shows the parameters of a function and bolds the hint where the cursor is located. Automatically shows a parameter hint when a function is selection from the code hints dialog.
Current limitations:
1. no automatic parameter hint for selected hints that are "guesses".
2. no hint of record type annotations (Tern issue #207)
3. problem with optionals hints (fixed in latest Tern, issue #208)
4. Array. annotation shown as Array. (needs investigation).
The reason will be displayed to describe this comment to others. Learn more.
We want to use "functionOffset" because "offset" can be relative to a portion of the, not the top of the file. It's a bug for "functionOffset" to be null.
The reason will be displayed to describe this comment to others. Learn more.
We need more padding, at least 3px to the left and right of the hint so that text does not touch or too close to the border. Currently, it is harder to see the square brackets that denotes the optional parameter.
… Infer.expressionType() as suggested by marijn. The problem with this fix is it requires a "full" text update with the parameter hint request. Suggested a possible solution in the issue.
The quality of the hints has been much improved and record type annotations can be hinted correctly.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
None yet
2 participants
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.
Implements a new command, "Show Parameter Hint".
Shows the parameters of a function and bolds the hint where the cursor is located. Automatically shows a parameter hint when a function is selection from the code hints dialog.
Current limitations:
1. no automatic parameter hint for selected hints that are "guesses".
2. no hint of record type annotations (Tern issue #207)
3. problem with optionals hints (fixed in latest Tern, issue #208)
4. Array. annotation shown as Array. (needs investigation).