Skip to main content

Module studio_actions

Module studio_actions 

Source
Expand description

What the Studio’s toolbar actions can do for the file in the editor.

Every mode has its buttons — Run, Compile and Debug in Code; Execute and Compile in Logic, Math and Hardware — but not every file can use every one: a Verilog design is already hardware, a grid puzzle has no Rust to extract, a program built on live networking cannot run in the browser. A button that can do nothing for the open file stays where it is, disabled, and says why in its tooltip. actions_for is the one place that decides; the toolbar draws from it.

Structs§

Actions
The toolbar’s actions for one file.

Enums§

Offer
Whether an action can do something for the open file — and why not, when it cannot.

Functions§

actions_for
The actions the open file can take, from its mode, its path (the registry knows which shipped programs need the compiled runtime) and its text.