sts-vscode: fix extension api implementation

Signed-off-by: Yan Zhang <yanzh@microsoft.com>
This commit is contained in:
Yan Zhang
2022-04-06 21:39:25 +08:00
committed by Alex Boyko
parent 37e495f20c
commit f7ec7590a9
2 changed files with 4 additions and 5 deletions

View File

@@ -205,10 +205,10 @@ public class SpringProcessCommandHandler {
private CompletableFuture<Object> get(ExecuteCommandParams params) {
String processKey = getProcessKey(params);
String dataKey = getArgumentByKey(params, "dataKey");
String endpoint = getArgumentByKey(params, "endpoint");
if (processKey != null) {
SpringProcessLiveData data = connectorService.getLiveData(processKey);
switch(dataKey) {
switch(endpoint) {
case "properties": {
return CompletableFuture.completedFuture(data.getLiveProperties());
}