Skip to content

Fix Tide behavior under VSCode shell integration#645

Open
snoack wants to merge 1 commit intoIlanCosman:mainfrom
snoack:vscode
Open

Fix Tide behavior under VSCode shell integration#645
snoack wants to merge 1 commit intoIlanCosman:mainfrom
snoack:vscode

Conversation

@snoack
Copy link
Copy Markdown

@snoack snoack commented Mar 22, 2026

Description

  • Preserve the real post-command status, pipestatus, and CMD_DURATION before VSCode prompt hooks mutate them.
  • Avoid showing idle time as cmd_duration on empty prompts.
  • Wrap the VSCode fish_prompt shim so Tide's trailing newline does not create an extra blank line before the cursor.
  • Hide Tide's status item by default in VSCode shell integration, where VSCode already shows command status.
  • Refresh VSCode's prompt markers after Ctrl+L to avoid sticky-command spacing glitches.

Motivation and Context

Closes #433

Screenshots (if appropriate)

How Has This Been Tested

  • I have tested using Linux.
  • I have tested using MacOS.

Checklist

  • I am ready to update the wiki accordingly.
  • I have updated the tests accordingly.

- preserve the real post-command status, pipestatus,
  and CMD_DURATION before VSCode prompt hooks mutate them.
- avoid showing idle time as cmd_duration on empty prompts.
- wrap the VSCode fish_prompt shim so Tide's trailing newline
  does not create an extra blank line before the cursor.
- hide Tide's status item by default in VSCode shell
  integration, where VSCode already shows command status.
- refresh VSCode's prompt markers after Ctrl+L
  to avoid sticky-command spacing glitches.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tide prompt is broken on latest vscode terminal

1 participant