DioxusLabs / DioxusLabs/dioxus

IDE inlay hints and quick actions using CLI

Open
#1,959 0 comments 1 reaction 0 assignees View on GitHub
enhancement vscode extension
Dominant language
Rust
Stars
39.1k
Forks
1.9k
Avg merge
4d 10h
Merged PRs (30d)
4

Description

## Specific Demand

It would be super useful to have inlay hints/quick actions for VSCode to give debug visibility and custom runners for components and the main app.

For example, RA inserts "run" and "debug" as quick action options for the `main` function for regular Rust. We could supercharge this with "serve" which uses the CLI to turn on things like assets, hotreloading, lints, etc which should help the newbie experience.

Also, the millionjs folks added some perf inlay hints for components - we could add a few helpful inlay hints:
- log!() - the results get bubbled into the IDE
- #[component] - gives you the ability to preview and/or mock components using current data
- use_signal() - gives you an interactive way to modify running state
- main - add a serve command with different platform configs (serve web, serve desktop, etc)
- style {} or include_css! gives you some options to configure the asset loading
- extracting components out from existing rsx!
- pasting html into rsx! autoconverts to rsx!
- use_memo/use_effect show the signals they capture and metadata like run count

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.