internal static bool TryGetStartupFileAndDirectory(out string filename, out string dir, out ProjectAnalyzer analyzer) { var startupProject = GetStartupProject(); if (startupProject != null) { filename = startupProject.GetStartupFile(); dir = startupProject.GetWorkingDirectory(); analyzer = ((PythonProjectNode)startupProject).GetAnalyzer(); } else { var textView = CommonPackage.GetActiveTextView(); if (textView == null) { filename = null; dir = null; analyzer = null; return(false); } filename = textView.GetFilePath(); analyzer = textView.GetAnalyzer(); dir = Path.GetDirectoryName(filename); } return(true); }
internal override LibraryManager CreateLibraryManager(CommonPackage package) { return(new PythonLibraryManager((PythonToolsPackage)package)); }
internal abstract LibraryManager CreateLibraryManager(CommonPackage package);