From 4196ad3758ac2f1b7bc5401bdfc6ac049fade968 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leosvel=20P=C3=A9rez=20Espinosa?= Date: Mon, 5 Dec 2022 14:18:43 +0100 Subject: [PATCH] fix(misc): only warn about ng completion not supported when trying to set up the completion --- packages/nx/bin/init-local.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/nx/bin/init-local.ts b/packages/nx/bin/init-local.ts index f2af46855cf81..d116f4c289701 100644 --- a/packages/nx/bin/init-local.ts +++ b/packages/nx/bin/init-local.ts @@ -139,9 +139,11 @@ function handleAngularCLIFallbacks(workspace: WorkspaceTypeAndRoot) { }) ); } else if (process.argv[2] === 'completion') { - console.log(`"ng completion" is not natively supported by Nx. -Instead, you could try an Nx Editor Plugin for a visual tool to run Nx commands. If you're using VSCode, you can use the Nx Console plugin, or if you're using WebStorm, you could use one of the available community plugins. -For more information, see https://nx.dev/using-nx/console`); + if (!process.argv[3]) { + console.log(`"ng completion" is not natively supported by Nx. + Instead, you could try an Nx Editor Plugin for a visual tool to run Nx commands. If you're using VSCode, you can use the Nx Console plugin, or if you're using WebStorm, you could use one of the available community plugins. + For more information, see https://nx.dev/core-features/integrate-with-editors`); + } } else { require('nx/src/adapter/compat'); try {