protected override void Initialize() { base.Initialize(); highlightsService = DocumentContext.RoslynWorkspace.Services.GetLanguageServices(LanguageNames.CSharp).GetService <IDocumentHighlightsService> (); Editor.SetSelectionSurroundingProvider(new CSharpSelectionSurroundingProvider(Editor, DocumentContext)); fallbackHighlighting = Editor.SyntaxHighlighting; UpdateHighlighting(); DocumentContext.AnalysisDocumentChanged += HandleAnalysisDocumentChanged; }