public static void StartUpdate (TextDocument doc, SyntaxMode mode, int startOffset, int endOffset) { lock (updateQueue) { updateQueue.Enqueue (new UpdateWorker (doc, mode, startOffset, endOffset)); } queueSignal.Set (); }
void HandleTextReplaced(object sender, DocumentChangeEventArgs e) { if (doc == null || doc.SuppressHighlightUpdate || doc.CurrentAtomicUndoOperationType == OperationType.Format) { return; } SyntaxModeService.StartUpdate(doc, this, e.Offset, e.Offset + e.InsertionLength); }