Skip to content

Commit d5ec547

Browse files
committed
Move extension configuration properties into package.json
1 parent a3dcad5 commit d5ec547

File tree

2 files changed

+21
-18
lines changed

2 files changed

+21
-18
lines changed

language-configuration.json

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"title": "scrapscript",
32
"comments": {
43
"lineComment": "--"
54
},
@@ -23,23 +22,6 @@
2322
"indentationRules": {
2423
"increaseIndentPattern": "({[\\s]*|\\([\\s]*)$",
2524
"decreaseIndentPattern": "^[\\s]*[)}]"
26-
},
27-
"properties": {
28-
"scrapscript.maxNumberOfProblems": {
29-
"type": "number",
30-
"default": 1000,
31-
"description": "Maximum number of problems to report"
32-
},
33-
"scrapscript.enableEnhancedFeatures": {
34-
"type": "boolean",
35-
"default": true,
36-
"description": "Enable enhanced language features"
37-
},
38-
"scrapscript.enableTypeChecking": {
39-
"type": "boolean",
40-
"default": true,
41-
"description": "Enable type checking"
42-
}
4325
}
4426
}
4527

package.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,27 @@
1818
"activationEvents": [],
1919
"main": "./client/out/extension",
2020
"contributes": {
21+
"configuration": {
22+
"title": "ScrapScript",
23+
"type": "object",
24+
"properties": {
25+
"scrapScript.maxNumberOfProblems": {
26+
"type": "number",
27+
"default": 1000,
28+
"description": "Maximum number of problems to report"
29+
},
30+
"scrapScript.enableEnhancedFeatures": {
31+
"type": "boolean",
32+
"default": true,
33+
"description": "Enable enhanced language features"
34+
},
35+
"scrapScript.enableTypeChecking": {
36+
"type": "boolean",
37+
"default": true,
38+
"description": "Enable type checking"
39+
}
40+
}
41+
},
2142
"languages": [
2243
{
2344
"id": "scrapscript",

0 commit comments

Comments
 (0)