mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-08-30 17:14:40 +08:00
test(vscode): update connection service stubs
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user