Skip to content

Commit 38d284c

Browse files
author
Tina Schrepfer (LI)
committed
Address acrolinx
1 parent 7c54aef commit 38d284c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

docs/extensibility/visualstudio.extensibility/editor/walkthroughs/classification.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ ms.subservice: extensibility-integration
1313
# Extending Visual Studio editor with a new classification tagger
1414

1515
A Visual Studio extension can classify a document's syntax allowing for
16-
the text to be colorized accordingly. This is achieved by contributing
16+
the text to be colorized accordingly, which is achieved by contributing
1717
a tagger that returns `ClassificationTag` values.
1818

1919
A detailed description of how to provide a tagger can be found in the
2020
[Extending Visual Studio editor with a new tagger](./taggers.md) article.
2121

22-
Following the article linked above, we implement a tagger provider and a
22+
To provide classification, we first implement a tagger provider and a
2323
tagger:
2424

2525
```cs
@@ -40,15 +40,14 @@ internal class MyClassificationTagger :
4040
```
4141

4242
Since we want the document colorization to appear as instantly as possible,
43-
the tagger will need to be as fast as possible. The article linked above
43+
the generation of taggers need to be as fast as possible. [This](./taggers.md) article
4444
stresses the importance of:
4545
- only generating tags for the requested document portion (or a small
4646
superset of it), not the whole document;
4747
- avoiding parsing the whole document in order to generate tags.
4848

4949
Once the tagger structure is ready and the syntax parsing for the specific
50-
file format is implemented, the tagger can provide text classification, by
51-
simply creating `ClassificationTag` values using the available
50+
file format is implemented, the tagger can provide text classification, by creating `ClassificationTag` values using the available
5251
`ClassificationType` know values, and calling `UpdateTagsAsync`.
5352

5453
```cs

0 commit comments

Comments
 (0)