Skip to content

Commit

Permalink
Update VSCODE.md for compatibility with non .js files (#284)
Browse files Browse the repository at this point in the history
Added exec to runtimeArgs so it'll work with files like .mjs, .cjs, etc.
Also updated version numbers to latest node LTS version
  • Loading branch information
yscumc authored Aug 16, 2023
1 parent 5960750 commit 2959ea3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/VSCODE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Visual Studio Code can use NVS to select a node version to use when launching or

For multi-platform development, configuration can be customized for each platform. You may need to specify an absolute path such as `"${env:HOME}/.nvs/nvs"` if NVS is not in VS Code's PATH.

Example: Configure `launch.json` so VS Code uses NVS to launch node version 6.10:
Example: Configure `launch.json` so VS Code uses NVS to launch node version 18.17:
```json
"configurations": [
{
Expand All @@ -13,7 +13,7 @@ Example: Configure `launch.json` so VS Code uses NVS to launch node version 6.10
"name": "Launch Program",
"program": "${file}",
"args": [ ],
"runtimeArgs": [ "6.10" ],
"runtimeArgs": [ "exec", "18.17", "node" ],
"windows": { "runtimeExecutable": "nvs.cmd" },
"osx": { "runtimeExecutable": "nvs" },
"linux": { "runtimeExecutable": "nvs" }
Expand Down

0 comments on commit 2959ea3

Please sign in to comment.