Lucid Architecture for VS Code
VS Code extension for Lucid Architecture — bring the CLI into the command palette, navigate your Features/Jobs/Operations from a sidebar tree view, and jump to any unit inline from Works with both Micro and Monolith Lucid projects. Automatically activates when FeaturesMake CommandsRun any Cmd+Shift+P (or Ctrl+Shift+P) → type
Generated files use the Lucid package's own stubs — template updates in the package are reflected automatically. Explorer Tree ViewThe Lucid Architecture panel in the Explorer sidebar shows your project structure at a glance:
Click any node to open the file. Right-click a Domain node to Make Job in this context (domain pre-filled), or right-click a Service node to Make Feature in this context. The tree refreshes automatically when files are added or deleted. CodeLens on
|
| Prefix | Expands to |
|---|---|
lucid-job |
Job class with constructor promotion |
lucid-qjob |
Queueable Job class (implements ShouldQueue) |
lucid-feature |
Feature class with handle(Request $request) |
lucid-operation |
Operation class with constructor promotion |
lucid-run |
$this->run(new JobName(...)) call |
Status Bar
Shows the detected project mode in the bottom-right corner:
⊞ Lucid: Micro or ⊞ Lucid: Monolith
Requirements
- VS Code
^1.85.0 - A Laravel project with
lucidarch/lucidinstalled via Composer (vendor/lucidarch/lucidmust exist)
The make/delete/init commands require a working vendor/bin/lucid binary. The tree view and CodeLens work without it.
Extension Settings
| Setting | Default | Description |
|---|---|---|
lucid.binaryPath |
"" |
Custom path to the Lucid CLI binary. Leave empty to use ./vendor/bin/lucid. |
lucid.mode |
"auto" |
Override mode detection: "auto", "micro", or "monolith". |
lucid.showCodeLens |
true |
Show inline ->run() navigation links. |
lucid.treeView.showTestFiles |
false |
Show test file nodes in the tree view. |
Project Structure Support
The extension mirrors the directory conventions from Finder.php exactly:
| Unit | Micro | Monolith |
|---|---|---|
| Features | app/Features/ |
app/Services/*/Features/ |
| Jobs | app/Domains/*/Jobs/ |
app/Domains/*/Jobs/ |
| Operations | app/Operations/ |
app/Services/*/Operations/ |
| Services | — | app/Services/*/ |
| Domains | app/Domains/*/ |
app/Domains/*/ |
Contributing
git clone https://github.com/lucidarch/vscode-lucid
cd vscode-lucid
npm install
# Open in VS Code and press F5 to launch the Extension Development Host
code .
Bug reports and pull requests are welcome at github.com/lucidarch/vscode-lucid.
License
MIT © Lucid Architecture

