Selection styling isn't cleared after running command

Aperta
#3,758 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
csharp
Ambito
cli

Direzione di ricerca

Start by reproducing the selection behavior in a PSReadLine terminal on Windows and Linux, then trace the command execution and selection-rendering paths. Done means pressing Enter after selecting part or all of a command executes it and removes the selection styling on both platforms.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Issue-Bug Needs-Triage :mag:
Prerequisites
Steps to reproduce
  1. Open a new PowerShell terminal with (pwsh.exe) or without a profile (pwsh.exe -NoProfile).
  2. Write any command, for example cd .
  3. Select all or part of the command, for example with Ctrl+A or Shift+←.
  4. Run the command with Enter.
Expected behavior
The command is deselected and executed.
Actual behavior
The command is executed, but retains the selection styling.
Error details

No response

Environment data
Reproducible both on Windows and Ubuntu in latest stable and latest preview releases, for example these two environments:

Name                           Value
----                           -----
PSVersion                      7.3.0-preview.4
PSEdition                      Core
GitCommitId                    7.3.0-preview.4
OS                             Microsoft Windows 10.0.19044
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Name                           Value
----                           -----
PSVersion                      7.2.4
PSEdition                      Core
GitCommitId                    7.2.4
OS                             Linux 5.10.102.1-microsoft-standard-WSL2 PowerShell/PowerShell#1 SMP Wed Mar 2 00:30:59 UTC 2022
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
Visuals

Typing out a command in PowerShell, selecting it, running it, and seeing the command still be styled as if it was selected

Lingua principale
C#
Stelle
4.4k
Fork
341
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di PowerShell/PSReadLine

Tutte le issue di PowerShell/PSReadLine

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.