Skip to content
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

Add support for Surround with TryCatch for Runtime Exceptions #3103

Closed
gayanper opened this issue May 13, 2023 · 0 comments · Fixed by #3104
Closed

Add support for Surround with TryCatch for Runtime Exceptions #3103

gayanper opened this issue May 13, 2023 · 0 comments · Fixed by #3104
Milestone

Comments

@gayanper
Copy link
Contributor

Take the following code example and try to invoke Surround with Snippet, I would expect try catch snippet which will allow me to select the Exception types provided by jdt.ls which are thrown by the foo() method according to jdt.ls completion rules.

public class App {

  public void foo() throws IllegalStateException {
  }

  public static void main(String[] args) {
     foo();
  }
Environment
  • Operating System: Any
  • JDK version: Any
  • Visual Studio Code version: Any
  • Java extension version: Any
gayanper added a commit to gayanper/vscode-java that referenced this issue May 13, 2023
Signed-off-by: Gayan Perera <gayanper@gmail.com>
gayanper added a commit to gayanper/vscode-java that referenced this issue Jun 2, 2023
Signed-off-by: Gayan Perera <gayanper@gmail.com>
@rgrunber rgrunber linked a pull request Jun 5, 2023 that will close this issue
@rgrunber rgrunber added this to the End June 2023 milestone Jun 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants