Skip to main content

Mountain/Command/LanguageFeature/
MountainProvideReferences.rs

1
2//! Tauri command - find all references to a symbol. Delegates to
3//! `LanguageFeature::References::provide_references_impl`.
4
5use serde_json::Value;
6use tauri::{AppHandle, Wry, command};
7
8use crate::{Command::LanguageFeature::References, dev_log};
9
10#[command]
11pub async fn MountainProvideReferences(
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 references for: {} at {:?}",
23		uri,
24		position
25	);
26
27	References::provide_references_impl(application_handle, uri, position, context).await
28}