Files
spring-tools/vscode-extensions/vscode-spring-boot/lib/notification.ts
Kris De Volder 006cbd0721 Refine api for connected process listeners
Events now include some extra information instead of just processKey.
2022-05-09 16:12:59 -07:00

31 lines
854 B
TypeScript

import { NotificationType } from "vscode-languageclient";
/**
* Common information provided by all live process notifications, for all types
* of events and for all types of processes.
*/
export interface LiveProcess {
type: string;
processKey: string;
processName: string;
}
/**
* Specialized interface for type 'local' LiveProcess.
*/
export interface LocalLiveProcess extends LiveProcess {
type: "local"
pid: string
}
export namespace LiveProcessConnectedNotification {
export const type = new NotificationType<LiveProcess>('sts/liveprocess/connected');
}
export namespace LiveProcessDisconnectedNotification {
export const type = new NotificationType<LiveProcess>('sts/liveprocess/disconnected');
}
export namespace LiveProcessUpdatedNotification {
export const type = new NotificationType<LiveProcess>('sts/liveprocess/updated');
}