Skip to content

Commit 0f6d665

Browse files
authored
rm length conditional from get output match (microsoft#162225)
fix 162211
1 parent ae526a1 commit 0f6d665

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/vs/platform/terminal/common/capabilities/commandDetectionCapability.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -657,9 +657,7 @@ export function getOutputMatchForCommand(executedMarker: IMarker | undefined, en
657657
if (startLine === endLine) {
658658
return undefined;
659659
}
660-
if (outputMatcher?.length && (endLine - startLine) < outputMatcher.length) {
661-
return undefined;
662-
}
660+
663661
let line: string | undefined;
664662
if (outputMatcher?.anchor === 'bottom') {
665663
for (let i = endLine - (outputMatcher.offset || 0); i >= startLine; i--) {

0 commit comments

Comments
 (0)