Skip to main content

Mountain/Command/LanguageFeature/
MountainProvideCodeActions.rs

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