Skip to content

Remove debugger contribution from code & new insider version #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"publisher": "ms-vscode",
"displayName": "Experimental - Python for the Web",
"description": "Experimental support for Python in the Web using WebAssemblies",
"version": "0.3.0",
"version": "0.5.0",
"author": "Microsoft Corporation",
"license": "MIT",
"repository": {
Expand Down
12 changes: 6 additions & 6 deletions src/common/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function isCossOriginIsolated(): boolean {
return false;
}

class DebugConfigurationProvider implements DebugConfigurationProvider {
export class DebugConfigurationProvider implements DebugConfigurationProvider {

constructor(private readonly preloadPromise: Promise<void>) {
}
Expand Down Expand Up @@ -55,7 +55,7 @@ class DebugConfigurationProvider implements DebugConfigurationProvider {
}
}

class DebugAdapterDescriptorFactory implements DebugAdapterDescriptorFactory {
export class DebugAdapterDescriptorFactory implements DebugAdapterDescriptorFactory {
constructor(private readonly context: ExtensionContext, private readonly preloadPromise: Promise<void>) {
}
async createDebugAdapterDescriptor(session: DebugSession): Promise<DebugAdapterDescriptor> {
Expand Down Expand Up @@ -145,11 +145,11 @@ export function activate(context: ExtensionContext) {
})
);

const provider = new DebugConfigurationProvider(preloadPromise);
context.subscriptions.push(debug.registerDebugConfigurationProvider('python-web-wasm', provider));
// const provider = new DebugConfigurationProvider(preloadPromise);
// context.subscriptions.push(debug.registerDebugConfigurationProvider('python-web-wasm', provider));

const factory = new DebugAdapterDescriptorFactory(context, preloadPromise);
context.subscriptions.push(debug.registerDebugAdapterDescriptorFactory('python-web-wasm', factory));
// const factory = new DebugAdapterDescriptorFactory(context, preloadPromise);
// context.subscriptions.push(debug.registerDebugAdapterDescriptorFactory('python-web-wasm', factory));
}

export function deactivate(): Promise<void> {
Expand Down