-
-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathpackage.json
More file actions
564 lines (564 loc) · 20.5 KB
/
package.json
File metadata and controls
564 lines (564 loc) · 20.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
{
"name": "linter-gfortran",
"displayName": "Modern Fortran",
"description": "Fortran language support, syntax highlighting, Language Server support, Debugging, Diagnostics and much more.",
"version": "3.1.0",
"publisher": "fortran-lang",
"license": "MIT",
"author": {
"name": "The Fortran Programming Language",
"url": "https://fortran-lang.org"
},
"maintainers": [
{
"email": "krvajal.miguelangel@gmail.com",
"name": "Miguel Carvajal"
},
{
"email": "giannis.nikiteas@gmail.com",
"name": "Giannis Nikiteas"
}
],
"engines": {
"vscode": "^1.63.0"
},
"icon": "assets/png/icon.png",
"homepage": "https://github.com/fortran-lang/vscode-fortran-support#readme",
"qna": "https://github.com/fortran-lang/vscode-fortran-support/issues",
"repository": {
"type": "git",
"url": "https://github.com/fortran-lang/vscode-fortran-support.git"
},
"keywords": [
"Fortran",
"Free Form fortran",
"Fixed Form fortran",
"Modern Fortran",
"IntelliSense",
"fortls",
"fpm",
"IDE"
],
"categories": [
"Programming Languages",
"Snippets",
"Linters",
"Debuggers",
"Formatters"
],
"galleryBanner": {
"color": "#6853ad",
"theme": "dark"
},
"activationEvents": [
"onLanguage:FortranFreeForm",
"onLanguage:FortranFixedForm"
],
"main": "./dist/extension.js",
"extensionDependencies": [
"ms-vscode.cpptools"
],
"contributes": {
"languages": [
{
"id": "FortranFreeForm",
"aliases": [
"Fortran",
"Fortran90"
],
"extensions": [
".f90",
".F90",
".f95",
".F95",
".f03",
".F03",
".f08",
".F08",
".f18",
".F18",
".fpp",
".FPP",
".pf",
".PF"
],
"configuration": "./language-configuration.json"
},
{
"id": "FortranFixedForm",
"aliases": [
"Fortran77"
],
"extensions": [
".f",
".F",
".f77",
".F77",
".for",
".FOR"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "FortranFreeForm",
"scopeName": "source.fortran.free",
"path": "./syntaxes/fortran_free-form.tmLanguage.json"
},
{
"scopeName": "source.openmp",
"path": "./syntaxes/openmp_lang.json",
"injectTo": [
"source.fortran.free"
]
},
{
"scopeName": "source.openacc",
"path": "./syntaxes/openacc_lang.json",
"injectTo": [
"source.fortran.free"
]
},
{
"language": "FortranFixedForm",
"scopeName": "source.fortran.fixed",
"path": "./syntaxes/fortran_fixed-form.tmLanguage.json"
}
],
"snippets": [
{
"language": "FortranFreeForm",
"path": "./snippets/fortran90.json"
}
],
"configuration": [
{
"id": "general",
"title": "General",
"order": 10,
"properties": {
"fortran.provide.autocomplete": {
"type": "string",
"default": "fortls",
"enum": [
"fortls",
"Built-in",
"Disabled"
],
"markdownDescription": "Enables code autocompletion, by default it uses `fortls`.",
"order": 10
},
"fortran.provide.hover": {
"type": "string",
"default": "fortls",
"enum": [
"fortls",
"Built-in",
"Both",
"Disabled"
],
"markdownDescription": "Enables hover support, by default it uses `fortls`.",
"order": 20
},
"fortran.provide.symbols": {
"type": "string",
"default": "fortls",
"enum": [
"fortls",
"Both"
],
"markdownDescription": "Outline of modules, functions, subroutines, etc. in the document, by default it uses `fortls`, `Both` will use `fortls` and the `Built-in` functionality (not recommended).",
"order": 30
},
"fortran.preferredCase": {
"type": "string",
"default": "lowercase",
"enum": [
"lowercase",
"uppercase"
],
"markdownDescription": "Specify the word case to use when suggesting autocomplete options.",
"order": 60
}
}
},
{
"id": "linting",
"title": "Linting",
"order": 20,
"properties": {
"fortran.linter.compiler": {
"type": "string",
"default": "gfortran",
"enum": [
"gfortran",
"ifort",
"ifx",
"nagfor",
"Disabled"
],
"markdownDescription": "Compiler used for linting support."
},
"fortran.linter.includePaths": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"markdownDescription": "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}`"
},
"fortran.linter.compilerPath": {
"type": "string",
"default": "",
"markdownDescription": "Specifies the path to the linter executable."
},
"fortran.linter.extraArgs": {
"type": "array",
"items": {
"type": "string"
},
"markdownDescription": "Pass additional options to the linter compiler. Can resolve internal variables with `~`, `${workspaceFolder}`, `${env}`, `${config}`, `${file}`, `${fileDirname}`, `${fileBasenameNoExtension}`"
},
"fortran.linter.modOutput": {
"type": "string",
"default": "",
"markdownDescription": "Global output directory for .mod files generated due to linting `-J<linter.modOutput>`. Can resolve internal variables with `~`, `${workspaceFolder}`, `${env}`, `${config}`, `${file}`, `${fileDirname}`, `${fileBasenameNoExtension}`"
}
}
},
{
"id": "formatting",
"title": "Formatting",
"order": 30,
"properties": {
"fortran.formatting.formatter": {
"type": "string",
"default": "findent",
"enum": [
"findent",
"fprettify",
"Disabled"
],
"markdownDescription": "Fortran formatter, currently supports `findent` and `fprettify`",
"order": 10
},
"fortran.formatting.findentArgs": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"markdownDescription": "Additional arguments for the `findent` formatter",
"order": 20
},
"fortran.formatting.fprettifyArgs": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"markdownDescription": "Additional arguments for the `fprettify` formatter",
"order": 30
},
"fortran.formatting.path": {
"type": "string",
"default": "",
"markdownDescription": "If the formatter is not in the `$PATH` specify the full path to its location.",
"order": 40
}
}
},
{
"id": "lsp",
"title": "Language Server",
"order": 40,
"properties": {
"fortran.fortls.path": {
"type": "string",
"default": "fortls",
"markdownDescription": "Path to the Fortran language server (`fortls`).",
"order": 10
},
"fortran.fortls.configure": {
"type": "string",
"default": "",
"markdownDescription": "Filename holding additional configuration options. For more see: https://gnikit.github.io/fortls/options.html#configuration-using-a-file.",
"order": 20
},
"fortran.fortls.notifyInit": {
"type": "boolean",
"default": false,
"markdownDescription": "Notify when workspace initialization is complete.",
"order": 30
},
"fortran.fortls.incrementalSync": {
"type": "boolean",
"default": true,
"markdownDescription": "Use incremental synchronization for file changes.",
"order": 40
},
"fortran.fortls.nthreads": {
"type": "integer",
"default": 4,
"markdownDescription": "Number of threads to use during workspace initialization (default: 4).",
"order": 45
},
"fortran.fortls.sortKeywords": {
"type": "boolean",
"default": false,
"markdownDescription": "Display variable keywords information when hovering in a sorted, consistent order.",
"order": 50
},
"fortran.fortls.symbolTypes": {
"type": "boolean",
"default": true,
"markdownDescription": "Include derived types in the symbols outline. If false it adds the `--symbol_skip_mem` argument to fortls.",
"order": 60
},
"fortran.fortls.suffixes": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"markdownDescription": "Parse additional file extensions to the default (**default**: `F,F77,F90,F95,F03,F08,FOR,FPP` (lower & upper casing)) (**fortls arg: `incl_suffixes`**). For more read the [documentation](https://gnikit.github.io/fortls/options.html#incl-suffixes).",
"order": 61
},
"fortran.fortls.directories": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"markdownDescription": "Folders containing source files (**default: `['./**']`**), (**fortls arg: `source_dirs`**). For more read the [documentation](https://gnikit.github.io/fortls/options.html#source-dirs).",
"order": 62
},
"fortran.fortls.excludeSuffixes": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"markdownDescription": "Source file extensions to be excluded (**fortls arg: `excl_suffixes`**). For more read the [documentation](https://gnikit.github.io/fortls/options.html#excl-suffixes).",
"order": 63
},
"fortran.fortls.excludeDirectories": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"markdownDescription": "Folders to exclude from parsing (**fortls arg: `excl_paths`**). For more read the [documentation](https://gnikit.github.io/fortls/options.html#excl-paths).",
"order": 64
},
"fortran.fortls.preprocessor.suffixes": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"markdownDescription": "File extensions to be parsed **ONLY** for preprocessor commands (**default**: all uppercase source file suffixes) (**fortls arg: `pp_suffixes`**). By default preprocessor definitions are parsed for all Fortran source files with uppercase extensions e.g. `.F90`, `.F`, `.F08`, etc.. However, the default behaviour can be overridden by defining `pp_defs`. For more read the [documentation](https://gnikit.github.io/fortls/options.html#pp-suffixes).",
"order": 65
},
"fortran.fortls.preprocessor.directories": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"markdownDescription": "Folders containing preprocessor files with extensions `pp_suffixes` (**fortls arg: `include_dirs`**). Understands Python glob patterns. By default `fortls` will scan the project’s directories for files with extensions `pp_suffixes` to parse for **preprocessor definitions**. However, if the preprocessor files are external to the project, their locations can be specified via `include_dirs`. For more read the [documentation](https://gnikit.github.io/fortls/options.html#include-dirs).",
"order": 66
},
"fortran.fortls.preprocessor.definitions": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"markdownDescription": "A dictionary of preprocessor definitions. (**fortls arg: `pp_defs`**). Preprocessor definitions are normally included via `include_dirs`. For more read the [documentation](https://gnikit.github.io/fortls/options.html#pp-defs).",
"order": 67
},
"fortran.fortls.disableDiagnostics": {
"type": "boolean",
"default": false,
"markdownDescription": "Disable additional diagnostics from `fortls` e.g. multiple variable definitions, unknown modules in use statement.",
"order": 70
},
"fortran.fortls.maxLineLength": {
"type": "number",
"default": -1,
"markdownDescription": "Maximum line length. For `gfortran` this also sets the linting compiler flag `-ffree-line-length-<n>` and `-ffixed-line-length-<n>`. Default value is `none`.",
"order": 90
},
"fortran.fortls.maxCommentLineLength": {
"type": "number",
"default": -1,
"markdownDescription": "Maximum comment line length.",
"order": 100
},
"fortran.fortls.extraArgs": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"markdownDescription": "Additional arguments for the `fortls`. For more see: https://gnikit.github.io/fortls/options.html#configuration-using-the-command-line",
"order": 110
},
"fortran.fortls.disableAutoupdate": {
"type": "boolean",
"default": false,
"markdownDescription": "fortls will automatically attempt to update itself from PyPi. Set this option if you want to fix your version of fortls. Autoudpate will not occur for Anaconda environments.",
"order": 120
},
"fortran.fortls.disabled": {
"type": "boolean",
"default": false,
"markdownDescription": "Disable the Language Server. If true, it will limit the extension's functionality substantially. **Should be avoided!**",
"order": 1300
}
}
},
{
"id": "deprecated",
"title": "Deprecated Options",
"order": 999,
"properties": {
"fortran.includePaths": {
"deprecationMessage": "fortran.includePaths has been renamed to fortran.linter.includePaths."
},
"fortran.gfortranExecutable": {
"deprecationMessage": "fortran.gfortranExecutable has been renamed to fortran.linter.compilerPath"
},
"fortran.linterEnabled": {
"deprecationMessage": "fortran.linterEnabled has been renamed to fortran.linter.compiler set to Disable to turn off."
},
"fortran.linterExtraArgs": {
"deprecationMessage": "fortran.linterExtraArgs has been renamed to fortran.linter.extraArgs"
},
"fortran.linterModOutput": {
"deprecationMessage": "fortran.linterModOutput has been renamed to fortran.linter.modOutput."
},
"fortran.provideSymbols": {
"deprecationMessage": "fortran.provideSymbols has been renamed to fortran.provide.symbols. By default the fortls symbols are used, to enable the built-in symbols turn on the Built-in option."
},
"fortran.symbols": {
"deprecationMessage": "fortran.symbols has been removed in favour of the fortran language server returning all symbols."
},
"fortran.provideHover": {
"deprecationMessage": "fortran.provideHover has been renamed to fortran.provide.hover. By default the fortls hover is used, to enable the built-in hover turn on the Built-in option."
},
"fortran.provideCompletion": {
"deprecationMessage": "fortran.provideCompletion has been renamed to fortran.provide.autocomplete. By default the fortls autocompletion is used, to enable the built-in autocompletion turn on the Built-in option."
},
"fortran.fortls.preserveKeywordOrder": {
"deprecationMessage": "This option is now the default, use fortran.fortls.sortKeywords to sort keywords."
}
}
}
],
"breakpoints": [
{
"language": "FortranFreeForm"
},
{
"language": "FortranFixedForm"
}
],
"commands": [
{
"category": "Fortran",
"command": "fortran.analysis.restartLanguageServer",
"title": "Restart the Fortran Language Server"
},
{
"category": "Fortran",
"command": "fortran.analysis.rescanLinter",
"title": "Rescan Linter paths"
},
{
"category": "Fortran",
"command": "fortran.analysis.showWhatsNew",
"title": "What's New"
}
],
"menus": {
"commandPalette": [
{
"category": "Fortran",
"command": "fortran.analysis.restartLanguageServer",
"title": "Restart the Fortran Language Server",
"when": "!virtualWorkspace && shellExecutionSupported"
},
{
"category": "Fortran",
"command": "fortran.analysis.rescanLinter",
"title": "Rescan Linter paths",
"when": "!virtualWorkspace && shellExecutionSupported"
},
{
"category": "Fortran",
"command": "fortran.analysis.showWhatsNew",
"title": "What's New",
"when": "!virtualWorkspace && shellExecutionSupported"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"clean": "npx rimraf dist out .vscode-test",
"compile": "webpack --mode production",
"compile-dev": "webpack --mode development",
"watch": "webpack --mode production --watch --progress",
"watch-dev": "webpack --mode development --watch --progress",
"webpack": "webpack --mode production",
"pretest": "npm run compile-dev && tsc -p tsconfig.test.json",
"test": "node ./out/test/runTest.js",
"test:grammar-free": "vscode-tmgrammar-snap -s source.fortran.free -g ./syntaxes/fortran_free-form.tmLanguage.json \"./test/**/*{.f90,F90}\"",
"test:grammar-fixed": "vscode-tmgrammar-snap -s source.fortran.fixed -g ./syntaxes/fortran_fixed-form.tmLanguage.json \"./test/**/*{.f,F}\"",
"test:grammar": "npm run test:grammar-free && npm run test:grammar-fixed",
"test:grammar-update": "npm run test:grammar-free -- -u && npm run test:grammar-fixed -- -u",
"lint": "eslint . --ext .ts,.tsx",
"lint-fix": "npm run lint -- --fix",
"format": "prettier --write 'src/**/*.{ts,json}' 'test/**/*.ts' 'syntaxes/**/*.json' 'snippets/**/*.json' './**/*.{md,json,yaml,yml}'",
"prepare": "husky install",
"pre-commit": "lint-staged"
},
"devDependencies": {
"@types/glob": "^7.2.0",
"@types/mocha": "^9.1.0",
"@types/node": "^16.11.39",
"@types/vscode": "^1.63.0",
"@types/which": "^2.0.1",
"@typescript-eslint/eslint-plugin": "^5.30.5",
"@typescript-eslint/parser": "^5.30.5",
"@vscode/test-electron": "^2.1.5",
"eslint": "^8.19.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jsdoc": "^39.3.3",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.1",
"lint-staged": "^13.0.3",
"mocha": "^10.0.0",
"prettier": "^2.7.1",
"ts-loader": "^9.3.1",
"typescript": "^4.7.4",
"vscode-tmgrammar-test": "^0.1.1",
"webpack": "^5.73.0",
"webpack-cli": "^4.10.0"
},
"lint-staged": {
"*.ts": [
"npm run format",
"npm run lint-fix",
"npm run lint -- --max-warnings=0"
]
},
"dependencies": {
"fast-glob": "^3.2.11",
"glob": "^8.0.3",
"vscode-languageclient": "^8.0.1",
"which": "^2.0.2"
}
}