提交 06c44db9 编写于 作者: C CyrusNajmabadi

Add comment.

上级 6c5faa65
......@@ -39,6 +39,8 @@ internal partial class Session
var caretPosition = Controller.TextView.GetCaretPoint(Controller.SubjectBuffer).Value;
var disconnectedBufferGraph = new DisconnectedBufferGraph(Controller.SubjectBuffer, Controller.TextView.TextBuffer);
// If this is a retrigger command then update the retrigger-id. This way
// any in-flight retrigger-updates will immediately bail out.
if (triggerInfo.TriggerReason == SignatureHelpTriggerReason.RetriggerCommand)
{
Interlocked.Increment(ref _retriggerId);
......@@ -200,6 +202,8 @@ private static bool CompareParts(TaggedText p1, TaggedText p2)
// to the extension crashing.
foreach (var provider in providers)
{
// If this is a retrigger command, and another retrigger command has already
// been issued then we can bail out immediately.
if (triggerInfo.TriggerReason == SignatureHelpTriggerReason.RetriggerCommand &&
id != _retriggerId)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册