PowerShell / PowerShell/vscode-powershell
Extension overwrites native colors of the theme
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 1.9k
- Forks
- 548
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Issue Description
So I updated to the newest version thinking it would solve the issue with theme colors being all green, and partially it did. But only partially. It's still green, just a bit less of it

This is native theme:

I get that there may be a difference between how theme highlights colors and how extension highlight colors but it should use theme colors, not just overwrite with predefined color set.
And to be honest it seems highlighting is better in theme, then by extension (ValueFromPipeline/Mandatory) gets additional highlighting. Same for $null.
Attached Logs
Follow the instructions in the README about
capturing and sending logs.
Environment Information
Visual Studio Code
| Name | Version |
|---|---|
| Operating System | Windows_NT x64 10.0.19042 |
| VSCode | 1.49.0 |
| PowerShell Extension Version | 2020.9.0 |
PowerShell Information
| Name | Value |
|---|---|
| PSVersion | 5.1.19041.1 |
| PSEdition | Desktop |
| PSCompatibleVersions | 1.0 2.0 3.0 4.0 5.0 5.1.19041.1 |
| BuildVersion | 10.0.19041.1 |
| CLRVersion | 4.0.30319.42000 |
| WSManStackVersion | 3.0 |
| PSRemotingProtocolVersion | 2.3 |
| SerializationVersion | 1.1.0.1 |
Visual Studio Code Extensions
Visual Studio Code Extensions(Click to Expand)
| Extension | Author | Version |
|---|---|---|
| better-toml | bungcip | 0.3.2 |
| errorlens | usernamehw | 3.2.1 |
| github-linker | gimenete | 0.2.3 |
| gitlens | eamodio | 10.2.2 |
| line-endings | steditor | 1.0.3 |
| markdown-all-in-one | yzhang | 3.3.0 |
| material-icon-theme | PKief | 4.3.0 |
| open-in-browser | techer | 2.0.0 |
| powershell-preview | ms-vscode | 2020.9.0 |
| project-manager | alefragnani | 11.3.0 |
| rainbow-brackets | 2gua | 0.0.6 |
| run-in-powershell | tobysmith568 | 1.1.0 |
| swdc-vscode | softwaredotcom | 2.3.11 |
| vscode-markdownlint | DavidAnson | 0.36.3 |
| vscode-toggle-quotes | BriteSnow | 0.3.3 |
| vscode-wakatime | WakaTime | 4.0.8 |
| vscode-yaml | redhat | 0.10.1 |
| xml | DotJoshJohnson | 2.5.1 |
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, das Farbverhalten in Visual Studio Code mit der PowerShell-Erweiterung und dem im Issue beschriebenen Theme zu reproduzieren. Lies die Hinweise zur Fehlerbehebung in docs/troubleshooting.md, falls Logs benötigt werden. Als erledigt gilt die Aufgabe, wenn die nativen Theme-Farben erhalten bleiben und die PowerShell-spezifische Hervorhebung, einschließlich Parameterattributen und $null, weiterhin funktioniert.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- powershell, typescript, vscode
- Bereich
- devtools, tooling
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100