未验证 提交 353e8f4f 编写于 作者: A Andre Weinand 提交者: GitHub

Merge pull request #99317 from microsoft/connor4312/fix-js-debug-web-ext-host

debug: fix being unable to debug extensions with js-debug on web
......@@ -104,6 +104,11 @@ class BrowserExtensionHostDebugService extends ExtensionHostDebugChannelClient i
environment.set('inspect-brk-extensions', inspectBrkExtensions);
}
const inspectExtensions = this.findArgument('inspect-extensions', args);
if (inspectExtensions) {
environment.set('inspect-extensions', inspectExtensions);
}
// Open debug window as new window. Pass ParsedArgs over.
return this.workspaceProvider.open(debugWorkspace, {
reuse: false, // debugging always requires a new window
......
......@@ -269,6 +269,9 @@ export class BrowserWorkbenchEnvironmentService implements IWorkbenchEnvironment
extensionHostDebugEnvironment.params.port = parseInt(value);
extensionHostDebugEnvironment.params.break = true;
break;
case 'inspect-extensions':
extensionHostDebugEnvironment.params.port = parseInt(value);
break;
case 'enableProposedApi':
extensionHostDebugEnvironment.extensionEnabledProposedApi = [];
break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册