-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add live reload + launch config for vscode extension (#1468)
Also added new commands to run extension. - `pnpm dev:vscode` - dev mode for VSCode extension - `pnpm dev:language-server` - dev mode for Language Server - `pnpm dev:all` - dev mode for all packages - `pnpm dev:playground` - Force rebuild the playground frontend You can now also press play on VSCode debugger for Launch VS Code extension and it will run all the scripts for you to have live reload and debuggin for the vscode extension <!-- ELLIPSIS_HIDDEN --> ---- > [!IMPORTANT] > Adds live reload and debugging for VSCode extension with new commands and updates to configuration and documentation. > > - **Behavior**: > - Adds live reload and debugging for VSCode extension using `launch.json` and `tasks.json`. > - New commands in `package.json`: `dev:vscode`, `dev:language-server`, `dev:all`, `dev:playground`. > - Updates `WebPanelView` in `WebPanelView.ts` to load scripts differently in dev mode. > - **Configuration**: > - Adds `Watch All` and `Terminate All` tasks in `tasks.json`. > - Modifies `launch.json` to include `preLaunchTask` and `postDebugTask`. > - **Documentation**: > - Updates `README.md` with new development commands and workflows. > - **Build**: > - Updates `vite.config.ts` to configure dev server and HMR for VSCode webviews. > > <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=BoundaryML%2Fbaml&utm_source=github&utm_medium=referral)<sup> for c38da23. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN -->
- Loading branch information
Showing
7 changed files
with
216 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "Watch All", | ||
"dependsOn": ["Watch Web Panel", "Watch VSCode Extension"], | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
} | ||
}, | ||
{ | ||
"label": "Terminate All", | ||
"command": "echo ${input:terminate}", | ||
"type": "shell", | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "Watch Web Panel", | ||
"type": "shell", | ||
"command": "cd ${workspaceFolder}/vscode-ext/packages/web-panel && pnpm run watch", | ||
"isBackground": true, | ||
"problemMatcher": { | ||
"pattern": { | ||
"regexp": "." | ||
}, | ||
"background": { | ||
"activeOnStart": true, | ||
"beginsPattern": "^.*VITE.*Dev server running at:", | ||
"endsPattern": "^.*ready in.*$" | ||
} | ||
}, | ||
"presentation": { | ||
"reveal": "always", | ||
"panel": "new" | ||
} | ||
}, | ||
{ | ||
"label": "Watch VSCode Extension", | ||
"type": "shell", | ||
"command": "cd ${workspaceFolder}/vscode-ext/packages/vscode && pnpm run watch", | ||
"isBackground": true, | ||
"problemMatcher": { | ||
"pattern": { | ||
"regexp": "." | ||
}, | ||
"background": { | ||
"activeOnStart": true, | ||
"beginsPattern": ".", | ||
"endsPattern": "." | ||
} | ||
} | ||
} | ||
], | ||
"inputs": [ | ||
{ | ||
"id": "terminate", | ||
"type": "command", | ||
"command": "workbench.action.tasks.terminate", | ||
"args": "terminateAll" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters