Commit b8aa47f
authored
[Patch] Handle edge cases (#4)
* Improve unused style detection and add comprehensive tests
- Refactors the extension to enhance detection of unused styles, including improved handling of destructuring, spread, and direct usage cases.
- Adds debounce for diagnostics, robust text edit logic, and better error handling.
- Updates VSCode settings for Biome code actions. Introduces a comprehensive test suite covering style detection, usage analysis, and integration with autoCleanOnSave, ensuring reliability and correctness of the extension's core features.
* Support autoCleanOnSave in directory hierarchy
- Added logic to search for the 'react-native-stylesheet-cleaner.autoCleanOnSave' setting in .vscode/settings.json files up the directory tree, enabling support for multi-project workspaces.
- Also updated package.json to set a configuration title and scope for the setting.
* Update extension.ts
* Update extension.test.ts1 parent 5e1a634 commit b8aa47f
File tree
5 files changed
+1028
-190
lines changed- .claude
- .vscode
- src
- test
5 files changed
+1028
-190
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
0 commit comments