Skip to content

Commit

Permalink
improv: do not unnecessarily retry
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasz-stefaniak committed Dec 12, 2024
1 parent 1566adc commit 76bf558
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions extensions/vscode/src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -472,10 +472,12 @@ const getCommandsMap: (
const historyLength = await sidebar.webviewProtocol.request(
"getWebviewHistoryLength",
undefined,
false,
);
const isContinueInputFocused = await sidebar.webviewProtocol.request(
"isContinueInputFocused",
undefined,
false,
);

if (isContinueInputFocused) {
Expand All @@ -485,13 +487,15 @@ const getCommandsMap: (
void sidebar.webviewProtocol?.request(
"focusContinueInputWithNewSession",
undefined,
false,
);
}
} else {
focusGUI();
sidebar.webviewProtocol?.request(
"focusContinueInputWithNewSession",
undefined,
false,
);
void addHighlightedCodeToContext(sidebar.webviewProtocol);
}
Expand Down

0 comments on commit 76bf558

Please sign in to comment.