提交 7cf5c292 编写于 作者: E Erich Gamma

Fixing #48538 use modal alert for the error message

上级 d9f8813e
...@@ -159,8 +159,8 @@ export class NpmScriptsTreeDataProvider implements TreeDataProvider<TreeItem> { ...@@ -159,8 +159,8 @@ export class NpmScriptsTreeDataProvider implements TreeDataProvider<TreeItem> {
let debugArg = await this.extractDebugArg(scripts, task); let debugArg = await this.extractDebugArg(scripts, task);
if (!debugArg) { if (!debugArg) {
let message = localize('npm.noDebugOptions', 'Could not launch "{0}" for debugging, the script needs to include the node debug options: "--nolazy --inspect-brk=port", [learn more](https://code.visualstudio.com/docs/nodejs/nodejs-debugging#_launch-configuration-support-for-npm-and-other-tools).', task.name); let message = localize('npm.noDebugOptions', 'Could not launch "{0}" for debugging because the scripts lacks a node debug option, e.g. "--inspect-brk".', task.name);
window.showErrorMessage(message); window.showErrorMessage(message, { modal: true });
return; return;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册