Asterisk is not recognized as valid function/cmdlet name character

Aperta
#200 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
45/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
powershell
Ambito
devtools

Direzione di ricerca

Start with the PowerShell examples function Get-A*A {} and Get-A*A, then inspect the syntax-highlighting rules and autocomplete behavior for function and cmdlet names. Reproduce the issue in VS Code and compare it with PowerShell itself and GitHub highlighting; done means the asterisk remains part of the name, uses the same color, and does not trigger an incorrect suggestion.

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

Descrizione

Environment
  • Editor and Version VS Code
  • Your primary theme: High Contrast Default
Issue Description

The character * is not recognized as part of a function/cmdlet name

Screenshots

Defining such a function...

In VSCode:
grafik
In PowerShell itself:
grafik

Calling such a function/cmdlet...

In VSCode:
grafik
In PowerShell itself:
grafik

To show that the semantics are wrong, too, here's an autocomplete popup:

grafik

Expected Behavior

The asterisk and the rest of the function name should be the same color and the asterisk should not interrupt the function name and cause suggestions to pop up all of a sudden.

Code Samples
function Get-A*A {}
Get-A*A

(GitHub highlighting is also wrong, here)

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.