
Through debugging, I found that when the value of "IEditorView.SyntaxEditor.Document.ParseData" is updated, the diagnosis of the current document will be cleared.
The way I achieve diagnosis is to inherit ParseErrorTagger and add diagnostic information through the Add method.
Then register the service through:
this.RegisterService(new CodeDocumentTaggerProvider<DiagnosticTaggerClass>(typeof(DiagnosticTaggerClass)));
And there is no information related to diagnosis in my ParseData, why update ParseData will cause the diagnosis to be cleared.
Is this normal? I checked all the codes, only commented out the code used to update ParseData, the diagnosis can be displayed normally.