Add 'listConnectedProcesses' to public api

This commit is contained in:
Kris De Volder
2022-04-06 13:37:09 -07:00
parent 93bc0504d2
commit 08df5125a4
3 changed files with 25 additions and 1 deletions

View File

@@ -19,6 +19,11 @@ export class ApiManager {
return await commands.executeCommand(COMMAND_LIVEDATA_GET, query);
}
const COMMAND_LIVEDATA_LIST_CONNECTED = "sts/livedata/listConnected"
const listConnectedProcesses = async () : Promise<string[]> => {
return await commands.executeCommand(COMMAND_LIVEDATA_LIST_CONNECTED);
}
client.onNotification(LiveProcessConnectedNotification.type, (processKey: string) => this.onDidLiveProcessConnectEmitter.fire(processKey));
client.onNotification(LiveProcessDisconnectedNotification.type, (processKey: string) => this.onDidLiveProcessDisconnectEmitter.fire(processKey));
client.onNotification(LiveProcessUpdatedNotification.type, (processKey: string) => this.onDidLiveProcessUpdateEmitter.fire(processKey));
@@ -28,7 +33,8 @@ export class ApiManager {
onDidLiveProcessConnect,
onDidLiveProcessDisconnect,
onDidLiveProcessUpdate,
getLiveProcessData
getLiveProcessData,
listConnectedProcesses,
};
}
}