Fixing #48538 use modal alert for the error message

This commit is contained in:
Erich Gamma 2018-04-25 13:53:47 +02:00
parent d9f8813eb6
commit 7cf5c292d1

View file

@ -159,8 +159,8 @@ export class NpmScriptsTreeDataProvider implements TreeDataProvider<TreeItem> {
let debugArg = await this.extractDebugArg(scripts, task);
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);
window.showErrorMessage(message);
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, { modal: true });
return;
}