From 7cf5c292d13e2826c0c3c340761f5ef9dffbe7b0 Mon Sep 17 00:00:00 2001 From: Erich Gamma Date: Wed, 25 Apr 2018 13:53:47 +0200 Subject: [PATCH] Fixing #48538 use modal alert for the error message --- extensions/npm/src/npmView.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/npm/src/npmView.ts b/extensions/npm/src/npmView.ts index 58293583ffe..f3f92d19505 100644 --- a/extensions/npm/src/npmView.ts +++ b/extensions/npm/src/npmView.ts @@ -159,8 +159,8 @@ export class NpmScriptsTreeDataProvider implements TreeDataProvider { 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; }