Overview
Two new features were added in branch feat/inlay-hints-and-code-lens:
getInlayHints() — shows attribute type and required markers inline
getCodeLens() — shows "N references" above named elements
This issue tracks writing test cases and verifying edge case behavior for both.
Inlay Hints — getInlayHints()
Happy path
Edge cases
Code Lens — getCodeLens()
Happy path
Edge cases
Files to add tests in
src/services/xmlInlayHints.test.ts
src/services/xmlCodeLens.test.ts
Overview
Two new features were added in branch
feat/inlay-hints-and-code-lens:getInlayHints()— shows attribute type and required markers inlinegetCodeLens()— shows "N references" above named elementsThis issue tracks writing test cases and verifying edge case behavior for both.
Inlay Hints —
getInlayHints()Happy path
xs:boolean) → produces: booleantype hintuse="required"in schema → produces*parameter hintEdge cases
xs:stringtype → no hint produced (skip rule)<el attr />) →valueEndisundefined, must not crash[][]Code Lens —
getCodeLens()Happy path
"N references"(plural)key,ref,target,href,type,baseEdge cases
"0 references""1 reference"(singular, not "1 references")namevalue → both lenses show the same countnameattribute → not included in results[]Files to add tests in
src/services/xmlInlayHints.test.tssrc/services/xmlCodeLens.test.ts