PT-160007578: Check if commands exist before registering in vscode

This commit is contained in:
nsingh
2018-08-28 16:46:46 +02:00
parent dbf72934e8
commit e125d1de75
5 changed files with 42 additions and 16 deletions

View File

@@ -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);

View File

@@ -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));
}