Commit c0b2a6c
committed
refactor: use existing strip-bom package instead of custom bomUtils
- Remove src/utils/bomUtils.ts and its test file
- Update imports in extract-text.ts to use strip-bom package
- Update imports in read-lines.ts to use strip-bom package
- Keep the empty file detection logic in readFileTool.ts unchanged
This eliminates code duplication by using the existing strip-bom package
that is already used in DiffViewProvider.ts and CustomModesManager.ts.1 parent 5063f31 commit c0b2a6c
File tree
4 files changed
+4
-127
lines changed- src
- integrations/misc
- utils
- __tests__
4 files changed
+4
-127
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
This file was deleted.
This file was deleted.
0 commit comments