H4: string and path settings controls, live completion and tooltip settings
- Settings dialog: every string setting gets a text field with in-place
hints (quotes or spaces around a path, control characters, length);
keys ending in path/executable also get "Browse…" through the dialog
plugin's native picker (new desktop IPC pick_file). git.executable
from M4.1 gets the control without UI changes.
- settings.open {section?, query?} for agents and live checks.
- New keys editor.completion.autoPopup, editor.completion.delayMs and
editor.hover.delayMs; the assist module reads them live through
CodeMirror compartments.
- Tests: engine settings test, control/engine key lists, Vitest for the
controls and the live wiring. Docs: architecture, ui-parity, parity
Settings row, gaps.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
b0f8550aeb
commit
197d5b7d27
19 changed files with 1149 additions and 41 deletions
|
|
@ -318,3 +318,20 @@ export async function listCommands(): Promise<RunResult<CommandInfo[]>> {
|
|||
return { ok: false, error: toEngineError(reason) };
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Shows the native file picker of the desktop shell (the "Browse…" button
|
||||
* of a path setting).
|
||||
*
|
||||
* @param title - the picker's title, from the catalog.
|
||||
* @returns the chosen file's absolute path, null when the user cancelled,
|
||||
* or the error the call failed with (for example outside the shell).
|
||||
*/
|
||||
export async function pickFile(title: string): Promise<RunResult<string | null>> {
|
||||
try {
|
||||
const value = await invoke<string | null>("pick_file", { title });
|
||||
return { ok: true, value: typeof value === "string" ? value : null };
|
||||
} catch (reason: unknown) {
|
||||
return { ok: false, error: toEngineError(reason) };
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue