Skip to content

Commit cf15b59

Browse files
authored
Merge pull request #5579 from thaystg/thays_remove_blazor_debugging_extension
Removing blazor debugging extension
2 parents e5c352d + b93cd26 commit cf15b59

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

src/omnisharp/utils.ts

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,6 @@ export async function requestProjectInformation(server: OmniSharpServer, request
169169
export 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

Comments
 (0)