You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are some unwanted changes made by the "Add throws declaration" Quick fix action.
If you use the QuickFix action Add throws declarat... the java extension will remove the fragment name of the second Template specification and the escaped backslashes from the string.
Activity
fbricon commentedon Jan 21, 2026
Can't reproduce it in Eclipse IDE, meaning it's a bug in JDT.LS
fbricon commentedon Jan 21, 2026
When resolving the code action, the server returns
I suspect that, because it's a snippet, VS Code goes through another pass at unescaping backslashes and dollar signs, and ends up applying
fbricon commentedon Jan 21, 2026
I tried opening the same project in LazyVim and code action was properly applied there. So the problem is vscode client specific.
Gourav2580 commentedon Jan 25, 2026
/assign
Fix: escape backslashes and dollar signs in code action snippets (red…
amritamishra01 commentedon Mar 30, 2026
Hi, I’ve opened a PR with a client-side fix for the snippet escaping issue in resolved code action edits.
It escapes literal
\and$characters while preserving valid snippet placeholders.PR: #4378
Fix: escape backslashes and dollar signs in code action snippets (#4314)