microsoft / microsoft/vscode-java-pack
Feature request: Improve output console color scheme
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 352
- Fork
- 166
- Merge medio
- 17h 47m
- PR unite (30g)
- 32
Descrizione
For Spring Boot projects, the debug output console should have a nice coloring theme by default, which is not the case currently.
With default settings, all text is a single color which is not very readable.
There is a related StackOverflow question regarding this: https://stackoverflow.com/questions/62280290/provide-color-theme-to-the-java-process-console-in-the-terminal-of-vscode-whil
Currently, there are two (easy, but not scalable) ways how to achieve the desired coloring:
- Add
spring.output.ansi.enabled=ALWAYStoapplication.propertiesfile -> The issue with this approach is that it has to be set up for each project and it just adds unnecessary complexity to application.properties. - Add
"args": "--spring.output.ansi.enabled=ALWAYS"in launch.json -> This issue with this approach is that it also needs to be set up per-project basis and it is not so easy to share configuration as .vscode directory is not within version control scope.
Proposed Solution
I suggest a solution that VS Code pass "args": "--spring.output.ansi.enabled=ALWAYS" by default for Spring Boot projects. There should be an option to control it (on/off) maybe within settings.json
Before

After

@nickzhums Please review.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
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.
Direzione di ricerca
Inizia tracciando il modo in cui Java extension gestisce le Spring Boot launch configurations e come vengono assemblati gli argomenti da launch.json; confronta gli approcci application.properties e launch.json descritti qui. Definisci il comportamento di attivazione/disattivazione di settings.json, quindi verifica che un Spring Boot project riceva ANSI output per impostazione predefinita e che l’opzione possa disabilitarlo.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java, spring-boot, typescript, vscode
- Ambito
- developer-experience, tooling
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100