PT-160007578: Check if commands exist before registering in vscode
This commit is contained in:
@@ -208,7 +208,7 @@ public class LiveHoverUtils {
|
||||
codeLens.setData(sb.toString());
|
||||
Command cmd = new Command();
|
||||
cmd.setTitle(sb.toString());
|
||||
cmd.setCommand("org.springframework.showHoverAtPosition");
|
||||
cmd.setCommand("sts.showHoverAtPosition");
|
||||
cmd.setArguments(ImmutableList.of(range.getStart()));
|
||||
codeLens.setCommand(cmd);
|
||||
|
||||
|
||||
@@ -244,7 +244,7 @@ public class RequestMappingHoverProvider implements HoverProvider {
|
||||
codeLens.setData(content);
|
||||
cmd.setTitle(content);
|
||||
|
||||
cmd.setCommand("springboot.open.url");
|
||||
cmd.setCommand("sts.open.url");
|
||||
cmd.setArguments(ImmutableList.of(content));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user