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(); });