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
I'm assuming you're using the recently contributed snippet for this. As a snippet it lacks the necessary smartness to expand its range to include other java elements. There's an existing PR, eclipse-jdtls/eclipse.jdt.ls#2727, in JDT-LS to provide a better "surround with try-catch" experience.
Environment
Steps To Reproduce
File f = new File("demo.txt");
Surround with: trycatch
in the action listCurrent Result
Currently it only can detect the selected word to do the surround action.
Expected Result
Expect that it can automatically detect the whole line code to surround.
The text was updated successfully, but these errors were encountered: