
Hi,
I need to understand what I need to do to improve the performance of tagging, when I'm using both a TokenTaggerProvider & a TextViewTaggerProvider in my language.
When I register both (see below), changing the selection in a large document (say, over a hundred lines) there is a noticeable lag. E.g. simply placing the caret over different items or selecting a block of text.Using one without the other & this problem goes away.
The WordHighlighter class was copied verbatim from your Highlight Word Quickstart.
The ReportScriptTokenTagger isn't particularly involved. It's based on TokenTagger & utilizes a classification type provider generated using your Language Designer tool.
Cheers,
Charles.
I need to understand what I need to do to improve the performance of tagging, when I'm using both a TokenTaggerProvider & a TextViewTaggerProvider in my language.
When I register both (see below), changing the selection in a large document (say, over a hundred lines) there is a noticeable lag. E.g. simply placing the caret over different items or selecting a block of text.
this.RegisterService(new TokenTaggerProvider<ReportScriptTokenTagger>());
this.RegisterService(new TextViewTaggerProvider<WordHighlighter>(typeof(WordHighlighter)));
The WordHighlighter class was copied verbatim from your Highlight Word Quickstart.
The ReportScriptTokenTagger isn't particularly involved. It's based on TokenTagger & utilizes a classification type provider generated using your Language Designer tool.
Cheers,
Charles.