Change information
Commit message:
gopls/internal/server: don't pop up errors when resolving code actions
When codeAction/resolve fails to resolve edits, don't fail the resolve
operation: instead, simply return the codeaction (with its Command set),
and let the action fail when the client invokes the command.
This may result in redundant work, but avoids pop-ups on clients that
eagerly resolve the code actions (golang/go#75442).
Fixes golang/go#75442
Change-Id: I33df382dbbe02cd33aefdebe6bcb9102dd3deb3c
Files:
- M gopls/internal/server/code_action.go
- M gopls/internal/test/integration/fake/editor.go
- M gopls/internal/test/marker/doc.go
- M gopls/internal/test/marker/marker_test.go
- A gopls/internal/test/marker/testdata/codeaction/failedresolve.txt
Change size: M
Delta: 5 files changed, 188 insertions(+), 46 deletions(-)
Branch: refs/heads/master
Submit Requirements:
Code-Review: +2 by Alan Donovan
TryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI