Skip to content

Commit 4196ad3

Browse files
leosvelperezvsavkin
authored andcommitted
fix(misc): only warn about ng completion not supported when trying to set up the completion
1 parent baff85b commit 4196ad3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/nx/bin/init-local.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,11 @@ function handleAngularCLIFallbacks(workspace: WorkspaceTypeAndRoot) {
139139
})
140140
);
141141
} else if (process.argv[2] === 'completion') {
142-
console.log(`"ng completion" is not natively supported by Nx.
143-
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.
144-
For more information, see https://nx.dev/using-nx/console`);
142+
if (!process.argv[3]) {
143+
console.log(`"ng completion" is not natively supported by Nx.
144+
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.
145+
For more information, see https://nx.dev/core-features/integrate-with-editors`);
146+
}
145147
} else {
146148
require('nx/src/adapter/compat');
147149
try {

0 commit comments

Comments
 (0)