Skip to content

Commit

Permalink
fix: patch js-api openProject()
Browse files Browse the repository at this point in the history
  • Loading branch information
ianzone committed Feb 9, 2025
1 parent 7d5ae45 commit c385b27
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/large-crabs-tickle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@biomejs/js-api": patch
---

remove the wrong openProject() definition and add jsDoc to it
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ This repository uses [changesets](https://github.com/changesets/changesets) to a
If the PR you're about to open is a bugfix/feature visible to users of the Biome toolchain or of the published Biome crates, you are encouraged to provide a **changeset** . To *create* a changeset, use the following command (*don't create it manually*):

```shell
just new-changeset
pnpm changeset
```
> [!NOTE]
> The script uses `pnpm` under the hoods, so make sure to have ran `pnpm i` from the root of the repository before running this script.
Expand Down
6 changes: 5 additions & 1 deletion packages/@biomejs/js-api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,11 @@ export class Biome {
}
}

openProject(): ProjectKey;
/**
* Open a possible workspace project folder. Returns the key of said project. Use this key when you want to switch to different projects.
*
* @param {string} [path]
*/
openProject(path?: string): ProjectKey {
return this.workspace.openProject({
path: path || "",
Expand Down

0 comments on commit c385b27

Please sign in to comment.