Skip to content

Commit 2959ea3

Browse files
authored
Update VSCODE.md for compatibility with non .js files (#284)
Added exec to runtimeArgs so it'll work with files like .mjs, .cjs, etc. Also updated version numbers to latest node LTS version
1 parent 5960750 commit 2959ea3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/VSCODE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Visual Studio Code can use NVS to select a node version to use when launching or
44

55
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.
66

7-
Example: Configure `launch.json` so VS Code uses NVS to launch node version 6.10:
7+
Example: Configure `launch.json` so VS Code uses NVS to launch node version 18.17:
88
```json
99
"configurations": [
1010
{
@@ -13,7 +13,7 @@ Example: Configure `launch.json` so VS Code uses NVS to launch node version 6.10
1313
"name": "Launch Program",
1414
"program": "${file}",
1515
"args": [ ],
16-
"runtimeArgs": [ "6.10" ],
16+
"runtimeArgs": [ "exec", "18.17", "node" ],
1717
"windows": { "runtimeExecutable": "nvs.cmd" },
1818
"osx": { "runtimeExecutable": "nvs" },
1919
"linux": { "runtimeExecutable": "nvs" }

0 commit comments

Comments
 (0)