internal static async System.Threading.Tasks.Task <bool> LintLintLint(bool fixErrors, UIHierarchyItem[] selectedItems) { IEnumerable <string> files = WebLinterPackage.Settings.UseTsConfig ? TsconfigLocations.FindPathsFromSelectedItems(selectedItems) : LintFileLocations.FindPathsFromSelectedItems(selectedItems); if (files.Any()) { string[] filterFileNames = WebLinterPackage.Settings.UseTsConfig ? TsconfigLocations.FindFilterFiles(selectedItems) : null; return(await LinterService.Lint(showErrorList : true, fixErrors : fixErrors, callSync : false, fileNames : files.ToArray(), filterFileNames : filterFileNames)); } else { WebLinterPackage.Dte.StatusBar.Text = $"No {(WebLinterPackage.Settings.UseTsConfig ? "tsconfig.json" : "ts or tsx")} files found to {(fixErrors ? "fix" : "lint")}"; return(false); } }