Skip to content

Commit 8061577

Browse files
Update json schema
1 parent f659ae6 commit 8061577

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
@@ -11,5 +11,11 @@
1111
],
1212
"bsc-flags": ["-w -33-44-8"],
1313
"bs-dependencies": ["@rescript/react"],
14-
"jsx": { "version": 4 }
14+
"jsx": { "version": 4 },
15+
"editor": {
16+
"autocompleteConfig": {
17+
"array": ["ArrayUtils"],
18+
"Fastify.t": ["FastifyExt"]
19+
}
20+
}
1521
}

0 commit comments

Comments
 (0)