@@ -94,7 +94,6 @@ export async function requestProjectInformation(server: OmniSharpServer, request
94
94
export async function requestWorkspaceInformation ( server : OmniSharpServer ) {
95
95
const response = await server . makeRequest < protocol . WorkspaceInformationResponse > ( protocol . Requests . Projects ) ;
96
96
if ( response . MsBuild && response . MsBuild . Projects ) {
97
- let blazorWebAssemblyProjectFound = false ;
98
97
99
98
for ( const project of response . MsBuild . Projects ) {
100
99
project . IsWebProject = isWebProject ( project ) ;
@@ -104,13 +103,6 @@ export async function requestWorkspaceInformation(server: OmniSharpServer) {
104
103
105
104
project . IsBlazorWebAssemblyHosted = isProjectBlazorWebAssemblyHosted ;
106
105
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 ) ;
114
106
}
115
107
}
116
108
@@ -268,17 +260,3 @@ function isWebProject(project: MSBuildProject): boolean {
268
260
// TODO: Have OmniSharp provide the list of SDKs used by a project and check that list instead.
269
261
return projectFileText . toLowerCase ( ) . indexOf ( 'sdk="microsoft.net.sdk.web"' ) >= 0 ;
270
262
}
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