Skip to main content

Mountain/Command/LanguageFeature/
MountainProvideReferences.rs

1#![allow(non_snake_case)]
2
3//! Tauri command - find all references to a symbol. Delegates to
4//! `LanguageFeature::References::provide_references_impl`.
5
6use serde_json::Value;
7use tauri::{AppHandle, Wry, command};
8
9use crate::{Command::LanguageFeature::References, dev_log};
10
11#[command]
12pub async fn MountainProvideReferences(
13	application_handle:AppHandle<Wry>,
14	uri:String,
15	position:Value,
16	context:Value,
17) -> Result<Value, String> {
18	dev_log!(
19		"commands",
20		"[Language Feature] Providing references for: {} at {:?}",
21		uri,
22		position
23	);
24	References::provide_references_impl(application_handle, uri, position, context).await
25}