Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
feat(vscode): try to resolve the rome package from the workspace root (
Browse files Browse the repository at this point in the history
…#3717)

* feat(vscode): try to resolve the rome package from the workspace root

* update the extension readme
  • Loading branch information
leops authored Nov 14, 2022
1 parent b4508d3 commit 18594f5
Show file tree
Hide file tree
Showing 4 changed files with 204 additions and 71 deletions.
6 changes: 3 additions & 3 deletions editors/vscode/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ The extension automatically loads the `rome.json` file from the workspace’s ro

## Rome Resolution

The extension uses the Rome version shipped with the extension. We plan to automatically detect the Rome version from the project in an upcoming release.
The extension tries to use Rome from your project's local dependencies (`node_modules/rome`). We recommend adding Rome as a project dependency to ensure that NPM scripts and the extension use the same Rome version.

<!-- The extension tries to use Rome from your project's local dependencies (`node_modules/rome`). We recommend adding Rome as a project dependency to ensure that NPM scripts and the extension use the same Rome version.
You can also explicitly specify the `rome` binary the extension should use by configuring the `rome.lspBin` setting in your editor options.

The extension uses the Rome version bundled with the extension if the project has no dependency on Rome. -->
If the project has no dependency on Rome and no explicit path is configured, the extension uses the Rome version included in its bundle.

## Usage

Expand Down
Loading

0 comments on commit 18594f5

Please sign in to comment.