Skip to content

Commit 64269f5

Browse files
fhammerschmidtzth
authored andcommitted
Update json schema
1 parent 3f34b26 commit 64269f5

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

docs/docson/build-schema.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,31 @@
349349
"description": "(Not implemented yet)"
350350
}
351351
]
352+
},
353+
"editor": {
354+
"type": "object",
355+
"properties": {
356+
"autocompleteConfig": {
357+
"type": "object",
358+
"properties": {
359+
"array": {
360+
"type": "array",
361+
"items": {
362+
"type": "string"
363+
}
364+
}
365+
},
366+
"patternProperties": {
367+
"^[a-zA-Z0-9_.]+$": {
368+
"type": "array",
369+
"items": {
370+
"type": "string"
371+
}
372+
}
373+
}
374+
}
375+
},
376+
"additionalProperties": false
352377
}
353378
},
354379
"title": "ReScript build configuration",
@@ -472,6 +497,10 @@
472497
"reanalyze": {
473498
"$ref": "#/definitions/reanalyze",
474499
"description": "Configure reanalyze, a static code analysis tool for ReScript."
500+
},
501+
"editor": {
502+
"$ref": "#/definitions/editor",
503+
"description": "Configure editor functionality, like modules that should be included in autocompletions for given (built-in) types."
475504
}
476505
},
477506
"additionalProperties": false,

tests/analysis_tests/tests/rescript.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,11 @@
1212
"bsc-flags": ["-w -33-44-8"],
1313
"bs-dependencies": ["@rescript/react"],
1414
"jsx": { "version": 4 },
15-
"suffix": ".res.js"
15+
"suffix": ".res.js",
16+
"editor": {
17+
"autocompleteConfig": {
18+
"array": ["ArrayUtils"],
19+
"Fastify.t": ["FastifyExt"]
20+
}
21+
}
1622
}

0 commit comments

Comments
 (0)