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
|
|
@ -11,6 +11,7 @@
|
|||
"command.settings.open": "Settings…",
|
||||
"command.unavailable": "{command} cannot run right now",
|
||||
"command.view.toggleProjectTree": "Show or Hide Project",
|
||||
"command.view.toggleStructure": "Show or Hide Structure",
|
||||
"common.cancel": "Cancel",
|
||||
"common.close": "Close",
|
||||
"common.dismiss": "Dismiss",
|
||||
|
|
@ -22,6 +23,7 @@
|
|||
"common.toolWindow.hide": "Hide {title}",
|
||||
"common.toolWindow.resize": "Resize {title}",
|
||||
"common.toolWindow.show": "Show {title}",
|
||||
"common.toolWindow.stripe": "Tool windows",
|
||||
"editor.closePrompt.question": "Save changes to {name} before closing?",
|
||||
"editor.notice.changedOnDisk": "{name} changed on disk. Your unsaved changes are kept; saving overwrites the file.",
|
||||
"editor.notice.removedOnDisk": "{name} was deleted on disk. Your text is kept; saving writes it again.",
|
||||
|
|
@ -101,6 +103,22 @@
|
|||
"settings.ui.language.description": "Language of the interface. More languages follow.",
|
||||
"settings.ui.language.label": "Language",
|
||||
"settings.ui.language.value.en": "English",
|
||||
"structure.empty.noFile": "Open a file to see its structure",
|
||||
"structure.empty.none": "No declarations in this file",
|
||||
"structure.empty.parsing": "Reading the file…",
|
||||
"structure.empty.tooLarge": "This file is too large to show its structure",
|
||||
"structure.kind.class": "Class",
|
||||
"structure.kind.constant": "Constant",
|
||||
"structure.kind.enum": "Enum",
|
||||
"structure.kind.enumCase": "Enum case",
|
||||
"structure.kind.function": "Function",
|
||||
"structure.kind.interface": "Interface",
|
||||
"structure.kind.method": "Method",
|
||||
"structure.kind.namespace": "Namespace",
|
||||
"structure.kind.property": "Property",
|
||||
"structure.kind.trait": "Trait",
|
||||
"structure.toolWindow.title": "Structure",
|
||||
"structure.tree.label": "Declarations of the file",
|
||||
"theme.lutraDark": "Lutra Dark",
|
||||
"theme.lutraLight": "Lutra Light"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue