nvm-windows icon indicating copy to clipboard operation
nvm-windows copied to clipboard

Show terminal warning only when user did not enter arguments.

Open johnrom opened this issue 1 year ago • 6 comments

closes #1068

(doesn't fix the underlying terminal check, but limits the issue to users who didn't enter any nvm command)

Only check terminal when there are no arguments, because it's possible the user clicked the .exe. If there are arguments, assume the user knows what they're doing. Add some launch tasks in .vscode to demonstrate the difference. The warning now indicates that if you are in an unsupported terminal, to try running nvm help instead.

Feel free to remove .vscode/launch.json if you do not use VS Code. I used it to create an example of:

  • Launching nvm without commands in debug console -- opens warning indicating nvm can only be run in a terminal
  • Launching nvm in external console (like command prompt) -- prints normal help message in terminal
  • Launching nvm version in debug console -- works normally

johnrom avatar Apr 01 '24 18:04 johnrom

This PR is stale because it has been open 45 days with no activity.

github-actions[bot] avatar May 02 '24 01:05 github-actions[bot]

This PR is stale because it has been open 45 days with no activity.

github-actions[bot] avatar Jun 03 '24 01:06 github-actions[bot]

Would be great if this could get reviewed and merged 👍

mpociot avatar Jun 10 '24 21:06 mpociot

This PR is stale because it has been open 45 days with no activity.

github-actions[bot] avatar Jul 11 '24 01:07 github-actions[bot]

Can this be reviewed/merged? Currently blocking my Jenkins2 pipelines

EmilSoleymani avatar Jul 24 '24 16:07 EmilSoleymani

This PR is stale because it has been open 45 days with no activity.

github-actions[bot] avatar Aug 24 '24 01:08 github-actions[bot]