Function Parameter Not its own TextMate Scope
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 55/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Stack tecnológico
- powershell
- Área
- tooling
Línea de trabajo
No repository files or tests are named. Reproduce the examples in VS Code, inspect the TextMate scopes before and after saving, and trace the PowerShell grammar entry point responsible for parameter tokens. Done means function parameters are scoped separately from their values and the highlighting remains consistent after saving.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest version
- Search the existing issues.
Steps to reproduce
- Open VS Code
- Open new un-saved PowerShell file
- Paste the following into the window:
$EventLog = "EventLog"
Get-Service -Name EventLog
Get-Service -Name 'EventLog'
Get-Service -Name "EventLog"
Get-Service -Name ('EventLog')
Get-Service -Name $EventLog
Get-Service -Name $($EventLog)
Get-Service -Name @($EventLog)
Get-Service -Name ${EventLog}
Get-Service -Name:$($EventLog)
Get-Service -Name:EventLog
Result:
- Save File anywhere
Results:
Expected behavior
On save the syntax highlighting will remain the same as the first screenshot.
Actual behavior
On saving the file the syntax highlighting does not display appropriately, see second screenshot
Error details
n/a
Environment data
Name Value
---- -----
PSVersion 7.5.4
PSEdition Core
GitCommitId 7.5.4
OS Microsoft Windows 10.0.26200
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Version
latest? Visual Studio Code Host Version 2025.4.0
Visuals
See above screenshots for visuals. Also below:
Parameter & Parameter Value Separated by a space " " or colon ":" are seen as a single token when using the "Developer: Inspect Editor Tokens and Scopes" feature
Where the others are seen as separate because of another character: ' " ( $ @
Ideally, a function parameter (dash followed by letters and then separated by specific characters) should be it's own TextMate Scope / token that can be customized separate from the rest
- Lenguaje dominante
- PowerShell
- Estrellas
- 151
- Forks
- 55
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de PowerShell/EditorSyntax
-
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
PowerShell/EditorSyntax#224 · 2 comentarios ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 48/100
PowerShell/EditorSyntax#222 · 2 comentarios ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
PowerShell/EditorSyntax#220 · 2 comentarios · 1 reacción ·
-
Issue-Bug
Dificultad 3/5 1-2 días Aptitud para principiantes 48/100
PowerShell/EditorSyntax#219 · 2 comentarios ·
-
Issue-Bug Needs: Triage :mag:
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
PowerShell/EditorSyntax#217 ·
Todos los issues de PowerShell/EditorSyntax
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
pastelsky/bundlephobia#1122 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
anthropics/skills#1811 · 1 comentario ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
CachyOS/distribution#587 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
datalayer/mcp-compose#42 ·
-
[Chore] Keep one viget-block-generator skill and replicate it, instead of four tracked copies Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100