Skip to content

Commit bf65278

Browse files
committed
removing blazor debugging extension
1 parent 8c4a7ab commit bf65278

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

src/omnisharp/utils.ts

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

Comments
 (0)