/// <summary> /// Listens to 'nodes removed' event which fires when user /// deletes text that generated AST nodes or pastes over /// new content. This allows validator to remove related /// errors from the task list quickly so they don't linger /// until the next validation pass. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void OnNodesRemoved(object sender, TreeNodesRemovedEventArgs e) { if (_syntaxCheckEnabled) { foreach (var node in e.Nodes) { ClearResultsForNode(node); } } }
private void OnNodesRemoved(object sender, TreeNodesRemovedEventArgs e) { foreach (var node in e.Nodes) { StoreRemovedNodes(node); } }