Inline code becomes unreadable in VS Code high-contrast themes
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 63/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- css, typescript, vscode
- Ambito
- accessibility, frontend
Direzione di ricerca
Inizia individuando il renderer Markdown e i relativi stili del codice in linea, poi verifica come si comportano con i temi Dark High Contrast e Light High Contrast di VS Code. Riproduci la visualizzazione nero su nero con una risposta dell’assistente che contenga un identificatore in linea, come Math.Clamp. Il risultato è raggiunto quando il codice in linea rimane leggibile in entrambi i temi ad alto contrasto e i temi standard continuano a funzionare.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Description
When using the Continue extension for VS Code with the built-in high-contrast color themes, inline code in assistant responses can become unreadable because the text foreground and background colors do not have sufficient contrast.
This occurs with both Dark High Contrast and Light High Contrast. Standard dark and light themes appear to work correctly.
For example, in the following assistant response:
If this is a utility function used frequently in a game engine or math library: Go with the Math.Clamp version (Option 2) if you want it as tight as...
The Math.Clamp identifier is rendered in black against a black background, while the surrounding text is visible.
Steps to reproduce
Open VS Code with the Continue extension installed.
Set the color theme to Dark High Contrast or Light High Contrast.
Ask Continue a question that produces an answer containing inline code identifiers, such as Math.Clamp.
Inspect the rendered assistant response.
Expected behavior
Inline code and identifiers should remain readable in all supported VS Code themes, including both high-contrast themes. Foreground and background colors should be selected together to maintain sufficient contrast.
Actual behavior
Some inline code identifiers are rendered in a foreground color that matches or closely resembles their background, making them difficult or impossible to read.
Possible cause
The issue may be related to the Markdown renderer's CSS for inline code elements. If the renderer overrides the code background without explicitly setting a compatible foreground color, VS Code's high-contrast theme defaults may produce an unreadable combination.
A potential fix would be to use appropriate VS Code theme variables for both foreground and background colors, with accessible fallbacks.
Environment
Operating sy
em: Linux (Fedora)
Editor: Visual Studio Code
Extension: Continue
Affected themes: Dark High Contrast and Light High Contrast
Continue and VS Code versions: Not yet recorded
The issue appears to be specific to high-contrast themes rather than the model generating the response.
- Lingua principale
- TypeScript
- Stelle
- 36.3k
- Fork
- 5.5k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi 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 continuedev/continue
-
create_new_file writes a JSON file on one line when the model sends its contents as a JSON valueForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
continuedev/continue#13363 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 66/100
continuedev/continue#13352 ·
-
fetch: SSE ping comments silently drop data in the same chunkForse già presa @fhgffy l’ha presa 21 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
continuedev/continue#13347 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
continuedev/continue#13291 ·
-
Ollama provider drops `tools` after the first tool call, breaking multi-step agent loopsForse già presa @dvd233 l’ha presa 44 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
continuedev/continue#13254 · 2 commenti ·
Tutte le issue di continuedev/continue
Issue simili
-
e2e-failure ready-to-code
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
redhat-developer/rhdh-plugin-export-overlays#4580 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
devdotfast/whiteboard#1415 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
area/sessions comp/desktop desktop/sessions P2 type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
NousResearch/hermes-agent#145383 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement p2 setup
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
vercel/eve#5419 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno