summaryrefslogtreecommitdiff
path: root/packages/cli/src/zed-integration/zedIntegration.ts
diff options
context:
space:
mode:
authorTommaso Sciortino <[email protected]>2025-08-19 15:31:02 -0700
committerGitHub <[email protected]>2025-08-19 22:31:02 +0000
commit0cc2a1e7ef904294fff982a4d75bf098b5b262f7 (patch)
tree9508c375a0bc9e5e8189b4aaa107819b1033b16e /packages/cli/src/zed-integration/zedIntegration.ts
parent1244ec6954f5f46d51c64939fdd3648476047620 (diff)
Remove unnecessary promiuse usage. (#6585)
Diffstat (limited to 'packages/cli/src/zed-integration/zedIntegration.ts')
-rw-r--r--packages/cli/src/zed-integration/zedIntegration.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/cli/src/zed-integration/zedIntegration.ts b/packages/cli/src/zed-integration/zedIntegration.ts
index 51b1f170..9a10e1a8 100644
--- a/packages/cli/src/zed-integration/zedIntegration.ts
+++ b/packages/cli/src/zed-integration/zedIntegration.ts
@@ -10,7 +10,6 @@ import {
AuthType,
Config,
GeminiChat,
- ToolRegistry,
logToolCall,
ToolResult,
convertToFunctionResponse,
@@ -366,7 +365,7 @@ class Session {
return errorResponse(new Error('Missing function name'));
}
- const toolRegistry: ToolRegistry = await this.config.getToolRegistry();
+ const toolRegistry = this.config.getToolRegistry();
const tool = toolRegistry.getTool(fc.name as string);
if (!tool) {
@@ -531,7 +530,7 @@ class Session {
const contentLabelsForDisplay: string[] = [];
const ignoredPaths: string[] = [];
- const toolRegistry = await this.config.getToolRegistry();
+ const toolRegistry = this.config.getToolRegistry();
const readManyFilesTool = toolRegistry.getTool('read_many_files');
const globTool = toolRegistry.getTool('glob');