@@ -169,8 +169,6 @@ export async function requestProjectInformation(server: OmniSharpServer, request
169169export async function requestWorkspaceInformation ( server : OmniSharpServer ) {
170170 const response = await server . makeRequest < protocol . WorkspaceInformationResponse > ( protocol . Requests . Projects ) ;
171171 if ( response . MsBuild && response . MsBuild . Projects ) {
172- let blazorWebAssemblyProjectFound = false ;
173-
174172 for ( const project of response . MsBuild . Projects ) {
175173 project . IsWebProject = isWebProject ( project . Path ) ;
176174
@@ -188,13 +186,6 @@ export async function requestWorkspaceInformation(server: OmniSharpServer) {
188186 project . IsBlazorWebAssemblyHosted = isProjectBlazorWebAssemblyHosted ;
189187 project . IsBlazorWebAssemblyStandalone =
190188 isProjectBlazorWebAssemblyProject && ! project . IsBlazorWebAssemblyHosted ;
191-
192- blazorWebAssemblyProjectFound = blazorWebAssemblyProjectFound || isProjectBlazorWebAssemblyProject ;
193- }
194-
195- if ( blazorWebAssemblyProjectFound && ! vscode . extensions . getExtension ( 'ms-dotnettools.blazorwasm-companion' ) ) {
196- // No need to await this call, we don't depend on the prompt being shown.
197- showBlazorDebuggingExtensionPrompt ( server ) ;
198189 }
199190 }
200191
@@ -357,17 +348,3 @@ export async function resolveInlayHints(
357348) {
358349 return server . makeRequest < protocol . InlayHint > ( protocol . Requests . InlayHintResolve , request , context ) ;
359350}
360-
361- async function showBlazorDebuggingExtensionPrompt ( server : OmniSharpServer ) {
362- const promptShownKey = 'blazor_debugging_extension_prompt_shown' ;
363- if ( ! server . sessionProperties [ promptShownKey ] ) {
364- server . sessionProperties [ promptShownKey ] = true ;
365-
366- const msg = 'The Blazor WASM Debugging Extension is required to debug Blazor WASM apps in VS Code.' ;
367- const result = await vscode . window . showInformationMessage ( msg , 'Install Extension' , 'Close' ) ;
368- if ( result === 'Install Extension' ) {
369- const uriToOpen = vscode . Uri . parse ( 'vscode:extension/ms-dotnettools.blazorwasm-companion' ) ;
370- await vscode . commands . executeCommand ( 'vscode.open' , uriToOpen ) ;
371- }
372- }
373- }
0 commit comments