未验证 提交 76e45c2b 编写于 作者: C Connor Peet

debug: make serverReadyAction play nicely with js-debug

Fixes https://github.com/microsoft/vscode/issues/86035
Fixes https://github.com/microsoft/vscode-js-debug/issues/440
上级 62f1bf8c
...@@ -146,18 +146,13 @@ class ServerReadyDetector extends vscode.Disposable { ...@@ -146,18 +146,13 @@ class ServerReadyDetector extends vscode.Disposable {
break; break;
case 'debugWithChrome': case 'debugWithChrome':
if (vscode.env.remoteName === 'wsl' || !!vscode.extensions.getExtension('msjsdiag.debugger-for-chrome')) { vscode.debug.startDebugging(session.workspaceFolder, {
vscode.debug.startDebugging(session.workspaceFolder, { type: 'pwa-chrome',
type: 'chrome', name: 'Chrome Debug',
name: 'Chrome Debug', request: 'launch',
request: 'launch', url: uri,
url: uri, webRoot: args.webRoot || WEB_ROOT
webRoot: args.webRoot || WEB_ROOT });
}, session);
} else {
const errMsg = localize('server.ready.chrome.not.installed', "The action '{0}' requires the '{1}' extension.", 'debugWithChrome', 'Debugger for Chrome');
vscode.window.showErrorMessage(errMsg, { modal: true }).then(_ => undefined);
}
break; break;
default: default:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册