예제 #1
0
 /// <summary>
 /// Initiates processing of pending changes asynchronously. When processing
 /// completes, tree will invoke completion callback on UI thread. Useful when building
 /// completion/intellisense list asynchronously.
 /// </summary>
 public void ProcessChangesAsync(Action treeUpdateCompleteCallback)
 {
     if (this.IsDirty)
     {
         TreeUpdateTask.RegisterCompletionCallback(treeUpdateCompleteCallback);
         TreeUpdateTask.ProcessPendingTextBufferChanges(true);
     }
     else
     {
         treeUpdateCompleteCallback.Invoke();
     }
 }