Skip to content

Commit a21b3e7

Browse files
authored
Merge pull request microsoft#210776 from microsoft/tyriar/210773
Make bash window prompt adjuster more strict
2 parents de1b891 + 4b93f8a commit a21b3e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,7 @@ class WindowsPtyHeuristics extends Disposable {
950950
}
951951

952952
// Bash Prompt
953-
const bashPrompt = lineText.match(/^(?<prompt>.*\$)/)?.groups?.prompt;
953+
const bashPrompt = lineText.match(/^(?<prompt>\$)/)?.groups?.prompt;
954954
if (bashPrompt) {
955955
const adjustedPrompt = this._adjustPrompt(bashPrompt, lineText, '$');
956956
if (adjustedPrompt) {

0 commit comments

Comments
 (0)