From 6c4e8403081b1008255dcf7ebed9ce50d2074b06 Mon Sep 17 00:00:00 2001 From: Andrew Hall Date: Tue, 3 Dec 2024 16:40:06 -0800 Subject: [PATCH] Restore WASM debug hook (#7843) --- src/razor/src/extension.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/razor/src/extension.ts b/src/razor/src/extension.ts index fe96bbcc8..fde0a2039 100644 --- a/src/razor/src/extension.ts +++ b/src/razor/src/extension.ts @@ -50,6 +50,7 @@ import { RazorFormatNewFileHandler } from './formatNewFile/razorFormatNewFileHan import { InlayHintHandler } from './inlayHint/inlayHintHandler'; import { InlayHintResolveHandler } from './inlayHint/inlayHintResolveHandler'; import { getComponentPaths } from '../../lsptoolshost/builtInComponents'; +import { BlazorDebugConfigurationProvider } from './blazorDebug/blazorDebugConfigurationProvider'; // We specifically need to take a reference to a particular instance of the vscode namespace, // otherwise providers attempt to operate on the null extension. @@ -295,6 +296,9 @@ export async function activate( localRegistrations.length = 0; }); + const provider = new BlazorDebugConfigurationProvider(logger, vscodeType); + context.subscriptions.push(vscodeType.debug.registerDebugConfigurationProvider('blazorwasm', provider)); + languageServerClient.onStarted(async () => { await documentManager.initialize(); });