foreach not scoped correctly after curly brace
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 42/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- powershell
- Ambito
- tooling
Direzione di ricerca
The issue names no repository file or test. Start by reproducing the PowerShell sample and inspecting the syntax scope assigned to where{...}.foreach{...}; compare it with the parenthesized form and the where method. Done means foreach receives a specific, consistent scope after a curly brace without regressing the existing highlighting.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
From @scriptingstudio in https://github.com/microsoft/vscode/issues/97404
Environment
- Editor and Version (VS Code, Atom, Sublime):
VS Code
Version: 1.46.0-insider (user setup) also happens on 1.45
Commit: 288852d8c26d797974bfb8aed06e1bff9b809223
Date: 2020-05-12T05:43:31.363Z
Electron: 7.2.4
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 10.0.19041 - Your primary theme: N/A
Issue Description
Powershell methods foreach and where are not highlighted after curly bracket. With parenthesis it works fine.
Example code:
@($group).where{$_.count -gt 1 -and $_.name}.foreach{...}
"where" is highlighted.
"foreach" is not highlighted and has a very general scope
Screenshots

Expected Behavior
The foreach should have a more specific scope.
Code Samples
@($group).where{$_.count -gt 1 -and $_.name}.foreach{...}
- 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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di PowerShell/EditorSyntax
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
PowerShell/EditorSyntax#224 · 2 commenti ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
PowerShell/EditorSyntax#222 · 2 commenti ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
PowerShell/EditorSyntax#221 · 2 commenti ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
PowerShell/EditorSyntax#220 · 2 commenti · 1 reazione ·
-
Issue-Bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
PowerShell/EditorSyntax#219 · 2 commenti ·
Tutte le issue di PowerShell/EditorSyntax
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
nearform/ag-grid-url-sync#160 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
idean3885/claude-ops-agent#521 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
0xMiden/bridge-portal#132 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
JuliusBrussee/caveman#1099 · 1 commento ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
newrelic-experimental/preflight#793 · 1 commento ·