-
Notifications
You must be signed in to change notification settings - Fork 185
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
Make Goto Diagnostic overlays consistent #2115
Conversation
I think I've addressed all comments. |
I've noticed that it doesn't look very nice if you open just a single file (without workspace folder): instead of the filename it will show "None" in the command palette input. But this is unrelated to this PR, it also happens on the "main" branch if you run "Goto Diagnostic in Project..." in single file mode. It is just more obvious with this PR. I think the bug is caused by the following: This is the function which defines the label: Lines 135 to 136 in 0267a1a
and it calls Lines 159 to 163 in 0267a1a
But the Lines 263 to 269 in 0267a1a
So we end up with I guess I can add a fix to this PR. |
At the moment, "Goto Diagnostic..." opens a slightly different overlay compared to invoking "Goto Diagnostic in Project..." and selecting a file. Doing the latter will show the filename in the command palette input and when pressing Backspace it will go back to the list of files, which is not the case for "Goto Diagnostic...".
This PR would make both of the commands to show a consistent overlay by adding the file preselected to the input field for "Goto Diagnostic...".
Feel free to discuss or reject if this implementation feels too dubious/hackish...