Skip to content

Commit ffb1d65

Browse files
authored
New language server settings (#100)
--------- Signed-off-by: Ben Sherman <[email protected]>
1 parent 67b6e9e commit ffb1d65

File tree

2 files changed

+40
-7
lines changed

2 files changed

+40
-7
lines changed

README.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,14 @@ Open the command palette and type `Nextflow` to see the list of available comman
9494

9595
The following settings are available:
9696

97+
- `nextflow.completion.extended`: Provide auto-completions from outside the current script. If an external completion is selected, it will be automatically included into the current script.
98+
99+
- `nextflow.completion.maxItems`: The maximum number of auto-completions to suggest at a time.
100+
97101
- `nextflow.debug`: Enable debug logging and debug information in hover hints.
98102

103+
- `nextflow.errorReportingMode`: Set the desired level of error reporting.
104+
99105
- `nextflow.files.exclude`: Configure glob patterns for excluding folders from being searched for Nextflow scripts and configuration files.
100106

101107
- `nextflow.formatting.harshilAlignment`: Use the [Harshil Alignment™️](https://nf-co.re/docs/contributing/code_editors_and_styling/harshil_alignment) when formatting Nextflow scripts and config files.
@@ -104,9 +110,9 @@ The following settings are available:
104110

105111
- `nextflow.formatting.maheshForm`: Place process outputs at the end of the process body when formatting Nextflow scripts.
106112

107-
- `nextflow.java.home`: Specifies the folder path to the JDK. Equivalent to the `JAVA_HOME` environment variable, i.e. the Java binary should be located at `$JAVA_HOME/bin/java`. Use this setting if the extension cannot find Java automatically.
113+
- `nextflow.formatting.sortDeclarations`: Sort script declarations when formatting Nextflow scripts.
108114

109-
- `nextflow.paranoidWarnings`: Enable additional warnings for future deprecations, potential problems, and other discouraged patterns.
115+
- `nextflow.java.home`: Specifies the folder path to the JDK. Equivalent to the `JAVA_HOME` environment variable, i.e. the Java binary should be located at `$JAVA_HOME/bin/java`. Use this setting if the extension cannot find Java automatically.
110116

111117
- `nextflow.targetVersion`: Target version of Nextflow to be used by the language server.
112118

package.json

+32-5
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,38 @@
187187
"type": "object",
188188
"description": "Configuration for Nextflow language support",
189189
"properties": {
190+
"nextflow.completion.extended": {
191+
"type": "boolean",
192+
"default": false,
193+
"description": "Provide auto-completions from outside the current script. If an external completion is selected, it will be automatically included into the current script."
194+
},
195+
"nextflow.completion.maxItems": {
196+
"type": "integer",
197+
"default": 100,
198+
"description": "The maximum number of auto-completions to suggest at a time."
199+
},
190200
"nextflow.debug": {
191201
"type": "boolean",
192202
"default": false,
193203
"description": "Enable debug logging and debug information in hover hints."
194204
},
205+
"nextflow.errorReportingMode": {
206+
"type": "string",
207+
"enum": [
208+
"off",
209+
"errors",
210+
"warnings",
211+
"paranoid"
212+
],
213+
"enumDescriptions": [
214+
"Disable all error reporting.",
215+
"Enable errors only.",
216+
"Enable errors and standard warnings.",
217+
"Enable errors, standard warnings, and additional warnings for future deprecations, potential problems, and other discouraged patterns."
218+
],
219+
"default": "warnings",
220+
"description": "Set the desired level of error reporting."
221+
},
195222
"nextflow.files.exclude": {
196223
"type": "array",
197224
"items": {
@@ -214,16 +241,16 @@
214241
"default": false,
215242
"markdownDescription": "Place process outputs at the end of the process body when formatting Nextflow scripts."
216243
},
244+
"nextflow.formatting.sortDeclarations": {
245+
"type": "boolean",
246+
"default": false,
247+
"markdownDescription": "Sort script declarations when formatting Nextflow scripts."
248+
},
217249
"nextflow.java.home": {
218250
"type": "string",
219251
"default": "",
220252
"markdownDescription": "Specify the folder path to the desired Java runtime. Equivalent to the `JAVA_HOME` environment variable, i.e. the Java binary should be located at `$JAVA_HOME/bin/java`. Use this setting if the extension cannot find Java automatically."
221253
},
222-
"nextflow.paranoidWarnings": {
223-
"type": "boolean",
224-
"default": false,
225-
"description": "Enable additional warnings for future deprecations, potential problems, and other discouraged patterns."
226-
},
227254
"nextflow.targetVersion": {
228255
"type": "string",
229256
"enum": [

0 commit comments

Comments
 (0)