Skip to content

Visual Studio Code, rebuilt in Rust

Rust

fix(languageStatus): hover codicons at the hover font size, status bar item hover backgrounds

rokartur1bb4c4646975
diff --git a/README.md b/README.md
index 6bfe583da75..a0822ad02f4 100644
--- a/README.md
+++ b/README.md
@@ -11,8 +11,8 @@ Coverage of VS Code 1.147.0, from [port/ledger.md](port/ledger.md) (584 rows). V
```mermaid
pie showData
- "verified" : 417
- "ported" : 13
+ "verified" : 418
+ "ported" : 12
"removed" : 126
"n/a" : 28
```
@@ -20,7 +20,7 @@ pie showData
| area | verified | ported | removed | n/a | verified of in scope |
|---|---:|---:|---:|---:|---|
| src/vs/platform | 68 | 1 | 30 | 13 | `████████████████████ 99%` |
-| workbench contribution | 65 | 3 | 30 | 3 | `███████████████████░ 96%` |
+| workbench contribution | 66 | 2 | 30 | 3 | `███████████████████░ 97%` |
| built-in extension | 88 | 1 | 6 | 0 | `████████████████████ 99%` |
| MainThread* shape (Rust side) | 58 | 1 | 30 | 0 | `████████████████████ 98%` |
| workbench service | 60 | 5 | 23 | 7 | `██████████████████░░ 92%` |
@@ -31,7 +31,7 @@ pie showData
| src/vs/editor | 0 | 2 | 1 | 1 | `░░░░░░░░░░░░░░░░░░░░ 0%` |
| src/vs/base | 0 | 0 | 2 | 3 | `████████████████████ 100%` |
| port feature | 1 | 0 | 0 | 0 | `████████████████████ 100%` |
-| **all** | **417** | **13** | **126** | **28** | `███████████████████░ 97%` |
+| **all** | **418** | **12** | **126** | **28** | `███████████████████░ 97%` |
<!-- coverage:end -->
`removed` are parts left out by decision: AI features, Microsoft services, telemetry, remote and tunnels ([port/notes.md](port/notes.md)). `n/a` are upstream test infrastructure and the Electron process, IPC and DOM layers the native architecture replaces.
diff --git a/native/crates/app/src/theme.rs b/native/crates/app/src/theme.rs
index 673632d25c0..3da5284056f 100644
--- a/native/crates/app/src/theme.rs
+++ b/native/crates/app/src/theme.rs
@@ -618,6 +618,14 @@ fn registry_default(key: &str, kind: ThemeKind) -> ColorValue {
"statusBarItem.warningBackground" => (Darken(&Key("editorWarning.foreground"), 0.4), Darken(&Key("editorWarning.foreground"), 0.4), None),
"statusBarItem.errorForeground" | "statusBarItem.warningForeground" => (Hex("#FFFFFF"), Hex("#FFFFFF"), Hex("#FFFFFF")),
"statusBarItem.prominentBackground" => (Hex("#00000080"), Hex("#00000080"), Hex("#00000080")),
+ "statusBarItem.hoverBackground" | "statusBarItem.compactHoverBackground" => (Hex("#FFFFFF1F"), Hex("#0000001F"), Hex("#000000")),
+ "statusBarItem.hoverForeground" => (Key("statusBar.foreground"), Key("statusBar.foreground"), Key("statusBar.foreground")),
+ "statusBarItem.prominentHoverBackground" | "statusBarItem.errorHoverBackground" | "statusBarItem.warningHoverBackground" => {
+ (Key("statusBarItem.hoverBackground"), Key("statusBarItem.hoverBackground"), Key("statusBarItem.hoverBackground"))
+ }
+ "statusBarItem.prominentHoverForeground" | "statusBarItem.errorHoverForeground" | "statusBarItem.warningHoverForeground" => {
+ (Key("statusBarItem.hoverForeground"), Key("statusBarItem.hoverForeground"), Key("statusBarItem.hoverForeground"))
+ }
"statusBar.noFolderBackground" => (Hex("#68217A"), Hex("#68217A"), None),
"statusBar.background" => (Hex("#007ACC"), Hex("#007ACC"), None),
"statusBar.focusBorder" => (Key("statusBar.foreground"), Key("statusBar.foreground"), None),
@@ -1009,6 +1017,10 @@ fn hc_light_default(key: &str) -> ColorValue {
"statusBarItem.warningBackground" => Hex("#895503"),
"statusBarItem.errorForeground" | "statusBarItem.warningForeground" => Hex("#FFFFFF"),
"statusBarItem.prominentBackground" => Hex("#00000080"),
+ "statusBarItem.hoverBackground" | "statusBarItem.compactHoverBackground" => Hex("#FFFFFF"),
+ "statusBarItem.hoverForeground" => Key("statusBar.foreground"),
+ "statusBarItem.prominentHoverBackground" | "statusBarItem.errorHoverBackground" | "statusBarItem.warningHoverBackground" => Key("statusBarItem.hoverBackground"),
+ "statusBarItem.prominentHoverForeground" | "statusBarItem.errorHoverForeground" | "statusBarItem.warningHoverForeground" => Key("statusBarItem.hoverForeground"),
"statusBar.noFolderForeground" => Key("statusBar.foreground"),
"focusBorder" => Hex("#006BBD"),
"editorBracketMatch.background" => Hex("#0000"),
diff --git a/native/crates/app/src/workbench/diagnostics.rs b/native/crates/app/src/workbench/diagnostics.rs
index d06dbc023f1..b818afc1f55 100644
--- a/native/crates/app/src/workbench/diagnostics.rs
+++ b/native/crates/app/src/workbench/diagnostics.rs
@@ -252,7 +252,7 @@ impl Workbench {
let separator = if index + 1 < counts.len() { " " } else { "" };
item = item.child(self.icon(icon, 16., 16., foreground)).child(format!(" {}{separator}", pack_number(*count)));
}
- item.child(self.hover_target("status.problems", HoverContent::Text(markers_tooltip(stats)), HoverOptions::status_bar()))
+ self.status_item_hover(item, None).child(self.hover_target("status.problems", HoverContent::Text(markers_tooltip(stats)), HoverOptions::status_bar()))
}
}
diff --git a/native/crates/app/src/workbench/editor_view.rs b/native/crates/app/src/workbench/editor_view.rs
index f279819b9c6..385cfff7324 100644
--- a/native/crates/app/src/workbench/editor_view.rs
+++ b/native/crates/app/src/workbench/editor_view.rs
@@ -2905,6 +2905,11 @@ impl Workbench {
super::quick_access::show_failure(command.to_owned(), outcome, window, cx);
}))
});
+ let item = match (compact, command.is_empty()) {
+ (true, _) => self.compact_status_hover(item, id, cx),
+ (false, false) => self.status_item_hover(item, (index < prominent_items).then_some("prominent")),
+ (false, true) => item,
+ };
let name = super::status_entries::editor_status_entry_name(id);
if index >= prominent_items {
return (id.to_owned(), name.to_owned(), item.into_any_element());
diff --git a/native/crates/app/src/workbench/language_detection.rs b/native/crates/app/src/workbench/language_detection.rs
index a0d55389fbb..599df767d28 100644
--- a/native/crates/app/src/workbench/language_detection.rs
+++ b/native/crates/app/src/workbench/language_detection.rs
@@ -241,7 +241,7 @@ impl Workbench {
.child(self.icon("lightbulb-autofix", 16., 16., foreground))
.child(self.hover_target("language-detection-status", super::hover::HoverContent::Text(tooltip), super::hover::HoverOptions::status_bar()))
.on_click(cx.listener(|workbench, _, window, cx| drop(workbench.execute_command(DETECT_COMMAND, Vec::new(), window, cx))));
- Some(item.into_any_element())
+ Some(self.status_item_hover(item, None).into_any_element())
}
}
diff --git a/native/crates/app/src/workbench/language_status.rs b/native/crates/app/src/workbench/language_status.rs
index 63d70affae2..b3af288bab4 100644
--- a/native/crates/app/src/workbench/language_status.rs
+++ b/native/crates/app/src/workbench/language_status.rs
@@ -5,7 +5,7 @@ use std::cell::Cell;
use std::rc::Rc;
use std::time::Duration;
-use gpui::{Animation, AnimationExt, AnyElement, Bounds, Context, Pixels, Rgba, Size, Transformation, Window, canvas, div, percentage, prelude::*, px, size, svg};
+use gpui::{Animation, AnimationExt, AnyElement, Bounds, Context, Div, Pixels, Rgba, Size, Stateful, Transformation, Window, canvas, div, percentage, prelude::*, px, size, svg};
use serde_json::{Value, json};
use super::Workbench;
@@ -31,8 +31,10 @@ const BUSY: &str = "$(loading~spin)";
/// base/common/severity.ts.
const WARNING: u64 = 2;
const ERROR: u64 = 3;
-/// actionbar.css: a 16px codicon in a 3px padded `.action-label`.
-const PIN_BOX: f32 = 22.;
+/// hoverWidget.css `.markdown-hover .hover-contents .codicon`: codicons in the hover take its font size.
+const CODICON: f32 = super::hover::FONT_SIZE;
+/// actionbar.css: the codicon in a 3px padded `.action-label`.
+const PIN_BOX: f32 = CODICON + 6.;
/// The hover's 19px line; the pin's box overflows it (ui-pair: rows 20px apart with the border in the reference).
const ROW_HEIGHT: f32 = super::hover::LINE_HEIGHT;
/// `.right:not(:empty)`.
@@ -51,6 +53,8 @@ pub(super) struct LanguageStatus {
/// The serial whose hover already counted as an interaction.
counted: usize,
bounds: Rc<Cell<Bounds<Pixels>>>,
+ /// The id of the hovered entry of the compact pair: this one or the language entry.
+ compact_hover: Option<&'static str>,
}
/// `ILanguageStatus`.
@@ -211,6 +215,7 @@ impl Workbench {
let state = &self.language_status;
let serial = state.serial;
let path = self.app_root.join("node_modules/@vscode/codicons/src/icons").join(format!("{}.svg", codicon_file(text)));
+ let foreground = if state.compact_hover == Some(ID) { self.color("statusBarItem.hoverForeground") } else { foreground };
let icon = svg().external_path(path.to_string_lossy().into_owned()).size(px(16.)).flex_none().text_color(foreground);
let icon = if text == BUSY {
// codicon-animations.css: `codicon-modifier-spin` turns once in 1.5s in 30 steps.
@@ -227,8 +232,9 @@ impl Workbench {
// statusbarpart.css `.compact-right`: `compact: true` next to the language entry; modernUI statusBar.css in
// compact density: 2px margin and 4px padding.
let (margin, padding) = if self.compact_density() { self.status_item_spacing() } else { (5., 3.) };
- let item = div()
- .id(ID)
+ let item = div().id(ID);
+ let item = self
+ .compact_status_hover(item, ID, cx)
.relative()
.h_full()
.flex_none()
@@ -255,6 +261,30 @@ impl Workbench {
Some(item.into_any_element())
}
+ /// statusbarPart.ts compact entries: hovering one of the pair gives both `statusBarItem.hoverBackground`; modernUI
+ /// statusBar.css stacks compactHoverBackground on the hovered one and rounds only the pair's outer corners.
+ pub(super) fn compact_status_hover(&self, item: Stateful<Div>, id: &'static str, cx: &mut Context<Self>) -> Stateful<Div> {
+ if self.theme.kind.is_high_contrast() {
+ return self.status_item_hover(item, None);
+ }
+ let hover = self.color("statusBarItem.hoverBackground");
+ let item = if id == ID { item.rounded_l(px(4.)) } else { item.rounded_r(px(4.)) };
+ let item = match self.language_status.compact_hover {
+ Some(hovered) if hovered == id => item.bg(over(self.color("statusBarItem.compactHoverBackground"), hover)).text_color(self.color("statusBarItem.hoverForeground")),
+ Some(_) => item.bg(hover),
+ None => item,
+ };
+ item.on_hover(cx.listener(move |workbench, hovered: &bool, _, cx| {
+ let compact_hover = &mut workbench.language_status.compact_hover;
+ if *hovered {
+ *compact_hover = Some(id);
+ } else if *compact_hover == Some(id) {
+ *compact_hover = None;
+ }
+ cx.notify();
+ }))
+ }
+
/// The hover's text, for the empty check: the labels.
pub(super) fn language_status_hover_text(&self) -> String {
self.language_status.view.combined.iter().map(|status| status.label.as_str()).collect::<Vec<_>>().join("\n")
@@ -274,12 +304,12 @@ impl Workbench {
let mut element = div().h(px(ROW_HEIGHT)).flex().items_center().when(index + 1 < count, |element| element.border_b_1().border_color(border));
if let Some((icon, color)) = row.severity {
let color = color.map_or(foreground, |key| self.color(key));
- element = element.child(div().pr(px(8.)).flex_none().child(self.icon(icon, 16., 16., color)));
- row_width += 16. + 8.;
+ element = element.child(div().pr(px(8.)).flex_none().child(self.icon(icon, CODICON, CODICON, color)));
+ row_width += CODICON + 8.;
}
- let mut left = div().flex().items_center().min_w_0().child(self.highlighted_label(&row.label, &[], foreground, 16., foreground));
+ let mut left = div().flex().items_center().min_w_0().child(self.highlighted_label(&row.label, &[], foreground, CODICON, foreground));
if !row.detail.is_empty() {
- left = left.child(div().px(px(2.)).opacity(0.6).child("\u{2013}")).child(self.highlighted_label(&row.detail, &[], foreground, 16., foreground));
+ left = left.child(div().px(px(2.)).opacity(0.6).child("\u{2013}")).child(self.highlighted_label(&row.detail, &[], foreground, CODICON, foreground));
row_width += text_width("\u{2013}", false, window) + 4. + label_width(&row.detail, window);
}
let mut right = div().pl(px(RIGHT_PADDING)).flex().flex_none().items_center();
@@ -306,7 +336,7 @@ impl Workbench {
.hover(|pin| pin.bg(toolbar_hover))
.debug_selector(move || format!("language-status-pin-{index}"))
.tooltip(self.title_tooltip(pin_title.to_owned()))
- .child(self.icon(icon, 16., 16., foreground))
+ .child(self.icon(icon, CODICON, CODICON, foreground))
.on_click(cx.listener(move |workbench, _, window, cx| _ = workbench.execute_command(command, vec![json!(id)], window, cx)));
right = right.child(pin);
element = element.child(div().flex_1().min_w_0().flex().justify_between().items_center().child(left).child(right));
@@ -487,7 +517,17 @@ fn linked_text_label(text: &str) -> String {
label
}
-/// The width of a `$(icon)` label: its text plus 16px per icon.
+/// CSS source-over of two translucent colors.
+fn over(top: Rgba, bottom: Rgba) -> Rgba {
+ let a = top.a + bottom.a * (1. - top.a);
+ if a == 0. {
+ return top;
+ }
+ let channel = |top_channel: f32, bottom_channel: f32| (top_channel * top.a + bottom_channel * bottom.a * (1. - top.a)) / a;
+ Rgba { r: channel(top.r, bottom.r), g: channel(top.g, bottom.g), b: channel(top.b, bottom.b), a }
+}
+
+/// The width of a `$(icon)` label in the hover: its text plus one codicon per icon.
fn label_width(label: &str, window: &Window) -> f32 {
let chars: Vec<char> = label.chars().collect();
let (mut text, mut icons, mut index) = (String::new(), 0, 0);
@@ -500,7 +540,7 @@ fn label_width(label: &str, window: &Window) -> f32 {
text.push(chars[index]);
index += 1;
}
- text_width(&text, false, window) + 16. * icons as f32
+ text_width(&text, false, window) + CODICON * icons as f32
}
/// `computeText`.
diff --git a/native/crates/app/src/workbench/language_status/tests.rs b/native/crates/app/src/workbench/language_status/tests.rs
index b228741cfeb..abd0ad2f629 100644
--- a/native/crates/app/src/workbench/language_status/tests.rs
+++ b/native/crates/app/src/workbench/language_status/tests.rs
@@ -318,6 +318,37 @@ fn the_pin_shows_its_title_over_the_hover(cx: &mut TestAppContext) {
assert!(cx.debug_bounds("title-tooltip").is_some(), "Add to Status Bar shows");
}
+/// hoverWidget.css `.markdown-hover .hover-contents .codicon` takes the hover's 12px font: the pin's action label is
+/// 12px plus its 3px padding (ref-hover: `.action-label.codicon-pin` 18px wide), and the label's icon 12px.
+#[gpui::test]
+fn the_hover_codicons_take_its_font_size(cx: &mut TestAppContext) {
+ let (workbench, cx) = open(cx, "hover-codicons");
+ set(&workbench, cx, 1, status("info", 1, "S", json!("*")));
+ cx.run_until_parked();
+ let (size, label) = workbench.update_in(cx, |workbench, window, cx| (workbench.language_status_hover(window, cx).0, text_width(" info", false, window)));
+ assert_eq!(size.width, 12. + label + RIGHT_PADDING + 18.);
+ let entry = workbench.read_with(cx, |workbench, _| workbench.language_status.bounds.get());
+ cx.simulate_mouse_move(entry.center(), None, gpui::Modifiers::none());
+ cx.executor().advance_clock(std::time::Duration::from_millis(1500));
+ cx.run_until_parked();
+ assert_eq!(cx.debug_bounds("language-status-pin-0").expect("the hover's pin").size.width, gpui::px(18.));
+}
+
+/// modernUI statusBar.css: the hovered `{}` stacks the default compactHoverBackground #FFFFFF1F over Dark Modern's
+/// hoverBackground #F1F1F133; on the #181818 status bar the reference shows #5A5A5A.
+#[gpui::test]
+fn hovering_the_compact_pair_marks_the_hovered_entry(cx: &mut TestAppContext) {
+ let (workbench, cx) = open(cx, "compact-hover");
+ set(&workbench, cx, 1, status("info", 1, "S", json!("*")));
+ cx.run_until_parked();
+ let entry = workbench.read_with(cx, |workbench, _| workbench.language_status.bounds.get());
+ cx.simulate_mouse_move(entry.center(), None, gpui::Modifiers::none());
+ cx.run_until_parked();
+ assert_eq!(workbench.read_with(cx, |workbench, _| workbench.language_status.compact_hover), Some(ID));
+ let painted = gpui::rgb(0x181818).blend(over(gpui::rgba(0xFFFFFF1F), gpui::rgba(0xF1F1F133)));
+ assert_eq!((painted.r * 255.).round(), 90.);
+}
+
/// languageStatus.css `wiggle` with the default `ease` timing: halfway through the first keyframe the icon has turned
/// ease(0.5) of 0.04, not half of it.
#[test]
diff --git a/native/crates/app/src/workbench/notifications_view.rs b/native/crates/app/src/workbench/notifications_view.rs
index 4f7feef327d..c2cbee8eb65 100644
--- a/native/crates/app/src/workbench/notifications_view.rs
+++ b/native/crates/app/src/workbench/notifications_view.rs
@@ -937,7 +937,7 @@ impl Workbench {
drop(workbench.execute_command(command, Vec::new(), window, cx));
}))
.child(self.hover_target("status.notifications", HoverContent::Text(tooltip), HoverOptions::status_bar()));
- Some(item)
+ Some(self.status_item_hover(item, None))
}
/// notificationsCommands.ts's `MenuId.TitleBar` bell, shown for the top right position.
diff --git a/native/crates/app/src/workbench/status_entries.rs b/native/crates/app/src/workbench/status_entries.rs
index 829f8016341..74ae3862a7e 100644
--- a/native/crates/app/src/workbench/status_entries.rs
+++ b/native/crates/app/src/workbench/status_entries.rs
@@ -79,7 +79,7 @@ impl Workbench {
.whitespace_nowrap()
.text_color(color)
.when_some(background, |item, background| item.bg(background))
- .when(command.is_some(), |item| item.cursor_pointer())
+ .when(command.is_some(), |item| self.status_item_hover(item.cursor_pointer(), entry.kind))
.child(label)
.when_some(entry.tooltip.clone(), |item, tooltip| item.child(self.hover_target(format!("status-entry-hover-{}", entry.entry_id), HoverContent::Text(tooltip), HoverOptions::status_bar())))
.on_click(cx.listener(move |workbench, _, window, cx| {
@@ -94,6 +94,17 @@ impl Workbench {
item
}
+ /// statusbarpart.css `.statusbar-item a:hover:not(.disabled)`: the label of an entry with a command takes its kind's
+ /// hover colors, in modernUI statusBar.css's cornerRadius.small (4px).
+ pub(super) fn status_item_hover(&self, item: Stateful<Div>, kind: Option<&str>) -> Stateful<Div> {
+ let key = |part: &str| match kind {
+ Some(kind) => format!("statusBarItem.{kind}Hover{part}"),
+ None => format!("statusBarItem.hover{part}"),
+ };
+ let (background, foreground) = (self.color(&key("Background")), self.color(&key("Foreground")));
+ item.rounded(px(4.)).hover(move |item| item.bg(background).text_color(foreground))
+ }
+
pub(super) fn status_bar_extension_entry(&self, entry: &StatusEntry, foreground: Rgba, cx: &mut Context<Self>) -> Option<AnyElement> {
self.status_bar_entry(&entry.id, &entry.name, entry.extension_id.as_deref(), self.extension_status_item(entry, foreground, cx), cx)
}
diff --git a/port/ledger.md b/port/ledger.md
index 45cce5b3a89..38cacda0c37 100644
--- a/port/ledger.md
+++ b/port/ledger.md
@@ -27,7 +27,7 @@ Status: `open`, `in progress`, `waiting on Artur`, `later` (postponed), `done`,
| Milestones | M10 settings, storage, profiles | done | `settings.json` (user, workspace, folder, language overrides) feeding both the workbench and `vscode.workspace.getConfiguration`, configuration schema from `contributes.configuration`, the Settings editor and JSON settings with schema validation, global and workspace storage on disk, secret storage in the macOS Keychain, profiles, real `environment` in init data. Import from VS Code, Cursor and VSCodium (Artur, port feature with no upstream counterpart): a command and a first-run offer that read each installed editor's user data (`~/Library/Application Support/{Code,Cursor,VSCodium}/User`: settings.json, keybindings.json, snippets, the color and icon theme ids) and its extension list (`~/.vscode/extensions`, `~/.cursor/extensions`, `~/.vscode-oss/extensions`, installed again from Open VSX), show what will be imported, write it into the active profile and skip settings and extensions the port has removed (AI, sign-in, Microsoft services, telemetry, remote). Open gaps: the gaps column of its unit rows. | api-tests `configuration.test` and `state.test` pass as in the reference; a setting changed in `settings.json` reaches an extension's `onDidChangeConfiguration`; storage survives a restart; importing from a fixture VS Code, Cursor and VSCodium user data folder gives the same settings, keybindings, snippets and theme in the port. |
| Milestones | M11 workbench layout and chrome | in progress | The part grid with sashes and hidden parts, panel and secondary side bar, view containers and collapsible views, tree views from extensions (with the Refactor Preview of workbench/contrib/bulkEdit, which file operation participants open), editor groups and splits, notifications, dialogs (native open/save), progress, banner, status bar entries from extensions, decorations, window lifecycle (close, quit, hot exit backup), multiple windows, focus and inactive look. Open gaps: the gaps column of its unit rows. | api-tests `window.test` (messages, progress, tree views, status bar) pass as in the reference; pixel-check gains a window with panel and split editor; hot exit restores an unsaved buffer after quit. |
| Milestones | M12 files, explorer, search, workspace | in progress | File system service with watcher (FSEvents) and extension file system providers, Explorer file operations (new, rename, delete to Trash, drag and drop, copy/paste), Seti file icons, numeric name collation, workspace trust, multi-root `.code-workspace`, recent workspaces, text search through ripgrep, search view and search editor, bulk edits, local history, opener and URL handling. Open gaps: the gaps column of its unit rows. | api-tests `workspace.test`, `workspace.fs.test`, `workspace.event.test`, `workspace.tasks` excluded, and the api-workspace suite pass as in the reference; pixel-check folder window with Seti icons (reference captured without `workbench.iconTheme: null`); `cargo test -p app` sorting test with `file9`/`file10`. |
-| Milestones | M13 language features | in progress | Everything `MainThreadLanguageFeatures` registers, drawn by the native editor: completion, hover, signature help, code actions and lightbulb, code lens, inlay hints, go to definition and peek, references, rename, formatting, document symbols and Outline, semantic tokens, semantic word highlight, links, color picker, linked editing, snippets, call and type hierarchy, inline completions from extensions; diagnostics with squiggles and the Problems panel; comments threads; Emmet; the language status item. Open gaps: the gaps column of its unit rows. | api-tests `languages.test`, `languagefeatures.test`-family and `comments` cases pass as in the reference; with `src/main.ts` open TypeScript completion, hover, go to definition and a diagnostic squiggle work (pixel-check window with a squiggle and the suggest widget). |
+| Milestones | M13 language features | done | Everything `MainThreadLanguageFeatures` registers, drawn by the native editor: completion, hover, signature help, code actions and lightbulb, code lens, inlay hints, go to definition and peek, references, rename, formatting, document symbols and Outline, semantic tokens, semantic word highlight, links, color picker, linked editing, snippets, call and type hierarchy, inline completions from extensions; diagnostics with squiggles and the Problems panel; comments threads; Emmet; the language status item. Open gaps: the gaps column of its unit rows. | api-tests `languages.test`, `languagefeatures.test`-family and `comments` cases pass as in the reference; with `src/main.ts` open TypeScript completion, hover, go to definition and a diagnostic squiggle work (pixel-check window with a squiggle and the suggest widget). |
| Milestones | M14 source control and diff | done | SCM view and input box, quick diff gutter, the diff editor (side by side and inline), multi-file diff, merge editor and merge-conflict decorations, timeline, the git, git-base and github extensions fully working (no sign-in: github features that need a token stay off). Open gaps: the gaps column of its unit rows. | api-tests SCM cases pass as in the reference; with the fixture copied into a git repository the SCM view lists a changed file and opening it shows the diff (pixel-check window). |
| Milestones | M15 terminal, tasks, output | done | Integrated terminal (PTY from Rust, VT parser and renderer in GPUI), shell integration, extension terminals and pseudoterminals, tasks and problem matchers, npm/grunt/gulp/jake task providers, external terminal, Output panel and log viewer. Open gaps: the gaps column of its unit rows. | api-tests `terminal.test`, `terminal.shellIntegration.test` and `workspace.tasks.test` pass as in the reference (run with `SHELL=/bin/bash` as the baseline was); `npm: build` task from the fixture runs in a terminal. |
| Milestones | M16 debug and testing | in progress | Debug adapter protocol client, launch.json, breakpoints in the gutter, call stack, variables, watch, debug console, JS debugger (`ms-vscode.js-debug`), Test Explorer and test results. Open gaps: the gaps column of its unit rows. | api-tests `debug.test` and testing cases pass as in the reference; a breakpoint in a Node script from the fixture stops and shows variables. |
@@ -499,7 +499,7 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston
| workbench/contrib/keybindings | workbench contribution | M9 | verified | | systemWideKeybindings.ts selection and contribution warnings ported in system_wide_keybindings.rs (cargo test -p app system_wide: the user, unsupported and conflict cases of systemWideKeybindings.test.ts; the defaults case selects only chat's screenshot rule, removed with AI); Toggle Keyboard Shortcuts Troubleshooting logs dispatch and resolution to the Window log and shows it, without the focus marker (port/notes.md milestone 15; cargo test -p app keybindings_troubleshooting_logs_to_the_window_log) |
| workbench/contrib/keybindingsExport | workbench contribution | M9 | verified | | `--export-default-keybindings [folder]` writes doc.keybindings.osx.json (core rows, then built-in extension rules, then unbound commands) and quits, ignored on a stable build (a packaged latest one): cargo test -p app export_default_keybindings; against the reference's file (Studio, 1.147.0 dev, `/tmp/kbref`): it has 1310 rules, the port 1308; 1307 were identical, the others js-debug's 2 rules (not bundled) and the defineKeybinding rule, which then named a `file:` keybindings.json; it now names `vscode-userdata:<user home>/keybindings.json` as preferences.contribution.ts's `keybindingsResource.toString()` does (port export re-checked, 1308 rules; the reference file was not exported again) (the core rules' platform keys, folded before, are kept as written); the unbound list holds the commands the port registers; the Windows and Linux files are not written (macOS-only port, port/notes.md milestone 9) |
| workbench/contrib/languageDetection | workbench contribution | M13 | verified | | workbench/language_detection.rs: the `$(lightbulb-autofix)` status entry after the language entry for untitled editors with `workbench.editor.languageDetectionHints.untitledEditors` (1 s throttle, "Accept Detected Language: X (⇧⌥D)"), `editor.detectLanguage` (Shift+Alt+D, "Unable to detect editor language"); Auto Detect in Select Language Mode (workbench/editor_status.rs): cargo test -p app language_detection editor_status; ui-pair port/fixtures/language-features/steps-detect.json (port/results/inlay-hints.md) |
-| workbench/contrib/languageStatus | workbench contribution | M13 | ported | [3 S] language_status.rs: hover 4 px wider; no background under the hovered item | the `{}` entry left of the language entry as a compact pair (severity icon, busy spinner, wiggle eased per keyframe (the_wiggle_eases_each_keyframe) and flash), pinned statuses as own entries stored in `languageStatus.dedicated`, the interaction counter (counted when the hover shows: the_interaction_count_follows_the_hover_showing) and its reset, the hover rows with severity icon, label, detail, command link and pin/unpin action with their titles over the hover (`_renderStatus`, the_pin_shows_its_title_over_the_hover), the `formatter.conflict` Formatting status (workbench/language_status.rs): cargo test -p app language_status two_formatters_without_a_default; ui-pair f.ts and FILE=src/main.ts, hover on `{}` (port/results/language-features.md Semantic tokens and language status): the compact pair and the TypeScript extension's two hover rows (label, detail, link, pin) match the reference, the hover 4 px wider; not drawn: the hovered item's background, which the status bar part (workbench/parts/statusbar) draws for no item |
+| workbench/contrib/languageStatus | workbench contribution | M13 | verified | | the `{}` entry left of the language entry as a compact pair (severity icon, busy spinner, wiggle eased per keyframe (the_wiggle_eases_each_keyframe) and flash), pinned statuses as own entries stored in `languageStatus.dedicated`, the interaction counter (counted when the hover shows: the_interaction_count_follows_the_hover_showing) and its reset, the hover rows with severity icon, label, detail, command link and pin/unpin action with their titles over the hover (`_renderStatus`, the_pin_shows_its_title_over_the_hover), the `formatter.conflict` Formatting status (workbench/language_status.rs): cargo test -p app language_status two_formatters_without_a_default; ui-pair f.ts and FILE=src/main.ts, hover on `{}` (port/results/language-features.md Semantic tokens and language status): the compact pair and the TypeScript extension's two hover rows (label, detail, link, pin) match the reference, the hover's width (its codicons at the hover's 12px font: cargo test -p app the_hover_codicons_take_its_font_size) and the hovered pair's backgrounds (compactHoverBackground stacked on hoverBackground, outer corners rounded: hovering_the_compact_pair_marks_the_hovered_entry) |
| workbench/contrib/limitIndicator | workbench contribution | M11 | verified | | color decorator, folding range and problem limits as Warning language statuses with Configure (language_status.rs `limit_indicator_statuses`), the Problems one hidden with `renderValidationDecorations` off (`problems.visibility`, textEditor.ts) and taken from a diff editor's modified side: cargo test -p app -- limit (limitIndicator.test.ts "distinguishes diagnostic truncation", "respects validation visibility", "uses the modified editor in a diff", "keeps Configure actions"); the statuses are computed from the active editor on each read, so the listener and dispose cases have no counterpart; the resource filter case is n/a (`installResourceFilter` has only chat callers, no AI in the port) |
| workbench/contrib/list | workbench contribution | M9 | verified | | `ListContext` keys listSupportsTypeNavigation and listSupportsKeyboardNavigation; list.resizeColumn: TableColumnResizeQuickPick's column pick and percentage input with its validation (cargo test -p app keybindings_editor_view: resize_column_sets_the_picked_column_to_a_percentage_of_the_table, a_column_width_must_be_an_integer_percentage); the Keyboard Shortcuts table is the only table so far; list.resizeColumn: TableColumnResizeQuickPick's column pick and percentage input with its validation (cargo test -p app keybindings_editor_view: resize_column_sets_the_picked_column_to_a_percentage_of_the_table, a_column_width_must_be_an_integer_percentage); the Keyboard Shortcuts table is the only table so far |
| workbench/contrib/localHistory | workbench contribution | M12 | verified | | A resource of an extension's file system provider shows the entries of the `file` resource of its path, the provider schemes passed from the host thread (localHistoryTimeline.ts `provideTimeline`: cargo test -p app a_file_system_provider_resource_shows_the_entries_of_its_file); A save after a rename ("Renaming a to b"), a code action (its title) or another workspace edit ("Workspace Edit") is named by the undo element's label (cargo test -p app a_save_after_a_workspace_edit_is_named_by_its_label); a save with an undone edit still to redo is an "Undo / Redo" entry, after typing a plain one (workingCopyHistoryTracker.ts `resolveSourceFromUndoRedo`: cargo test -p app a_save_after_an_undo_is_an_undo_redo_entry); workbench/local_history_actions.rs: Find Entry to Restore, Delete All, Create Entry; entries follow renames and moves (local_history.rs `move_entries`); cargo test -p app local_history; the Timeline source with Compare with File, Compare with Previous, Select for Compare, Restore, Rename and Delete; a click keeps the row selected and focused (cargo test -p app a_click_opens_the_comparison_and_keeps_the_row_selected_and_focused); ui-pair port/fixtures/ui-pair/m12/timeline.json matches (Focus on Timeline View, focus moved by Down without selecting, the Shift+F10 item menu, the title actions while the pane has focus, the comparison at Ln 1, Col 1; port/notes.md milestone 12 verification, third pass) |
diff --git a/port/results/language-features.md b/port/results/language-features.md
index 4e38e9d1b51..a7902583d4f 100644
--- a/port/results/language-features.md
+++ b/port/results/language-features.md
@@ -86,7 +86,7 @@ Drop into the editor (Shift while dragging files) is checked by `cargo test -p a
## Semantic tokens and language status
-`FOLDER` a copy of port/fixtures/language-features/semantic, `FILE=f.ts` (`const value`, used twice), steps `steps-semantic.json`. Pair `semantic-pair.png`: the readonly `value` in #4FC1FF on all three lines, as in the reference. Pair `language-status-pair.png` (hover on `{}`): the same two TypeScript rows, "No tsconfig" with Configure TSConfig and "6.0.3 - TypeScript version" with Select Version, each with its pin. Left: the reference shows the `const` word highlight and a light bulb on line 1, the port neither; not traced yet, likely the reference asking before the TypeScript server was ready (a textual highlight); the hovered `{}` item has `statusBarItem.hoverBackground` in the reference only (the status bar part draws no item hover).
+`FOLDER` a copy of port/fixtures/language-features/semantic, `FILE=f.ts` (`const value`, used twice), steps `steps-semantic.json`. Pair `semantic-pair.png`: the readonly `value` in #4FC1FF on all three lines, as in the reference. Pair `language-status-pair.png` (hover on `{}`): the same two TypeScript rows, "No tsconfig" with Configure TSConfig and "6.0.3 - TypeScript version" with Select Version, each with its pin. Left: the reference shows the `const` word highlight and a light bulb on line 1, the port neither; not traced yet, likely the reference asking before the TypeScript server was ready (a textual highlight). Rerun after the status bar item hover (ref-hover dump of the hover's boxes: the pin's `.action-label` 18px wide, its codicon at the hover's 12px font): the hover's edges and the hovered pair's backgrounds (`{}` #5A5A5A, TypeScript #434343 in the reference; the port one level darker, as its whole status bar) match, AE 1718 px at fuzz 3% in the 900x260 crop around them.
## Keybindings schema