You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(vscode): resolve correctness & robustness bugs from extension bug hunt
Adversarially-verified bug hunt across the VS Code extension. Fixes:
- resxDiagnostics: use path.basename so language-code extraction works on
Windows (lastIndexOf('/') returned -1, breaking all diagnostics there).
- jsonDocumentParser: duplicate simple key names in different scopes now
resolve to their own location (scoped offset search); multi-line values
carry a real endLine; getKeyRange returns null for missing keys instead
of a bogus 0,0 range.
- extension: ensureBackendReady() guard so commands don't crash with
'Cannot read properties of undefined' when backend init failed; the
Restart Backend recovery path stays usable. File-watcher refresh is
debounced + serialized to avoid concurrent invalidate/refetch races.
- dashboard: coerce stats numbers so a malformed response never renders NaN.
- resourceTreeView: null-safe key.values to avoid crashing the tree render.
- definitionProvider: fallback paths return a Range (highlights) not a
bare Position.
- completionProvider: invalidateCache() also drops the config cache so
lrm.json changes take effect immediately.
- statusBar: tooltip shows 0 instead of undefined total keys.
- resourceEditor: guard missing default language in Auto-Translate.
- codeLens/cacheService: data-annotation keys now resolve details and
coverage against the group named by their ResourceType (already on the
wire as resourceTypeClassName); getMissingLanguages is group-aware.
Adds regression tests for the JSON parser and CodeLens fixes.
0 commit comments