@@ -93,15 +93,21 @@ export async function requestWorkspaceInformation(server: OmniSharpServer) {
9393 blazorWebAssemblyProjectFound = blazorWebAssemblyProjectFound || isProjectBlazorWebAssemblyProject ;
9494 }
9595
96- if ( ! blazorDetectionEnabled && blazorWebAssemblyProjectFound ) {
96+ const configuration = vscode . workspace . getConfiguration ( 'razor' ) ;
97+ const disableBlazorDebugPrompt = configuration . get ( 'disableBlazorDebugPrompt' ) ;
98+
99+ if ( ! blazorDetectionEnabled && blazorWebAssemblyProjectFound && ! disableBlazorDebugPrompt ) {
97100 // There's a Blazor Web Assembly project but VSCode isn't configured to debug the WASM code, show a notification
98101 // to help the user configure their VSCode appropriately.
99- vscode . window . showInformationMessage ( 'Additional setup is required to debug Blazor WebAssembly applications.' , 'Learn more' , 'Close' )
102+ vscode . window . showInformationMessage ( 'Additional setup is required to debug Blazor WebAssembly applications.' , 'Don\'t Ask Again' , ' Learn more', 'Close' )
100103 . then ( async result => {
101104 if ( result === 'Learn more' ) {
102105 const uriToOpen = vscode . Uri . parse ( 'https://aka.ms/blazordebugging#vscode' ) ;
103106 await vscode . commands . executeCommand ( 'vscode.open' , uriToOpen ) ;
104107 }
108+ if ( result === 'Don\'t Ask Again' ) {
109+ await configuration . update ( 'disableBlazorDebugPrompt' , true ) ;
110+ }
105111 } ) ;
106112 }
107113 }
@@ -234,11 +240,6 @@ async function isBlazorWebAssemblyProject(project: MSBuildProject): Promise<bool
234240}
235241
236242function hasBlazorWebAssemblyDebugPrerequisites ( ) {
237- const jsDebugExtension = vscode . extensions . getExtension ( 'ms-vscode.js-debug-nightly' ) ;
238- if ( ! jsDebugExtension ) {
239- return false ;
240- }
241-
242243 const debugJavaScriptConfigSection = vscode . workspace . getConfiguration ( 'debug.javascript' ) ;
243244 const usePreviewValue = debugJavaScriptConfigSection . get ( 'usePreview' ) ;
244245 if ( usePreviewValue ) {
0 commit comments