We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3f3359 commit d6626fbCopy full SHA for d6626fb
1 file changed
src/features/terminal/utils.ts
@@ -69,6 +69,10 @@ export async function waitForShellIntegration(terminal: Terminal): Promise<boole
69
70
// Detects if the given text content appears to end with a common prompt pattern.
71
function detectsCommonPromptPattern(terminalData: string): boolean {
72
+ if (terminalData.trim().length === 0) {
73
+ return false;
74
+ }
75
+
76
const sanitizedTerminalData = removeAnsiEscapeCodes(terminalData);
77
// PowerShell prompt: PS C:\> or similar patterns
78
if (/PS\s+[A-Z]:\\.*>\s*$/.test(sanitizedTerminalData)) {
0 commit comments