Skip to content

Commit 92cbce1

Browse files
author
Alexander Chen
committed
added CodeLens support to XMLFeatures.md
1 parent e903708 commit 92cbce1

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

docs/Features/XMLFeatures.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,18 @@ This also works for other portions of an XML document, such as attributes and th
158158

159159
![Selection Range](../images/Features/SelectionRange.gif)
160160

161+
## CodeLens
162+
163+
CodeLens is supported for `.xml` files for a number of different features.
164+
165+
### CodeLens 'Bind to grammar/schema...'
166+
167+
If the current XML document is not bound using a `xml-model` tag or a root element doesn't have a `xsi:noNameSpaceLocation` attribute, the CodeLens will appear above the snippet, which will trigger the ["Bind to grammar/schema file"]() command.
168+
169+
![CodeLens Bind](../images/Features/CodeLensBind.png)
170+
171+
For more information on CodeLens capabilities, see [CodeLens](../CodeLens.md#code-lens).
172+
161173
## Custom Feature Implementation
162174

163175
You can implement your own feature with a [Java extension](../Extensions.md).
5.32 KB
Loading

0 commit comments

Comments
 (0)