netbeans icon indicating copy to clipboard operation
netbeans copied to clipboard

In VSCode provide quickfix relevant to the position of the cursor

Open Achal1607 opened this issue 9 months ago • 0 comments

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: https://github.com/oracle/javavscode/issues/59

Achal1607 avatar May 03 '24 09:05 Achal1607