Skip to content

Commit 93270e5

Browse files
committed
Remove string chatSessionId support in disableSessionAutoApproval
1 parent b0963a9 commit 93270e5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -543,8 +543,7 @@ CommandsRegistry.registerCommand(TerminalChatCommandId.OpenTerminalSettingsLink,
543543
}
544544
});
545545

546-
CommandsRegistry.registerCommand(TerminalChatCommandId.DisableSessionAutoApproval, async (accessor, chatSessionResource: URI | string) => {
546+
CommandsRegistry.registerCommand(TerminalChatCommandId.DisableSessionAutoApproval, async (accessor, chatSessionResource: URI) => {
547547
const terminalChatService = accessor.get(ITerminalChatService);
548-
const resource = typeof chatSessionResource === 'string' ? URI.parse(chatSessionResource) : chatSessionResource;
549-
terminalChatService.setChatSessionAutoApproval(resource, false);
548+
terminalChatService.setChatSessionAutoApproval(chatSessionResource, false);
550549
});

0 commit comments

Comments
 (0)