Пример #1
0
        private static async Task ShowInfoBarAsync(ExceptionalConditions conditions)
        {
            await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();

            InfoBar.CreateInfoBarsForExceptionalConditionsAsync(conditions).FileAndForget(FileAndForgetEventName.InfoBarOpenFailure);

            // After Sarif results loaded to Error List, make sure Viewer package is loaded
            SarifViewerPackage.LoadViewerPackage();
        }
        private static void ErrorListService_LogProcessed(object sender, LogProcessedEventArgs e)
        {
            ThreadHelper.ThrowIfNotOnUIThread();

            if (!SarifViewerPackage.IsUnitTesting)
            {
                InfoBar.CreateInfoBarsForExceptionalConditionsAsync(e.ExceptionalConditions).FileAndForget(FileAndForgetEventName.InfoBarOpenFailure);

                // After Sarif results loaded to Error List, make sure Viewer package is loaded
                SarifViewerPackage.LoadViewerPackage();
            }
        }