Commit 7ef74d3
committed
feat: add robust MCP file configuration writer
Adds FileWriter class that 'intelligently' handles plain JSON files, and JSON5 style files which VS Code supports.
- Detects & preserves JSON 5 features (comments, trailing commas)
- 'Smart' injects based on existing keys and indents1 parent 384ffc5 commit 7ef74d3
File tree
15 files changed
+1219
-44
lines changed- src/Install
- CodeEnvironment
- Mcp
- tests
- Unit/Install
- CodeEnvironment
- Mcp
- fixtures
15 files changed
+1219
-44
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
186 | 187 | | |
187 | 188 | | |
188 | 189 | | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
205 | 194 | | |
206 | 195 | | |
0 commit comments