You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and adds support for gfortran and ifort compilers
Fixes Rewrite settings interface #292
Fixes Add support for Intel and LLVM compilers #291
Fixes gfortran linter regex cannot display certain failures #295
Copy file name to clipboardExpand all lines: package.json
+116-36
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
"name": "linter-gfortran",
3
3
"displayName": "Modern Fortran",
4
4
"description": "Modern Fortran language support, including syntax highlighting and error detection.",
5
-
"version": "2.6.1",
5
+
"version": "3.0.0",
6
6
"publisher": "krvajalm",
7
7
"license": "MIT",
8
8
"author": {
@@ -128,42 +128,78 @@
128
128
"type": "object",
129
129
"title": "Fortran configuration",
130
130
"properties": {
131
-
"fortran.includePaths": {
131
+
"fortran.provide.hover": {
132
+
"type": "string",
133
+
"default": "fortls",
134
+
"enum": [
135
+
"fortls",
136
+
"Built-in",
137
+
"Both",
138
+
"Disabled"
139
+
],
140
+
"description": "Enables hover support, by default it uses fortran-language-server."
141
+
},
142
+
"fortran.provide.autocomplete": {
143
+
"type": "string",
144
+
"default": "fortls",
145
+
"enum": [
146
+
"fortls",
147
+
"Built-in",
148
+
"Both",
149
+
"Disabled"
150
+
],
151
+
"description": "Enables code autocompletion, by default it uses fortran-language-server."
152
+
},
153
+
"fortran.provide.symbols": {
154
+
"type": "string",
155
+
"default": "fortls",
156
+
"enum": [
157
+
"fortls",
158
+
"Built-in",
159
+
"Both",
160
+
"Disabled"
161
+
],
162
+
"description": "Outline of type members in the document, by default it uses fortran-language-server."
163
+
},
164
+
"fortran.linter.compiler": {
165
+
"type": "string",
166
+
"default": "gfortran",
167
+
"enum": [
168
+
"gfortran",
169
+
"flang",
170
+
"ifort",
171
+
"Disabled"
172
+
],
173
+
"description": "Compiler used for linting support."
174
+
},
175
+
"fortran.linter.includePaths": {
132
176
"type": [
133
177
"array"
134
178
],
135
179
"items": {
136
180
"type": "string"
137
181
},
138
182
"default": [],
139
-
"description": "Specifies folder paths to be used as include path for the Fortran linter"
183
+
"description": "Specifies folder paths to be used as include paths during linting. Can resolve glob patterns e.g. `/usr/local/include/**` and internal variables with `~`, `${workspaceFolder}`, `${env}`, `${config}`, `${file}`, `${fileDirname}`, `${fileBasenameNoExtension}`"
140
184
},
141
-
"fortran.gfortranExecutable": {
185
+
"fortran.linter.compilerPath": {
142
186
"type": "string",
143
-
"default": "gfortran",
144
-
"description": "Specifies the complete path of the gfortran executable"
145
-
},
146
-
"fortran.linterEnabled": {
147
-
"type": "boolean",
148
-
"default": true,
149
-
"description": "Enables or disables the linter functionality"
187
+
"default": "",
188
+
"description": "Specifies the path to the linter executable."
150
189
},
151
-
"fortran.linterExtraArgs": {
190
+
"fortran.linter.extraArgs": {
152
191
"type": [
153
192
"array"
154
193
],
155
194
"items": {
156
195
"type": "string"
157
196
},
158
-
"default": [
159
-
"-Wall"
160
-
],
161
-
"description": "Specify additional options to use when calling the gfortran compiler"
197
+
"description": "Pass additional options to the linter compiler. Can resolve internal variables with `~`, `${workspaceFolder}`, `${env}`, `${config}`, `${file}`, `${fileDirname}`, `${fileBasenameNoExtension}`"
162
198
},
163
-
"fortran.linterModOutput": {
199
+
"fortran.linter.modOutput": {
164
200
"type": "string",
165
201
"default": "",
166
-
"description": "Global output directory for .mod files `-J<linterModOutput>`"
202
+
"description": "Global output directory for .mod files generated due to linting `-J<linter.modOutput>`. Can resolve internal variables with `~`, `${workspaceFolder}`, `${env}`, `${config}`, `${file}`, `${fileDirname}`, `${fileBasenameNoExtension}`"
167
203
},
168
204
"fortran.formatting.formatter": {
169
205
"type": "string",
@@ -183,35 +219,52 @@
183
219
"fortran.formatting.path": {
184
220
"type": "string",
185
221
"default": "",
186
-
"description": "Specify the full path of where the formatter is installed"
222
+
"description": "If the formatter is not in the $PATH specify the full path to its location."
187
223
},
188
-
"fortran.provideSymbols": {
224
+
"fortran.fortls.path": {
225
+
"type": "string",
226
+
"default": "fortls",
227
+
"description": "Path to the Fortran language server (fortls)."
228
+
},
229
+
"fortran.fortls.preserveKeywordOrder": {
189
230
"type": "boolean",
190
231
"default": true,
191
-
"description": "Enables or disables symbol functionality (disable if using 'Fortran IntelliSense')"
232
+
"description": "Display variable keywords information when hovering in original order (default: sort to consistent ordering)."
"description": "Use incremental synchronization for file changes."
243
+
},
244
+
"fortran.fortls.notifyInit": {
245
+
"type": "boolean",
246
+
"default": false,
247
+
"description": "Notify when workspace initialization is complete (requires v1.7.0+)."
248
+
},
249
+
"fortran.fortls.extraArgs": {
194
250
"type": [
195
251
"array"
196
252
],
197
253
"items": {
198
254
"type": "string"
199
255
},
200
-
"default": [
201
-
"function",
202
-
"subroutine"
203
-
],
204
-
"description": "Specify what kind of symbols should be shown by the symbols' provider"
256
+
"default": [],
257
+
"description": "Additional arguments for the fortran-language-server"
205
258
},
206
-
"fortran.provideHover": {
207
-
"type": "boolean",
208
-
"default": true,
209
-
"description": "Enables hover functionality (disable if using 'Fortran IntelliSense')"
259
+
"fortran.maxLineLength": {
260
+
"type": "number",
261
+
"default": -1,
262
+
"description": "Maximum line length (fortls requires v1.8.0+). Passed in both the linter and the language server."
210
263
},
211
-
"fortran.provideCompletion": {
212
-
"type": "boolean",
213
-
"default": true,
214
-
"description": "Enables or disables completion functionality (disable if using 'Fortran IntelliSense')"
264
+
"fortran.maxCommentLineLength": {
265
+
"type": "number",
266
+
"default": -1,
267
+
"description": "Maximum comment line length (fortls requires v1.8.0+). Passed in both the linter and the language server."
215
268
},
216
269
"fortran.preferredCase": {
217
270
"type": "string",
@@ -220,7 +273,34 @@
220
273
"lowercase",
221
274
"uppercase"
222
275
],
223
-
"description": "Specify the word case to use when suggesting autocomplete options (One of 'lowercase' or 'upercase')"
276
+
"description": "Specify the word case to use when suggesting autocomplete options."
277
+
},
278
+
"fortran.includePaths": {
279
+
"deprecationMessage": "fortran.includePaths has been renamed to fortran.linter.includePaths."
280
+
},
281
+
"fortran.gfortranExecutable": {
282
+
"deprecationMessage": "fortran.gfortranExecutable has been renamed to fortran.linter.compilerPath"
283
+
},
284
+
"fortran.linterEnabled": {
285
+
"deprecationMessage": "fortran.linterEnabled has been renamed to fortran.linter.compiler set to Disable to turn off."
286
+
},
287
+
"fortran.linterExtraArgs": {
288
+
"deprecationMessage": "fortran.linterExtraArgs has been renamed to fortran.linter.extraArgs"
289
+
},
290
+
"fortran.linterModOutput": {
291
+
"deprecationMessage": "fortran.linterModOutput has been renamed to fortran.linter.modOutput."
292
+
},
293
+
"fortran.provideSymbols": {
294
+
"deprecationMessage": "fortran.provideSymbols has been renamed to fortran.provide.symbols. By default the fortran-language-server symbols are used, to enable the built-in symbols turn on the Built-in option."
295
+
},
296
+
"fortran.symbols": {
297
+
"deprecationMessage": "fortran.symbols has been removed in favour of returning all symbols."
298
+
},
299
+
"fortran.provideHover": {
300
+
"deprecationMessage": "fortran.provideHover has been renamed to fortran.provide.hover. By default the fortran-language-server hover is used, to enable the built-in hover turn on the Built-in option."
301
+
},
302
+
"fortran.provideCompletion": {
303
+
"deprecationMessage": "fortran.provideCompletion has been renamed to fortran.provide.autocomplete. By default the fortran-language-server autocompletion is used, to enable the built-in autocompletion turn on the Built-in option."
0 commit comments