SpringIndexElement serialization. Initial Structure view in VSCode
Signed-off-by: aboyko <alex.boyko@broadcom.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { commands, Uri } from "vscode";
|
||||
import { commands } from "vscode";
|
||||
import { Emitter, LanguageClient } from "vscode-languageclient/node";
|
||||
import {Bean, BeansParams, ExtensionAPI, SpringIndex} from "./api";
|
||||
import {Bean, BeansParams, ExtensionAPI} from "./api";
|
||||
import {
|
||||
LiveProcess,
|
||||
LiveProcessConnectedNotification,
|
||||
@@ -55,9 +55,6 @@ export class ApiManager {
|
||||
return await commands.executeCommand(COMMAND_LIVEDATA_REFRESH_METRICS, query);
|
||||
}
|
||||
|
||||
const COMMAND_BEANS = "sts/spring-boot/beans";
|
||||
const getBeans: (Uri) => Promise<Bean[]> = async (projectUri: Uri) => await commands.executeCommand(COMMAND_BEANS, projectUri.toString());
|
||||
|
||||
client.onNotification(LiveProcessConnectedNotification.type, (process: LiveProcess) => this.onDidLiveProcessConnectEmitter.fire(process));
|
||||
client.onNotification(LiveProcessDisconnectedNotification.type, (process: LiveProcess) => this.onDidLiveProcessDisconnectEmitter.fire(process));
|
||||
client.onNotification(LiveProcessUpdatedNotification.type, (process: LiveProcess) => this.onDidLiveProcessUpdateEmitter.fire(process));
|
||||
@@ -73,8 +70,7 @@ export class ApiManager {
|
||||
|
||||
const getSpringIndex = () => ({
|
||||
onSpringIndexUpdated,
|
||||
beans,
|
||||
getBeans
|
||||
beans
|
||||
})
|
||||
|
||||
this.api = {
|
||||
|
||||
Reference in New Issue
Block a user