Example #1
0
        private void windowEvents_WindowActivated(EnvDTE.Window gotFocus, EnvDTE.Window lostFocus)
        {
            if (gotFocus == null ||
                gotFocus.Kind != "Document" ||
                gotFocus.Document == null ||
                gotFocus.Document.FullName == _jsParserToolWindowManager.ActiveDocFullName)
            {
                return;
            }

            _jsParserToolWindowManager.CallParserForDocument(new VS2010CodeProvider(gotFocus.Document));
        }
Example #2
0
        private void windowEvents_WindowActivated(Window gotFocus, Window lostFocus)
        {
            if (gotFocus == null ||
                gotFocus.Kind != "Document" ||
                gotFocus.Document == null ||
                gotFocus.Document.FullName == _jsParserToolWindowManager.ActiveDocFullName)
            {
                return;
            }

            _jsParserToolWindowManager.CallParserForDocument(new VS2008CodeProvider(_applicationObject, gotFocus.Document));
        }