Code action request from problems view includes additional diagnostics #161331
Labels
bug
Issue identified by VS Code Team member as probable bug
editor-code-actions
Editor inplace actions (Ctrl + .)
error-list
Problems view
help wanted
Issues identified as good community contribution opportunities
Milestone
Does this issue occur when all extensions are disabled?: No
Steps to Reproduce:
I would expect to see the code action just for that diagnostic, not all diagnostics in the same range. The LSP textDocument/codeAction request includes all of the diagnostics in that range as the
context
for the codeAction request, not just the selected one in the problems view.For example, the two diagnostics below have the same line. Getting the quick fixes for one diagnostic, will send a request with both diagnostics included in the context:
The text was updated successfully, but these errors were encountered: