Skip to content

Commit

Permalink
Fix target range for quickfix:surround with try/multi-catch
Browse files Browse the repository at this point in the history
Signed-off-by: Yan Zhang <[email protected]>
  • Loading branch information
Eskibear committed Sep 26, 2019
1 parent 9c3445d commit 8bc67d7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public static void addUncaughtExceptionProposals(IInvocationContext context, IPr
ICompilationUnit cu = context.getCompilationUnit();

CompilationUnit astRoot = context.getASTRoot();
ASTNode selectedNode = problem.getCoveringNode(astRoot);
ASTNode selectedNode = context.getCoveredNode();
if (selectedNode == null) {
return;
}
Expand Down

0 comments on commit 8bc67d7

Please sign in to comment.