Skip to content

Commit

Permalink
Update execArgv setting
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaeumer committed Jul 8, 2024
1 parent edc9685 commit 9aecfd4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ This extension contributes the following variables to the [settings](https://cod
- `eslint.run` - run the linter `onSave` or `onType`, default is `onType`.
- `eslint.quiet` - ignore warnings.
- `eslint.runtime` - use this setting to set the path of the node runtime to run ESLint under. [Use `"node"`](https://github.com/microsoft/vscode-eslint/issues/1233#issuecomment-815521280) if you want to use your default system version of node.
- `eslint.execArgv` - use this setting to pass additional arguments to the node runtime like `--max_old_space_size=4096`
- `eslint.execArgv` - use this setting to pass additional arguments to the node runtime like `--max_old_space_size=4096`. Please note that VS Code's NodeJS runtime uses a compact heap, which limits the heap size to 4 GB. If you want to increase the heap size beyond 4 GB, you need to use a custom NodeJS runtime (see the eslint.runtime setting).
- `eslint.nodeEnv` - use this setting if an ESLint plugin or configuration needs `process.env.NODE_ENV` to be defined.
- `eslint.nodePath` - use this setting if an installed ESLint package can't be detected, for example `/myGlobalNodePackages/node_modules`.
- `eslint.probe` - an array for language identifiers for which the ESLint extension should be activated and should try to validate the file. If validation fails for probed languages the extension says silent. Defaults to `["javascript", "javascriptreact", "typescript", "typescriptreact", "html", "vue", "markdown"]`.
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@
}
],
"default": null,
"markdownDescription": "Additional exec argv argument passed to the runtime. This can for example be used to control the maximum heap space using --max_old_space_size"
"markdownDescription": "Additional exec argv argument passed to the runtime. This can for example be used to control the maximum heap space using --max_old_space_size. Please note that VS Code's NodeJS runtime uses a compact heap, which limits the heap size to 4 GB. If you want to increase the heap size beyond 4 GB, you need to use a custom NodeJS runtime (see the eslint.runtime setting)."
},
"eslint.debug": {
"scope": "window",
Expand Down

0 comments on commit 9aecfd4

Please sign in to comment.