test(vscode): update connection service stubs

This commit is contained in:
marius-kilocode
2026-06-01 10:57:39 +02:00
parent c44cd78668
commit d3f8a653a3
3 changed files with 3 additions and 0 deletions
@@ -69,6 +69,7 @@ function connection() {
getServerInfo: () => ({ port: 12345 }),
getServerConfig: () => ({ baseUrl: "http://127.0.0.1:12345", password: "test" }),
getConnectionState: () => "connected" as const,
getConnectionError: () => null,
resolveEventSessionId: (event: Event) => (event.type === "session.created" ? event.properties.info.id : undefined),
recordMessageSessionId: () => undefined,
notifyNotificationDismissed: () => undefined,
@@ -98,6 +98,7 @@ function createConnection(client: ReturnType<typeof createClient>) {
registerDirectoryProvider: () => () => undefined,
getServerInfo: () => ({ port: 12345 }),
getConnectionState: () => "connected" as const,
getConnectionError: () => null,
resolveEventSessionId: () => undefined,
recordMessageSessionId: () => undefined,
notifyNotificationDismissed: () => undefined,
@@ -91,6 +91,7 @@ function createConnection(client: ReturnType<typeof createClient>) {
getServerInfo: () => ({ port: 12345 }),
getServerConfig: () => ({ baseUrl: "http://127.0.0.1:12345", password: "test" }),
getConnectionState: () => "connected" as const,
getConnectionError: () => null,
resolveEventSessionId: () => undefined,
recordMessageSessionId: () => undefined,
notifyNotificationDismissed: () => undefined,