'select' and 'sort' aliases not highlighted.

Aperta
#39 1 commento 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

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

Direzione di ricerca

Start by reproducing the PowerShell snippets from the issue in a supported editor and compare highlighting for the aliases where, sort, and select with Where-Object, Sort-Object, and Select-Object. Done means aliases receive consistent highlighting and all Verb-xxx commands are highlighted consistently, including related keywords identified during investigation.

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

Descrizione

bug

In the following snippet

Get-AzureVMImage 
| where ImageFamily -eq $imageFamily
| sort PublishedDate -Descending 
| select -ExpandProperty ImageName -First 1 

the aliases sort and select are not highlighted like the where alias, besides representing the same type of filter/alias.

When expanding the snippet to

Get-AzureVMImage `
| Where-Object ImageFamily -eq $imageFamily `
| Sort-Object PublishedDate -Descending `
| Select-Object -ExpandProperty ImageName -First 1

Where of Where-Object will be highlighted as keyword, Sort-Object won't be highlighted and Select-Object will be highlighted as command.

Expected behavior:

  • all alias should be highlighted the same way.
  • all commands (Verb-xxx) should be highlighted the same way.

Note: there might be other keywords that are effected by this issue.

Lingua principale
PowerShell
Stelle
151
Fork
55
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/EditorSyntax

Tutte le issue di PowerShell/EditorSyntax

Issue simili

Altre issue su DevTools

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.