13 lines
350 B
TypeScript
13 lines
350 B
TypeScript
export type SessionRecord = {
|
|
sessionId: string;
|
|
workspaceRoot: string;
|
|
dispose(): Promise<void>;
|
|
};
|
|
|
|
export interface SessionRegistry<TSession extends SessionRecord = SessionRecord> {
|
|
create(): Promise<TSession>;
|
|
get(sessionId: string): TSession | undefined;
|
|
delete(sessionId: string): Promise<boolean>;
|
|
disposeAll(): Promise<void>;
|
|
}
|