Comments (5)
@ematipico I made a PR, hope it helps.
from biome.
Our LSP doesn't support workspaces yet. We have a task to implement and support them: #1573
from biome.
Environment information
CLI: Version: 1.5.2 Color support: true Platform: CPU Architecture: x86_64 OS: linux Environment: BIOME_LOG_DIR: unset NO_COLOR: unset TERM: "xterm-256color" JS_RUNTIME_VERSION: "v21.1.0" JS_RUNTIME_NAME: "node" NODE_PACKAGE_MANAGER: "pnpm/8.10.2" Biome Configuration: Status: Loaded successfully Formatter disabled: false Linter disabled: false Organize imports disabled: false VCS disabled: true Workspace: Open Documents: 0
What happened?
I have several "Folders" in my VS Code "Workspace". Like this:
Some of those "Folders" are projects that use Biome, and some aren't. Biome's VS Code extension doesn't handle this very gracefully. There are several issues:
Bug 1: First "Folder" in the VS Code "Workspace" must be a Biome project for any others to work
If you order the "Folders" in your "Workspace" such that the top-most one doesn't have Biome installed, none of the files you open in the older "Folders" will run through Biome checks. It seems like the top-most "Folder" must be a Biome project for the Biome VS Code extension to do anything and will instead show this warning:
Bug 2: Biome runs on "Folders" that aren't Biome projects
The inverse of Bug 1 also exists, where if the top-most "Folder" is a Biome project, all other "Folders" will get checked by Biome, even if they don't have Biome installed or configured.
Bug 3: Duplicated problems
For every folder with Biome installed, the "Problems" tab shows duplicate Biome errors:
Note how each of those problems is the same problem on the same line & column. It's a duplicate.
Expected result
Expectations listed above in each bug
Code of Conduct
- I agree to follow Biome's Code of Conduct
Thank you for opening the issue, I had the same problem.
from biome.
Hi, for the time being, could you describe this limitation in https://biomejs.dev/reference/vscode/ (under "Troubleshooting")?
I wasted an hour trying to get my biome.json
working in a multi-root workspace where only one root uses Biome (other roots still depend on Prettier). I managed to enable formatting with Biome on save, but biome.json
seems to be ignored by the extension (it works just fine when I manually type npx biome format
).
Am I right that it's simply impossible to do this for now, and all I can do is set up isolated VSCode workspaces for each my Biome-enabled folder?
from biome.
Hi, for the time being, could you describe this limitation in biomejs.dev/reference/vscode (under "Troubleshooting")?
I wasted an hour trying to get my
biome.json
working in a multi-root workspace where only one root uses Biome (other roots still depend on Prettier). I managed to enable formatting with Biome on save, butbiome.json
seems to be ignored by the extension (it works just fine when I manually typenpx biome format
).Am I right that it's simply impossible to do this for now, and all I can do is set up isolated VSCode workspaces for each my Biome-enabled folder?
Apologies, @smikitky, for the time you wasted. Would you like to send a PR yourself?
from biome.
Related Issues (20)
- 📎 Implement a fix for `noUselessCatch`
- 🐛 https://biomejs.dev/ is not accessible HOT 5
- 🐛 `biome-ignore` comments are detached by the formatter HOT 2
- 💅 lint/correctness/noConstantCondition does not consider enums when apply the rule HOT 5
- useImportExtensions should use .js extension for TypeScript imports HOT 13
- 📎 Implement `useErrorMessage` - `unicorn/error-message`
- 💅 linter does not detect vue-bound attributes HOT 2
- `noUndeclaredVariables` erroring on self-referential TypeScript enums HOT 1
- `noUndeclaredVariables` not properly handling `type` import HOT 1
- 🐛 Biome language server crashes on invalid biome.json
- 📎 Non distinct architecture specific package names HOT 1
- values-variables
- 📎 Support `{a,b}` glob pattern syntax for includes/excludes HOT 3
- 🐛 biome breaks characters in stdin mode HOT 2
- 🐛 Buggy side-effect caused by previous fix that made `biome.json(c)` un-ignore-able HOT 3
- add `composes` for noUnknownProperty.
- Implement a lint rule to highlight the deprecated `@value` at-rule. HOT 4
- 💅 False positive for `lint/suspicious/noEmptyBlockStatements` with constructor HOT 1
- add `:local` and `:global` pseudo class.
- 🐛 <TITLE> CSS Formatter makes lowercase identifiers for composes in CSS Modules.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from biome.