You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Lingua Franca extension for Visual Studio Code (VS Code) provides syntax-directed editing capability, compilation, diagram synthesis and a package explorer for Lingua Franca programs.
7
12
8
13
## Usage
@@ -35,6 +40,9 @@ We recommend selecting the root of your Lingua Franca package as your workspace
@@ -49,7 +57,7 @@ To compile the `.lf` source, open the command palette (<kbd>Ctrl</kbd> + <kbd>Sh
49
57
You can also build and immediately afterwards run your code by opening the command palette (<kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd>) and then entering `Lingua Franca: Build and Run`.
50
58
Running the code can also be done from the VS Code terminal by executing the generated file in `./bin`.
51
59
52
-
### Packages Explorer
60
+
### Package Explorer
53
61
54
62
The **Lingua Franca Package Explorer** can be accessed by clicking on the **LF icon** in the activity bar on the left side of the screen. Once opened, the **Package Explorer** displays a **Tree View** with the following structure:
55
63
@@ -99,7 +107,7 @@ In this structure:
99
107
100
108
The image below shows a visual representation of the **Installed Packages** section. The **project** icon indicates the LF Project folder (e.g., `AudioClassification`), while the **root-folder** icon represents the downloaded libraries (e.g., the `edgeai` library in the example). The **code file** icon denotes an LF program within a library, and the **bracket** icon represents individual reactors inside the LF program.
The hierarchy categorizes tree items into the following types:
105
113
@@ -141,7 +149,7 @@ The **Local Libraries** section lists LF programs created by the developer, loca
141
149
142
150
The image below illustrates the **Local Libraries** section. In this depiction, the **"project"** icon represents the LF project folder, while the **"code file"** icon represents the LF program, and the **"bracket"** icon denotes individual reactors within the LF program.
The hierarchy categorizes tree items into two types:
147
155
@@ -159,7 +167,9 @@ Actions for **Local Libraries** are similar to those in the [**Installed Package
159
167
-**Go To File**: Opens the file where the reactor is defined.
160
168
-**Open in Split View**: Opens the file in a split editor view (accessible by right-clicking the item).
161
169
162
-
> **Note**: The **Import Selected Reactor** option is available only if an LF program is open in the editor.
170
+
:::note
171
+
The **Import Selected Reactor** option is available only if an LF program is open in the editor.
172
+
:::
163
173
164
174
#### Source Files
165
175
@@ -177,14 +187,6 @@ The **Source Files** section lists all LF programs in the `{project_name}/src/`
177
187
178
188
Clicking on any of the files will open the corresponding LF program in the editor, allowing developers to quickly navigate to and edit the source code of their project.
179
189
180
-
#### Correctness of Project Structure
181
-
182
-
If the project structure deviates from the expected format, an error message will appear:
0 commit comments