-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve VSCode Extension so that it doesn't crash and pop open the ou…
…tput panel (#1103) <!-- ELLIPSIS_HIDDEN --> > [!IMPORTANT] > Improves error handling and logging in the VSCode extension to prevent crashes and unnecessary output panel openings. > > - **Error Handling**: > - `getProjectById` in `baml_project_manager.ts` now returns `undefined` instead of throwing an error, logging the error instead. > - Added checks in `server.ts` to handle cases where `getProjectById` returns `undefined`, preventing further operations. > - **Logging**: > - Commented out `console.log` and `console.error` bindings in `server.ts` to prevent the output panel from opening unnecessarily. > - **Misc**: > - Changed `client.outputChannel.show()` to `client.outputChannel.show(true)` in `index.ts` to control output panel behavior. > > <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 2fdd7b0. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN -->
- Loading branch information
Showing
3 changed files
with
21 additions
and
6 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
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