Get active profiles from the Boot LS

This commit is contained in:
aboyko
2024-04-05 19:17:17 -04:00
parent eb3d46d400
commit f52967d9f8
2 changed files with 4 additions and 1 deletions

View File

@@ -320,6 +320,9 @@ public class SpringProcessCommandHandler {
case "port": {
return CompletableFuture.completedFuture(data.getPort());
}
case "profiles": {
return CompletableFuture.completedFuture(data.getActiveProfiles());
}
default: {}
}
}

View File

@@ -75,7 +75,7 @@ interface LiveProcessDataQuery {
}
interface SimpleQuery extends LiveProcessDataQuery {
endpoint: "mappings" | "contextPath" | "port" | "properties";
endpoint: "mappings" | "contextPath" | "port" | "properties" | "profiles";
}
interface BeansQuery extends LiveProcessDataQuery {