Skip to content
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

In VSCode provide quickfix relevant to the position of the cursor #7353

Merged
merged 1 commit into from May 15, 2024

Conversation

Achal1607
Copy link
Contributor

@Achal1607 Achal1607 commented May 3, 2024

Currently, all the quickfix calculated appears in the VS code which may not be related to the current cursor position as well.
So, if we add a condition that it should provide quick fixes for the current line only then it would provide quickfixes with better context.

Examples:

Example-1:
As seen in the below image before this fix all the hints are shown irrespective of the line context after this only relevant to the current line hints are provided

Before this fix:
Screenshot 2024-05-03 at 2 24 24 PM

After this fix:
Screenshot 2024-05-03 at 2 26 41 PM

Example-2
In this example, a false hint appears since context of the line is not provided, the hint of test() method is shown in test1() method.

Before this fix:
Screenshot 2024-05-03 at 2 25 41 PM

After this fix:
Screenshot 2024-05-03 at 2 26 22 PM

For more info:
oracle/javavscode#59

Signed-off-by: Achal Talati <achal.talati@oracle.com>
@mbien mbien requested review from dbalek, lahodaj and sdedic and removed request for dbalek and lahodaj May 3, 2024 15:39
@mbien mbien added LSP [ci] enable Language Server Protocol tests VSCode Extension [ci] enable VSCode Extension tests labels May 3, 2024
@mbien mbien added this to the NB23 milestone May 3, 2024
@apache apache locked and limited conversation to collaborators May 3, 2024
@apache apache unlocked this conversation May 3, 2024
@lahodaj lahodaj merged commit 00a4a7a into apache:master May 15, 2024
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LSP [ci] enable Language Server Protocol tests VSCode Extension [ci] enable VSCode Extension tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants