protected override void Reload() { using (new DebugTimer("Project Load")) { // Populate values from project properties before we do anything else. // Otherwise we run into race conditions where, for instance, _analysisIgnoredDirectories // is not properly set before the FileNodes get created in base.Reload() UpdateProjectNodeFromProjectProperties(); base.Reload(); SyncFileSystem(); NodejsPackage.Instance.CheckSurveyNews(false); ModulesNode.ReloadHierarchySafe(); #if DEV14 TryToAcquireTypings(new[] { "node" }); #endif } }
protected override void Reload() { using (new DebugTimer("Project Load")) { _intermediateOutputPath = Path.Combine(ProjectHome, GetProjectProperty("BaseIntermediateOutputPath")); if (_analyzer != null && _analyzer.RemoveUser()) { _analyzer.Dispose(); } _analyzer = new VsProjectAnalyzer(ProjectFolder); _analyzer.MaxLogLength = NodejsPackage.Instance.IntellisenseOptionsPage.AnalysisLogMax; LogAnalysisLevel(); base.Reload(); SyncFileSystem(); NodejsPackage.Instance.CheckSurveyNews(false); ModulesNode.ReloadHierarchySafe(); // scan for files which were loaded from cached analysis but no longer // exist and remove them. _analyzer.ReloadComplete(); var ignoredPaths = GetProjectProperty(NodejsConstants.AnalysisIgnoredDirectories); if (!string.IsNullOrWhiteSpace(ignoredPaths)) { _analysisIgnoredDirs = ignoredPaths.Split(';').Select(x => '\\' + x + '\\').ToArray(); } else { _analysisIgnoredDirs = new string[0]; } var maxFileSizeProp = GetProjectProperty(NodejsConstants.AnalysisMaxFileSize); int maxFileSize; if (maxFileSizeProp != null && Int32.TryParse(maxFileSizeProp, out maxFileSize)) { _maxFileSize = maxFileSize; } } }