Skip to main content

Mountain/Command/LanguageFeature/
MountainProvideCodeActions.rs

1
2//! Tauri command - quick fixes and refactorings for a code range.
3//! Delegates to `LanguageFeature::CodeActions::provide_code_actions_impl`.
4
5use serde_json::Value;
6use tauri::{AppHandle, Wry, command};
7
8use crate::{Command::LanguageFeature::CodeActions, dev_log};
9
10#[command]
11pub async fn MountainProvideCodeActions(
12	application_handle:AppHandle<Wry>,
13
14	uri:String,
15
16	position:Value,
17
18	context:Value,
19) -> Result<Value, String> {
20	dev_log!(
21		"commands",
22		"[Language Feature] Providing code actions for: {} at {:?}",
23		uri,
24		position
25	);
26
27	CodeActions::provide_code_actions_impl(application_handle, uri, position, context).await
28}