From fecfbd924ad1c22f0efb71e0e523a5e409a8b20a Mon Sep 17 00:00:00 2001 From: Andrew Pareles Date: Mon, 17 Feb 2025 00:07:33 -0800 Subject: [PATCH] error --- .../workbench/contrib/void/browser/chatThreadService.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/vs/workbench/contrib/void/browser/chatThreadService.ts b/src/vs/workbench/contrib/void/browser/chatThreadService.ts index 98aad294..ea435ed4 100644 --- a/src/vs/workbench/contrib/void/browser/chatThreadService.ts +++ b/src/vs/workbench/contrib/void/browser/chatThreadService.ts @@ -339,8 +339,8 @@ class ChatThreadService extends Disposable implements IChatThreadService { let toolResult: Awaited> try { toolResult = await this._toolsService.toolFns[toolName](tool.params) - } catch (e) { - this._setStreamState(threadId, { error: e }) + } catch (error) { + this._setStreamState(threadId, { error }) shouldContinue = false break } @@ -349,8 +349,8 @@ class ChatThreadService extends Disposable implements IChatThreadService { let toolResultStr: string try { toolResultStr = this._toolsService.toolResultToString[toolName](toolResult as any) // typescript is so bad it doesn't even couple the type of ToolResult with the type of the function being called here - } catch (e) { - this._setStreamState(threadId, { error: e }) + } catch (error) { + this._setStreamState(threadId, { error }) shouldContinue = false break }