Added setting to control visibility of code lens

This commit is contained in:
Erich Gamma
2018-07-20 09:43:25 +02:00
parent 80b08b4c7f
commit 8d964cbd59
5 changed files with 70 additions and 42 deletions

View File

@@ -15,11 +15,11 @@ For more information about auto detection of Tasks, see the [documentation](http
### Script Explorer
The Npm Script Explorer shows the npm scripts found in your workspace. The explorer view is enabled by the setting `npm.enableScriptExplorer`.
The Npm Script Explorer shows the npm scripts found in your workspace. The explorer view is enabled by the setting `npm.enableScriptExplorer`. A script can be opened, run, or debug from the explorer.
### Run Scripts from the Editor
The extension provides commands to run the script containing the selection.
The extension provides code lense actions to run or debug a script from the editor.
## Settings
@@ -29,3 +29,5 @@ The extension provides commands to run the script containing the selection.
- `npm.exclude` - Glob patterns for folders that should be excluded from automatic script detection. The pattern is matched against the **absolute path** of the package.json. For example, to exclude all test folders use '**/test/**'.
- `npm.enableScriptExplorer` - Enable an explorer view for npm scripts.
- `npm.scriptExplorerAction` - The default click action: `open` or `run`, the default is `open`.
- `npm.scriptCodeLens.enable` - Enable/disable the code lenses to run a script.