@@ -94,7 +94,6 @@ export async function requestProjectInformation(server: OmniSharpServer, request
9494export async function requestWorkspaceInformation ( server : OmniSharpServer ) {
9595 const response = await server . makeRequest < protocol . WorkspaceInformationResponse > ( protocol . Requests . Projects ) ;
9696 if ( response . MsBuild && response . MsBuild . Projects ) {
97- let blazorWebAssemblyProjectFound = false ;
9897
9998 for ( const project of response . MsBuild . Projects ) {
10099 project . IsWebProject = isWebProject ( project ) ;
@@ -104,13 +103,6 @@ export async function requestWorkspaceInformation(server: OmniSharpServer) {
104103
105104 project . IsBlazorWebAssemblyHosted = isProjectBlazorWebAssemblyHosted ;
106105 project . IsBlazorWebAssemblyStandalone = isProjectBlazorWebAssemblyProject && ! project . IsBlazorWebAssemblyHosted ;
107-
108- blazorWebAssemblyProjectFound = blazorWebAssemblyProjectFound || isProjectBlazorWebAssemblyProject ;
109- }
110-
111- if ( blazorWebAssemblyProjectFound && ! vscode . extensions . getExtension ( 'ms-dotnettools.blazorwasm-companion' ) ) {
112- // No need to await this call, we don't depend on the prompt being shown.
113- showBlazorDebuggingExtensionPrompt ( server ) ;
114106 }
115107 }
116108
@@ -268,17 +260,3 @@ function isWebProject(project: MSBuildProject): boolean {
268260 // TODO: Have OmniSharp provide the list of SDKs used by a project and check that list instead.
269261 return projectFileText . toLowerCase ( ) . indexOf ( 'sdk="microsoft.net.sdk.web"' ) >= 0 ;
270262}
271-
272- async function showBlazorDebuggingExtensionPrompt ( server : OmniSharpServer ) {
273- const promptShownKey = 'blazor_debugging_extension_prompt_shown' ;
274- if ( ! server . sessionProperties [ promptShownKey ] ) {
275- server . sessionProperties [ promptShownKey ] = true ;
276-
277- const msg = 'The Blazor WASM Debugging Extension is required to debug Blazor WASM apps in VS Code.' ;
278- const result = await vscode . window . showInformationMessage ( msg , 'Install Extension' , 'Close' ) ;
279- if ( result === 'Install Extension' ) {
280- const uriToOpen = vscode . Uri . parse ( 'vscode:extension/ms-dotnettools.blazorwasm-companion' ) ;
281- await vscode . commands . executeCommand ( 'vscode.open' , uriToOpen ) ;
282- }
283- }
284- }
0 commit comments