Skip to content

Commit

Permalink
fix(misc): only warn about ng completion not supported when trying to…
Browse files Browse the repository at this point in the history
… set up the completion
  • Loading branch information
leosvelperez authored and vsavkin committed Dec 5, 2022
1 parent baff85b commit 4196ad3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/nx/bin/init-local.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

1 comment on commit 4196ad3

@vercel
Copy link

@vercel vercel bot commented on 4196ad3 Dec 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-git-master-nrwl.vercel.app
nx.dev
nx-five.vercel.app
nx-dev-nrwl.vercel.app

Please sign in to comment.