-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add jump to file in playgroundv2 (#1356)
<!-- ELLIPSIS_HIDDEN --> > [!IMPORTANT] > Add click-to-jump functionality in playground components to navigate to specific file locations by clicking on function or test names. > > - **Behavior**: > - Adds click-to-jump functionality in `FunctionTestName` and `TabularView` components, allowing users to navigate to specific file locations by clicking on function or test names. > - Uses `vscode.postMessage` to send `jumpToFile` command with span details. > - **Atoms**: > - Introduces `functionObjectAtom` and `testcaseObjectAtom` in `atoms.ts` to manage function and test case data. > - **UI Components**: > - Updates `FunctionTestName` to include click handlers for function and test names. > - Updates `TabularView` to include click handlers for test names in the table view. > > <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 14c70cb. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN -->
- Loading branch information
Showing
3 changed files
with
89 additions
and
8 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
44 changes: 39 additions & 5 deletions
44
...t/playground-common/src/shared/baml-project-panel/playground-panel/function-test-name.tsx
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