Expand description
ยงLanguageFeature (Tauri command surface)
Bridges Monaco-Editor language requests from Sky into the Mountain
LanguageFeatureProvider registry. Six wire-bound commands, each in
its own file (file name = Tauri command identifier per the
Naming-Convention exception):
MountainProvideHover::MountainProvideHoverMountainProvideCodeActions::MountainProvideCodeActionsMountainProvideDocumentHighlights::MountainProvideDocumentHighlightsMountainProvideCompletions::MountainProvideCompletionsMountainProvideDefinition::MountainProvideDefinitionMountainProvideReferences::MountainProvideReferences
Each command is a thin shell that validates input and delegates to
the matching provide_*_impl in the sibling Hover / CodeActions
/ โฆ modules. Implementation files are pub(crate) because callers
outside this directory should go through the wire-bound shells.
Errors propagate as Result<Value, String> with the string sent
straight to the frontend; provider errors (CommonError) are
stringified at the boundary.
VS Code reference: vs/workbench/api/common/extHostLanguageFeatures.ts,
vs/workbench/services/languageFeatures/common/languageFeaturesService.ts.
TODO: document symbols, formatting, rename, signature help, semantic tokens, code lens, inlay hints, linked editing range, call/type hierarchy, document color, folding/selection range, request dedupe and cancellation tokens for long-running ops.
Modulesยง
- Code
Actions ๐ - LanguageFeature - Code Actions
- Completions ๐
- LanguageFeature - Completions
- Definition ๐
- LanguageFeature - Definition
- Highlights ๐
- LanguageFeature - Document Highlights
- Hover ๐
- LanguageFeature - Hover
- Invoke
Provider ๐ - LanguageFeature - Invoke Provider Helper
- Mountain
Provide Code Actions - Tauri command - quick fixes and refactorings for a code range.
Delegates to
LanguageFeature::CodeActions::provide_code_actions_impl. - Mountain
Provide Completions - Tauri command - code completion suggestions. Delegates to
LanguageFeature::Completions::provide_completions_impl. - Mountain
Provide Definition - Tauri command - go-to-definition. Delegates to
LanguageFeature::Definition::provide_definition_impl. - Mountain
Provide Document Highlights - Tauri command - symbol occurrences in a document. Delegates to
LanguageFeature::Highlights::provide_document_highlights_impl. - Mountain
Provide Hover - Tauri command - show hover information at the cursor position.
Delegates to
LanguageFeature::Hover::provide_hover_impl. - Mountain
Provide References - Tauri command - find all references to a symbol. Delegates to
LanguageFeature::References::provide_references_impl. - References ๐
- LanguageFeature - References
- Validation ๐
- LanguageFeature - Validation