@@ -13,13 +13,13 @@ ms.subservice: extensibility-integration
13
13
# Extending Visual Studio editor with a new classification tagger
14
14
15
15
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
17
17
a tagger that returns ` ClassificationTag ` values.
18
18
19
19
A detailed description of how to provide a tagger can be found in the
20
20
[ Extending Visual Studio editor with a new tagger] ( ./taggers.md ) article.
21
21
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
23
23
tagger:
24
24
25
25
``` cs
@@ -40,15 +40,14 @@ internal class MyClassificationTagger :
40
40
```
41
41
42
42
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
44
44
stresses the importance of:
45
45
- only generating tags for the requested document portion (or a small
46
46
superset of it), not the whole document;
47
47
- avoiding parsing the whole document in order to generate tags.
48
48
49
49
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
52
51
`ClassificationType ` know values , and calling `UpdateTagsAsync `.
53
52
54
53
```cs
0 commit comments