Mountain/Command/LanguageFeature/
MountainProvideDocumentHighlights.rs1
2use serde_json::Value;
6use tauri::{AppHandle, Wry, command};
7
8use crate::{Command::LanguageFeature::Highlights, dev_log};
9
10#[command]
11pub async fn MountainProvideDocumentHighlights(
12 application_handle:AppHandle<Wry>,
13
14 uri:String,
15
16 position:Value,
17) -> Result<Value, String> {
18 dev_log!(
19 "commands",
20 "[Language Feature] Providing document highlights for: {} at {:?}",
21 uri,
22 position
23 );
24
25 Highlights::provide_document_highlights_impl(application_handle, uri, position).await
26}