atmos_vsc_commands_flutter library

Flutter adapters for atmos_vsc_commands — command host + shortcuts.

ENG

Canonical input: VscCommandHost (chords / when via keybindings engine). VscShortcuts is a limited single-step helper. Key parsing lives in atmos_vsc_keybindings / atmos_vsc_keybindings_flutter.

RU

Канон ввода: VscCommandHost. VscShortcuts — только single-step.

Classes

VscBundledKeybindings
Paths to default keybinding dumps shipped under lib/assets/.
VscBundledKeybindingSet
One bundled OS keybinding dump.
VscCommand
A user-facing command contribution (contributes.commands).
VscCommandAction
CallbackAction that runs VscCommandService.execute for intents.
VscCommandContributions
Parsed contributes.commands + contributes.keybindings block.
VscCommandHost
Wires VscKeybindingsHost → VscCommandService.executeMatch.
VscCommandIcon
Icon for a contributed command ($(codicon) or light/dark paths).
VscCommandIntent
Intent carrying a VS Code command id (and optional args).
VscCommandInvocation
One command run request.
VscCommandProductIcon
Product / codicon reference, e.g. $(book).
VscCommandService
Runtime hub: metadata + handlers + shared when-context.
VscCommandsLoader
Parses VS Code / Cursor command and keybinding JSON (JSONC).
VscCommandThemeIcon
Separate assets for light and dark UI.
VscFlutterKeyBridge
Maps between Flutter keys and VscKeyStroke.
VscKeybinding
One keyboard rule (keybindings.json item or contributes.keybindings).
VscKeybindingEngine
Pure-Dart VS Code-style hotkey resolver (chords + when + layers).
VscKeybindingsAssetLoader
Loads bundled default keybindings from a Flutter AssetBundle.
VscKeybindingsHost
Focusable host that feeds key downs into a VscKeybindingEngine.
VscKeybindingsLoader
Loads bundled / file keybinding dumps (JSONC).
VscKeyMatch
Result of resolving a key press to a command.
VscKeyStroke
One chord step: modifiers + trigger key token (ctrl+k).
VscKeyStrokeParser
Parses VS Code / Cursor key strings (ctrl+k ctrl+c) into VscKeyStrokes.
VscL10n
Runtime localization similar to vscode.l10n.t.
VscLocale
BCP-47-ish locale id used for NLS / l10n file lookup.
VscLocalizedString
Localized string as used in VS Code contribution points.
VscNls
Helpers for package.nls keys (%command.title%).
VscNlsBundle
Multi-locale message store with VS Code-style fallback.
VscNlsLoader
Parses VS Code package.nls / bundle.l10n JSONC tables (no dart:io).
VscNlsTable
One language table: NLS key → message.
VscShortcuts
Builds Flutter Shortcuts tables from VS Code keybinding rules.
VscShortcutsMap
Result of converting keybindings to a Flutter Shortcuts map.
VscSkippedBinding
A binding that could not be indexed (usually an unparsable key string).
VscWhenEvaluator
Evaluates VS Code-style when clauses against a context map.

Enums

VscKeyPlatform
Target OS for default keybinding dumps / platform key overrides.

Extensions

VscKeybindingFlutter on VscKeybinding
Flutter helpers for VscKeybinding lists.
VscKeyPlatformX on VscKeyPlatform
Helpers for VscKeyPlatform.

Functions

jsoncDecode(String source, {JsoncReviver? reviver}) → Object?
Decodes a JSONC String in one pass into a Dart value.
stripJsonc(String source) → String
Strips JSONC comments and trailing commas, leaving plain JSON text.

Typedefs

VscCommandHandler = FutureOr<Object?> Function(VscCommandInvocation invocation)
Handler for a registered command.
VscCommandHostListener = void Function(VscKeyMatch match, Object? result)
Optional observer after a keybinding match is dispatched.
VscKeyCanHandle = bool Function(KeyEvent event, VscKeyStroke stroke)
Optional gate before the host feeds a key into the engine.
VscKeyCommandCallback = void Function(VscKeyMatch match)
Callback when the engine resolves a command.
VscKeyEvent = VscKeyStroke
Incoming key event for the hotkey engine (same shape as VscKeyStroke).

Exceptions / Errors

VscCommandException
Failure while resolving or running a command.