Open yann-combarnous opened 2 weeks ago
We were tracking this in #1570, but I think we can keep this one open because users are constantly reporting it.
Here're some context for OP and other users who encounter similar issues: #1570 actually covers two issues. One is multiple instances of biome in vscode, and the other is different code actions that happen in the same part of code will sometimes break it. I see this one as the second issue. I did a preliminary attept to fix the it in #2237, but it turned out that I didn't fix it completely. I will revisit the second issue once I finished my other tasks (In the meantime anyone who is interested is welcome to tackle this).
I envision to fix it by using conflict-free replicated data types (CRDT) because the root cause is code actions that mutating some places can cause other code actions that happen in the same time fixing text ranges in the wrong places. I read the cola source code sometime ago and had always wanted to experiment it in our codebase but I haven't started to do it.
I envision to fix it by using conflict-free replicated data types (CRDT) because the root cause is code actions that mutating some places can cause other code actions that happen in the same time fixing text ranges in the wrong places. I read the cola source code sometime ago and had always wanted to experiment it in our codebase but I haven't started to do it.
I worked on CRDTs in my previous positions (PhD and posdoc positions). You are welcome if you have any question.
Environment information
Rule name
noUnusedImports
Playground link
https://biomejs.dev/playground/?lintRules=all&code=aQBtAHAAbwByAHQAIAB7ACAAdQBzAGUATQB1AHQAYQB0AGkAbwBuACwAIAB1AHMAZQBRAHUAZQByAHkAQwBsAGkAZQBuAHQAIAB9ACAAZgByAG8AbQAgACcAQAB0AGEAbgBzAHQAYQBjAGsALwByAGUAYQBjAHQALQBxAHUAZQByAHkAJwA7AAoACgBlAHgAcABvAHIAdAAgAGMAbwBuAHMAdAAgAG0AdQB0AGEAdABpAG8AbgAgAD0AIAB1AHMAZQBNAHUAdABhAHQAaQBvAG4AOwA%3D
Expected result
Before fix:
After fix:
Code of Conduct