@@ -169,8 +169,6 @@ export async function requestProjectInformation(server: OmniSharpServer, request
169
169
export async function requestWorkspaceInformation ( server : OmniSharpServer ) {
170
170
const response = await server . makeRequest < protocol . WorkspaceInformationResponse > ( protocol . Requests . Projects ) ;
171
171
if ( response . MsBuild && response . MsBuild . Projects ) {
172
- let blazorWebAssemblyProjectFound = false ;
173
-
174
172
for ( const project of response . MsBuild . Projects ) {
175
173
project . IsWebProject = isWebProject ( project . Path ) ;
176
174
@@ -188,13 +186,6 @@ export async function requestWorkspaceInformation(server: OmniSharpServer) {
188
186
project . IsBlazorWebAssemblyHosted = isProjectBlazorWebAssemblyHosted ;
189
187
project . IsBlazorWebAssemblyStandalone =
190
188
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 ) ;
198
189
}
199
190
}
200
191
@@ -357,17 +348,3 @@ export async function resolveInlayHints(
357
348
) {
358
349
return server . makeRequest < protocol . InlayHint > ( protocol . Requests . InlayHintResolve , request , context ) ;
359
350
}
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