Skip to content

Commit

Permalink
Restore WASM debug hook (#7843) (#7845)
Browse files Browse the repository at this point in the history
  • Loading branch information
dibarbet authored Dec 4, 2024
2 parents 6518ff0 + 6c4e840 commit e673cc2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/razor/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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();
});
Expand Down

0 comments on commit e673cc2

Please sign in to comment.