@@ -377,64 +377,45 @@ private static IVsWindowFrame TryCaptureAssistDocumentFrame()
377377 private static void ShowCopilotNotAgentModeUserMessage ( IVsWindowFrame assistDocumentFrame )
378378 {
379379 ThreadHelper . ThrowIfNotOnUIThread ( ) ;
380- AssistDocumentInfoBar . TryShowWarning (
381- assistDocumentFrame ,
380+ ShowAssistNotification (
382381 CxAssistConstants . CopilotNotAgentModeInfoBarMessage ,
383- ( ) => ShowAssistNotification (
384- CxAssistConstants . CopilotNotAgentModeInfoBarMessage ,
385- isError : false ,
386- useWarningSeverity : true ) ) ;
382+ isError : false ,
383+ useWarningSeverity : true ) ;
387384 }
388385
389386 /// <summary>
390387 /// Shows Copilot not installed warning in the info bar.
391388 /// </summary>
392389 private static void ShowCopilotNotInstalledMessage ( IVsWindowFrame assistDocumentFrame )
393390 {
394- if ( assistDocumentFrame == null ) return ;
395391 ThreadHelper . ThrowIfNotOnUIThread ( ) ;
396- AssistDocumentInfoBar . TryShowWarning (
397- assistDocumentFrame ,
392+ ShowAssistNotification (
398393 CxAssistConstants . CopilotNotInstalledInfoBarMessage ,
399- ( ) => ShowAssistNotification (
400- CxAssistConstants . CopilotNotInstalledInfoBarMessage ,
401- isError : false ,
402- useWarningSeverity : true ) ) ;
394+ isError : false ,
395+ useWarningSeverity : true ) ;
403396 }
404397
405398 /// <summary>
406399 /// Shows Copilot Chat failed to open warning in the info bar.
407400 /// </summary>
408401 private static void ShowCopilotChatOpenFailedMessage ( IVsWindowFrame assistDocumentFrame )
409402 {
410- if ( assistDocumentFrame == null ) return ;
411403 ThreadHelper . ThrowIfNotOnUIThread ( ) ;
412- AssistDocumentInfoBar . TryShowWarning (
413- assistDocumentFrame ,
404+ ShowAssistNotification (
414405 CxAssistConstants . CopilotChatOpenFailedInfoBarMessage ,
415- ( ) => ShowAssistNotification (
416- CxAssistConstants . CopilotChatOpenFailedInfoBarMessage ,
417- isError : false ,
418- useWarningSeverity : true ) ) ;
406+ isError : false ,
407+ useWarningSeverity : true ) ;
419408 }
420409
421410 /// <summary>
422411 /// Shows Copilot prompt preparation failed error in the info bar (as warning with error fallback).
423412 /// </summary>
424413 private static void ShowCopilotPromptPrepareFailedMessage ( IVsWindowFrame assistDocumentFrame )
425414 {
426- if ( assistDocumentFrame == null )
427- {
428- ShowAssistNotification ( CxAssistConstants . CopilotPromptPrepareFailedInfoBarMessage , isError : true ) ;
429- return ;
430- }
431415 ThreadHelper . ThrowIfNotOnUIThread ( ) ;
432- AssistDocumentInfoBar . TryShowWarning (
433- assistDocumentFrame ,
416+ ShowAssistNotification (
434417 CxAssistConstants . CopilotPromptPrepareFailedInfoBarMessage ,
435- ( ) => ShowAssistNotification (
436- CxAssistConstants . CopilotPromptPrepareFailedInfoBarMessage ,
437- isError : true ) ) ;
418+ isError : true ) ;
438419 }
439420
440421 /// <summary>
@@ -443,15 +424,11 @@ private static void ShowCopilotPromptPrepareFailedMessage(IVsWindowFrame assistD
443424 /// </summary>
444425 private static void ShowCopilotPasteOnlyVs2026Message ( IVsWindowFrame assistDocumentFrame )
445426 {
446- if ( assistDocumentFrame == null ) return ;
447427 ThreadHelper . ThrowIfNotOnUIThread ( ) ;
448- AssistDocumentInfoBar . TryShowWarning (
449- assistDocumentFrame ,
428+ ShowAssistNotification (
450429 CxAssistConstants . CopilotPasteOnlyVs2026InfoBarMessage ,
451- ( ) => ShowAssistNotification (
452- CxAssistConstants . CopilotPasteOnlyVs2026InfoBarMessage ,
453- isError : false ,
454- useWarningSeverity : true ) ) ;
430+ isError : false ,
431+ useWarningSeverity : true ) ;
455432 }
456433
457434 private static void ScheduleAutomatedPromptEntry ( string prompt , IVsWindowFrame assistDocumentFrame )
0 commit comments