Skip to content

Handle single character on line prompt terminators - #273390

Merged
Daniel Imms (Tyriar) merged 1 commit into
mainfrom
tyriar/224553
Oct 27, 2025
Merged

Daniel Imms (Tyriar) merged 1 commit into
mainfrom
tyriar/224553

Conversation

@Tyriar

Copy link
Copy Markdown
Contributor

This issue happened because using \u2b9e as a prompt character is not handled explicitly, unlike \u276f. The fix is to detect single character prompt terminators (excluding whitespace).

Fixes #224553

image

This issue happened because using \u2b9e as a prompt character is
not handled explicitly, unlike \u276f. The fix is to detect single
character prompt terminators (excluding whitespace).

Fixes #224553
@Tyriar Daniel Imms (Tyriar) added this to the October 2025 milestone Oct 26, 2025
@Tyriar Daniel Imms (Tyriar) self-assigned this Oct 26, 2025
Copilot AI review requested due to automatic review settings October 26, 2025 11:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes an issue where single-character prompt terminators (like \u2b9e) were not being handled correctly in shell integration. The fix adds special detection logic to treat single-character prompt lines as complete terminators, ensuring they are properly recognized during prompt detection.

Key Changes:

  • Enhanced prompt terminator detection to handle single-character prompts
  • Updated prompt matching logic to support exact equality checks alongside suffix matching

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/vs/platform/terminal/common/xterm/shellIntegrationAddon.ts Added logic to detect single-character prompt terminators by checking if trimmed prompt line length equals 1
src/vs/platform/terminal/common/capabilities/commandDetectionCapability.ts Updated prompt matching to support both exact equality and suffix matching for prompt terminators

@Tyriar
Daniel Imms (Tyriar) merged commit 36385de into main Oct 27, 2025
@Tyriar
Daniel Imms (Tyriar) deleted the tyriar/224553 branch October 27, 2025 13:29
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Dec 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

terminal integration proposal replaces the original input

3 participants