Skip to content

Commit 9dbe091

Browse files
committed
add config settings
1 parent 3ef3ed4 commit 9dbe091

File tree

1 file changed

+30
-10
lines changed

1 file changed

+30
-10
lines changed

package.json

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "linter-gfortran",
2+
"name": "fortran",
33
"displayName": "Modern Fortran",
44
"description": "Modern Fortran language support, including syntax highlighting and error detection.",
55
"version": "0.4.5",
@@ -22,8 +22,7 @@
2222
],
2323
"main": "./out/src/extension",
2424
"contributes": {
25-
"languages": [
26-
{
25+
"languages": [{
2726
"id": "fortran90",
2827
"aliases": [
2928
"Fortran90",
@@ -52,8 +51,7 @@
5251
]
5352
}
5453
],
55-
"grammars": [
56-
{
54+
"grammars": [{
5755
"language": "fortran90",
5856
"scopeName": "source.fortran.modern",
5957
"path": "./syntaxes/fortran90.tmLanguage"
@@ -64,12 +62,34 @@
6462
"path": "./syntaxes/fortran.tmLanguage"
6563
}
6664
],
67-
"snippets": [
68-
{
69-
"language": "fortran90",
70-
"path": "./snippets/fortran90.json"
65+
"snippets": [{
66+
"language": "fortran90",
67+
"path": "./snippets/fortran90.json"
68+
}],
69+
"configuration": {
70+
"type": "object",
71+
"title": "Fortran configuration",
72+
"properties": {
73+
"fortran.includePaths": {
74+
"type": ["array"],
75+
"items": {
76+
"type": "string"
77+
},
78+
"default": [],
79+
"description": "Specifies folder paths to be used as include path for the Fortran linter"
80+
},
81+
"fortran.gfortraExecutable": {
82+
"type": "string",
83+
"default": "gfortran",
84+
"description": "Specifies the complete path of the gfortran executable"
85+
},
86+
"fortran.linterEnabled": {
87+
"type": "boolean",
88+
"default": true,
89+
"description": "Enables or disables the linter functionality"
90+
}
7191
}
72-
]
92+
}
7393
},
7494
"scripts": {
7595
"vscode:prepublish": "tsc -p ./",

0 commit comments

Comments
 (0)