Commit f469ef5
committed
fix(issue-6): round-4 fixes + cross-surface coverage (CodeLens, Add-Key, CLI, TUI, sync)
VS Code extension:
- CodeLens for code files now uses the backend scan (cacheService.scanFile)
instead of client-side regex, so namespace/using segments are no longer
flagged as keys and value hints appear for any injected localizer (Q, Loc,
...), not only L.
- Add-Key dialog gained a per-language value matrix (default marked) and a
default-empty-value warning; buildAddKeyMessage takes a per-language map.
API (web/VS Code backend):
- ResourcesController.AddKey routes the "default"-keyed value to the suffix-less
default file regardless of configured DefaultLanguageCode (ResolveForFile).
CLI:
- `lrm add --lang default:value` resolves to the default file via IsDefault, so
it works when DefaultLanguageCode (e.g. "it") is configured.
TUI:
- AddNewKey writes via MergedLanguageColumns winner so a default-vs-culture
collision reliably routes the value to the default file.
Sync:
- FileRegenerator creates new language files in the group's own subfolder
instead of the project root.
Tests:
- New Issue6Scenario fixture project + integration tests (subfolder discovery,
default-code collision, nested namespace, @Inject localizers, multi-group
Add-Key).
- CLI language-resolution tests, TUI add-key routing tests, sync
new-language-in-subfolder + nested-group push/pull round-trip tests, CodeLens
unit tests, Add-Key message builder tests.1 parent 5953e00 commit f469ef5
25 files changed
Lines changed: 1231 additions & 104 deletions
File tree
- Commands
- Controllers
- LocalizationManager.Core/Cloud
- LocalizationManager.Tests
- IntegrationTests
- TestData/Issue6Scenario
- Resources
- Components/Account/Pages
- Source
- Components/Account/Pages
- UnitTests
- Cloud
- UI/ResourceEditorWindow
- vscode-extension/src
- backend
- providers
- test
- unit
- views
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
| 167 | + | |
175 | 168 | | |
176 | 169 | | |
177 | | - | |
| 170 | + | |
178 | 171 | | |
179 | 172 | | |
180 | 173 | | |
| |||
235 | 228 | | |
236 | 229 | | |
237 | 230 | | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
238 | 247 | | |
239 | 248 | | |
240 | 249 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
327 | | - | |
328 | | - | |
329 | 327 | | |
330 | 328 | | |
331 | 329 | | |
332 | | - | |
| 330 | + | |
333 | 331 | | |
334 | 332 | | |
335 | 333 | | |
| |||
344 | 342 | | |
345 | 343 | | |
346 | 344 | | |
347 | | - | |
| 345 | + | |
348 | 346 | | |
349 | 347 | | |
350 | 348 | | |
| |||
369 | 367 | | |
370 | 368 | | |
371 | 369 | | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
372 | 391 | | |
373 | 392 | | |
374 | 393 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
48 | 52 | | |
49 | 53 | | |
50 | 54 | | |
51 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
52 | 63 | | |
53 | 64 | | |
54 | 65 | | |
| |||
93 | 104 | | |
94 | 105 | | |
95 | 106 | | |
96 | | - | |
| 107 | + | |
| 108 | + | |
97 | 109 | | |
98 | 110 | | |
99 | 111 | | |
100 | 112 | | |
101 | 113 | | |
102 | 114 | | |
| 115 | + | |
103 | 116 | | |
104 | 117 | | |
105 | 118 | | |
| |||
232 | 245 | | |
233 | 246 | | |
234 | 247 | | |
| 248 | + | |
235 | 249 | | |
236 | 250 | | |
237 | | - | |
238 | | - | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
239 | 254 | | |
240 | 255 | | |
241 | 256 | | |
| |||
357 | 372 | | |
358 | 373 | | |
359 | 374 | | |
360 | | - | |
| 375 | + | |
361 | 376 | | |
362 | 377 | | |
363 | 378 | | |
364 | 379 | | |
365 | 380 | | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
366 | 385 | | |
367 | 386 | | |
368 | 387 | | |
| |||
374 | 393 | | |
375 | 394 | | |
376 | 395 | | |
377 | | - | |
378 | | - | |
| 396 | + | |
| 397 | + | |
379 | 398 | | |
380 | | - | |
381 | | - | |
| 399 | + | |
| 400 | + | |
382 | 401 | | |
383 | | - | |
384 | | - | |
| 402 | + | |
| 403 | + | |
385 | 404 | | |
386 | | - | |
387 | | - | |
| 405 | + | |
| 406 | + | |
388 | 407 | | |
389 | | - | |
390 | | - | |
| 408 | + | |
| 409 | + | |
391 | 410 | | |
392 | | - | |
393 | | - | |
| 411 | + | |
| 412 | + | |
394 | 413 | | |
395 | | - | |
396 | | - | |
| 414 | + | |
| 415 | + | |
397 | 416 | | |
398 | | - | |
399 | | - | |
| 417 | + | |
| 418 | + | |
400 | 419 | | |
401 | 420 | | |
402 | 421 | | |
| |||
Lines changed: 95 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
0 commit comments