예제 #1
0
        private void UpdateErrorsList()
        {
            ErrorListHelper.Suspend();
            ErrorListHelper.RemoveAllForDocument(this._document.FilePath);
            ErrorListHelper.Resume();

            foreach (var tag in this._collectedTags)
            {
                ErrorListHelper.Add(tag);
            }
        }
예제 #2
0
파일: VSPackage.cs 프로젝트: wayrex/TSLint
        protected override void Initialize()
        {
            // Get directory of the currently opened solution.
            var dte2 = (DTE2)Package.GetGlobalService(typeof(SDTE));

            if (dte2 != null)
            {
                // Init linter.
                TsLint.Init(dte2);

                // Init Error List helper.
                ErrorListHelper.Init(this);
            }

            base.Initialize();
        }
예제 #3
0
 private void OnViewClosed(object sender, EventArgs e)
 {
     ErrorListHelper.Suspend();
     ErrorListHelper.RemoveAllForDocument(this._document.FilePath);
     ErrorListHelper.Resume();
 }