fix: Rust analyzer not working properly
This commit is contained in:
parent
9fb55128e2
commit
ac6a6de8e3
4 changed files with 4 additions and 15 deletions
|
|
@ -56,9 +56,6 @@ uuid = { workspace = true }
|
|||
tracing = { workspace = true }
|
||||
tracing-error = { workspace = true }
|
||||
|
||||
[dev-dependencies]
|
||||
tauri = { workspace = true, features = [ "test" ] }
|
||||
|
||||
[target.'cfg(target_os = "macos")'.dependencies]
|
||||
cocoa = "0.25.0"
|
||||
objc = "0.2.7"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
use tauri_specta::{Builder, ExportLanguage};
|
||||
use crate::api;
|
||||
|
||||
#[macro_export]
|
||||
|
|
@ -15,15 +14,6 @@ macro_rules! collect_commands {
|
|||
};
|
||||
}
|
||||
|
||||
pub fn test() -> Builder {
|
||||
use crate::api::commands::*;
|
||||
tauri_specta::ts::builder()
|
||||
.commands(tauri_specta::collect_commands![
|
||||
initialize_state,
|
||||
is_dev
|
||||
])
|
||||
}
|
||||
|
||||
#[specta::specta]
|
||||
#[tracing::instrument(skip_all)]
|
||||
#[tauri::command]
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
use tauri::Manager;
|
||||
use crate::api::commands;
|
||||
|
||||
pub mod api;
|
||||
pub mod error;
|
||||
|
|
@ -49,7 +48,7 @@ pub async fn run_app<F: FnOnce(&mut tauri::App) + Send + 'static>(
|
|||
let builder = builder
|
||||
.plugin(api::init())
|
||||
.invoke_handler({
|
||||
let builder = commands::test();
|
||||
let builder = collect_commands!();
|
||||
|
||||
#[cfg(debug_assertions)]
|
||||
let builder = builder.path("../src/bindings.ts");
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
import { render } from 'solid-js/web';
|
||||
|
||||
import './imports';
|
||||
import * as bridge from "./bindings";
|
||||
|
||||
import { Route, Router } from '@solidjs/router';
|
||||
import App from './ui/App';
|
||||
|
|
@ -11,6 +12,8 @@ import UpdatesPage from './ui/pages/Updates';
|
|||
import ClusterRoot from '~ui/pages/cluster/ClusterRoot';
|
||||
import SettingsRoot from '~ui/pages/settings/SettingsRoot';
|
||||
|
||||
bridge.commands.initializeState()
|
||||
|
||||
render(() => (
|
||||
<Router root={App}>
|
||||
<Route path="/" component={HomePage} />
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue