语句完成:IList <completionset> completeSets

时间:2018-09-05 09:12:04

标签: c# visual-studio-2017 vsix

这可能是一个旧线程,但是我想知道是否有人可以在这里帮助我。我已经按照步骤演练:显示语句完成,但是以某种方式无法使其运行。

一旦我在新的VS2017实例的文本文件中键入“ a”,它就会向我显示一个

  

System.NullReferenceException:'对象引用未设置为对象的实例。'

在TestCompletionCommandHandler.cs中:

public int Exec(ref Guid pguidCmdGroup, uint nCmdID, 
                uint nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
{
    .....

    // If there is no active session, bring up completion
    if (m_session == null || m_session.IsDismissed) 
    {
        this.TriggerCompletion();
        m_session.Filter();    **System.NullReferenceException: 'Object reference not set to an instance of an object.'**
    }
}

如果有人可以在这里帮助我,我将非常感激。

0 个答案:

没有答案