#TARUS - A VS Code extension

38 messages · Page 1 of 1 (latest)

stray seal
#

Coding assistant for TAURI® apps. Navigation, autocomplete, diagnostics for commands and events.

In Tauri projects, it’s often difficult to quickly navigate between the frontend and the Rust backend and understand where a command is defined or called.
This extension is designed to make that navigation fast and effortless, allowing you to jump between the frontend and backend parts of the project in both directions.
As secondary features, the extension can also detect unused commands and help autocomplete command names while typing.

Install | GitHub repo | [Videos demonstrating ](#1441832014377390110 message)

GitHub

A VS Code extension — coding assistant for TAURI® apps. Navigation, autocomplete, diagnostics for commands and events. - mvoof/tarus

unborn bay
#

Will be trying it immediately

maiden gust
#

maybe i do a version of this for neovim. always wanted to do a nvim plugin but theres always someone who did it

#

really cool!

stray seal
#

TARUS - A VS Code extension — full-featured development toolkit for TAURI® apps

#

TARUS - A VS Code extension

stray seal
#

In 0.3.0 was added:

Autocomplete
Start typing inside invoke(", emit(", or listen(" and get suggestions for all known commands and events in your project
Diagnostics
Real-time warnings for mismatched commands and events
Symbols
Document Symbols (Ctrl+Shift+O)
Quick outline of all commands and events in the current file.
Workspace Symbols (Ctrl+T)
Search for any command or event across your entire project.

#

I also tried to implement a comand renaming feature, but the rust-analyzer (vs code prefers its) intercepts renaming performed by pressing F2 in Rust files...🙁

rigid bluff
#

I just installed it and can already see that this is an awesome QoL-Plugin!!
Thank you!

upbeat chasm
#

If you need any log or something to help you let me know ^^

stray seal
upbeat chasm
#

npm run dev:tauri to run it ^^

#

I've a greet command added so you can test it

#

lmk if you need any help or info

stray seal
#

Thanks, I'll try to add svelte support soon. I don't need to run the project, just the code to test the extension.

maiden gust
#

svelte is the greatest, support would be great also 👊

stray seal
#

Does anyone use Angular and Vue with Tauri? Please send me a link to the repository, I'll need it for future testing.

stray seal
#

0.4.0 pushed! Test your vue, angular and svelte code. I tested whether this works by creating standard "greeting" code using cargo create-tauri-app. But your project may have a more complex structure. So, don't hesitate to provide sample code if something doesn't work.

upbeat chasm
#

I'll test it right now

#

It works perfectly fine now with SvelteKit

#

Small suggestion tho, if you have multiple calls for the same methos it'll show "2 References" instead of "Go to Rust". It could be nice to have both, "Go to Rust" to go to rust and "2 References" if you want to see where you're using it.

#

But it's just a suggestion, it's not wrong the way it is right now ^^

#

Thank you so much for the amazing extension

upbeat chasm
#

Bruh... I'll check it at home. You're amazing

#

❤️ ❤️ ❤️ ❤️

vivid dock
#

my dude, this is sick

vocal girder
#

This is awesome! 🙂 I tried it on my svelte project it works perfectly ❤️

I was wondering if it would make sens to also type the invoke params with the extension or it doesnt make sens? I was considering using a lib like ⁨ts-rs⁩ (https://github.com/Aleph-Alpha/ts-rs/tree/main) otherwise, but I would still need to manually use the types like so https://github.com/jeremt/pgditor/blob/main/src/lib/table/pgContext.svelte.ts#L209 (which allows to use the wrong type)

GitHub

Generate TypeScript bindings from Rust types. Contribute to Aleph-Alpha/ts-rs development by creating an account on GitHub.

GitHub

A minimalistic, fast & beautiful app to manager your Postgres databases - jeremt/pgditor

maiden gust
#

i wonder if something like that exists for nvim. if not i might give a try

stray seal