File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -49,11 +49,6 @@ export interface IPromptDetectionResult {
49
49
50
50
/**
51
51
* Detects if the given text content appears to end with a common prompt pattern.
52
- * This is used as a heuristic to determine if a command has finished executing.
53
- *
54
- * The idea is to do basic regex checks after the initial timeout to extend the
55
- * timeout if it doesn't look like a common prompt format, giving commands more
56
- * time to complete before assuming they're done.
57
52
*/
58
53
export function detectsCommonPromptPattern ( cursorLine : string ) : IPromptDetectionResult {
59
54
if ( cursorLine . trim ( ) . length === 0 ) {
@@ -99,12 +94,9 @@ export function detectsCommonPromptPattern(cursorLine: string): IPromptDetection
99
94
}
100
95
101
96
/**
102
- * Enhanced version of waitForIdle that uses prompt detection heuristics.
103
- * After the initial timeout , checks if the terminal content looks like a common prompt.
97
+ * Enhanced version of { @link waitForIdle} that uses prompt detection heuristics. After the terminal
98
+ * idles for the specified period , checks if the terminal's cursor line looks like a common prompt.
104
99
* If not, extends the timeout to give the command more time to complete.
105
- *
106
- * This addresses the need for better heuristics around prompt characters for evaluating
107
- * no shell integration command finished state, as requested in the issue.
108
100
*/
109
101
export async function waitForIdleWithPromptHeuristics (
110
102
onData : Event < unknown > ,
You can’t perform that action at this time.
0 commit comments