Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Chained methods and properties on expressions

Aperta
#107 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
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 highlighting with the supplied PowerShell samples in Sublime and compare the regions assigned to Split(), Trim(), and the two .bar expressions. Trace the syntax rules handling chained methods and parenthesized expressions; done means each corresponding method or property receives the same region type.

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

Descrizione

bug scope-change

Moving from https://github.com/SublimeText/PowerShell/issues/68
And https://github.com/SublimeText/PowerShell/issues/77

Environment
  • Editor and Version (VS Code, Atom, Sublime): Sublime
  • Your primary theme: Default
Issue Description

There is inconsistency in the chained methods:

$users.Split(",").Trim()

Split and Trim get 2 different regions.

Same applies for

$foo.bar

vs

($foo).bar
Screenshots

image

Expected Behavior
  • Trim() and Split() should be the same region type
  • .bar in first and second case should be the same region type
Code Samples
$users.Split(",").Trim()

$foo.bar
($foo).bar
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.