You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Handle fish ghost text suggestions in the prompt input model #233799
TylerLeonhardt was seeing something similar to this for pwsh where he had a inline suggestions with a custom style that did not include the dim/faint sequence which is how we detect pwsh ghost text atm. Fish may have the same problem?
Activity
[-]Support fish completions[/-][+]Handle fish ghost text suggestions in the prompt input model[/+]Tyriar commentedon Feb 3, 2025
The completions are working for me I think. It just falls over when ghost text is around as we don't detect it like with pwsh:
I don't expect this to be too difficult, just enabling the pwsh logic stuff in fish (if that's how it works).
Tyriar commentedon Feb 3, 2025
Investigate why this isn't being entered:
vscode/src/vs/platform/terminal/common/capabilities/commandDetection/promptInputModel.ts
Lines 281 to 284 in 0e0b962
Tyriar commentedon Feb 10, 2025
TylerLeonhardt was seeing something similar to this for pwsh where he had a inline suggestions with a custom style that did not include the dim/faint sequence which is how we detect pwsh ghost text atm. Fish may have the same problem?
meganrogge commentedon Feb 10, 2025
it never enters here, even when there's ghost text
vscode/src/vs/platform/terminal/common/capabilities/commandDetection/promptInputModel.ts
Line 441 in 5052d48
meganrogge commentedon Feb 10, 2025
cell.isDim()andcell.isItalic()are always false here - which makes sense given the ghost text is neither dimmed nor italicmeganrogge commentedon Feb 10, 2025
works for pwsh though
meganrogge commentedon Feb 10, 2025
I think we just need to check if the cell is >= cursor position for fish?
meganrogge commentedon Feb 10, 2025
That seems to work, though will fall apart when someone moves their cursor.
wip #233799
meganrogge commentedon Feb 11, 2025