debugger: Process ANSI color escape codes in console (#32817)
- [x] foreground highlights - [x] background highlights - [x] advertise support in DAP capabilities Closes #31372 Release Notes: - Debugger Beta: added basic support for highlighting in the console based on ANSI escape codes.
This commit is contained in:
parent
1f457169ba
commit
ffc6218349
23 changed files with 558 additions and 234 deletions
|
@ -1350,11 +1350,18 @@ impl InlineAssistant {
|
|||
editor.clear_highlights::<InlineAssist>(cx);
|
||||
} else {
|
||||
editor.highlight_text::<InlineAssist>(
|
||||
foreground_ranges,
|
||||
HighlightStyle {
|
||||
fade_out: Some(0.6),
|
||||
..Default::default()
|
||||
},
|
||||
foreground_ranges
|
||||
.into_iter()
|
||||
.map(|range| {
|
||||
(
|
||||
range,
|
||||
HighlightStyle {
|
||||
fade_out: Some(0.6),
|
||||
..Default::default()
|
||||
},
|
||||
)
|
||||
})
|
||||
.collect(),
|
||||
cx,
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue