M2.7: Structure tool window and syntax.outline
Engine: every open PHP buffer keeps a tree-sitter tree, reparsed
incrementally on a worker thread off the engine lock (200 ms debounce,
edit batches recorded by buffer.edit, full parse when the chain breaks).
syntax.outline {id} returns {items, truncated, version}; outlineChanged
{id} at most every 200 ms per buffer. Replaced trees and outlines are
freed on the worker.
UI: left stripe with Project | Structure in MainLayout, the Structure
tool window (WAI-ARIA tree, Lucide kind icons, signatures, jumps via
editor.reveal), view.toggleStructure on Mod+2.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
73819df926
commit
c68932c39c
27 changed files with 2596 additions and 28 deletions
|
|
@ -266,6 +266,7 @@ describe("CommandPalette", () => {
|
|||
"editor.reveal",
|
||||
"settings.open",
|
||||
"view.toggleProjectTree",
|
||||
"view.toggleStructure",
|
||||
]);
|
||||
const quit = wrapper.find("[data-command='app.quit']");
|
||||
expect(quit.find("[data-test=palette-shortcut]").text()).toBe("Ctrl+Q");
|
||||
|
|
@ -297,7 +298,7 @@ describe("CommandPalette", () => {
|
|||
const wrapper = await mountPalette();
|
||||
await press(PALETTE_KEY);
|
||||
await press({ key: "ArrowUp" });
|
||||
expect(wrapper.find("[aria-selected=true]").attributes("data-command")).toBe("view.toggleProjectTree");
|
||||
expect(wrapper.find("[aria-selected=true]").attributes("data-command")).toBe("view.toggleStructure");
|
||||
await press({ key: "ArrowDown" });
|
||||
expect(wrapper.find("[aria-selected=true]").attributes("data-command")).toBe("project.close");
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue