Skip to content

Commit a40447f

Browse files
committed
added the containsErrors value to the schema.
Intention here being to let editors know that the implementation of the command/function has issues that will very likely prevent it from working at runtime. Should still be able to trust numerous pieces of the information including the name and location. This is intended to remove the issue of implementations being broken forcing the editor to say it doesn't know what the command is, now it knows what it is, just that it is incorrect.
1 parent bd99395 commit a40447f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

YarnSpinner.LanguageServer/src/Server/Documentation/ysls.schema.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@
8282
},
8383
"location": {
8484
"$ref": "#/definitions/location"
85+
},
86+
"containsErrors": {
87+
"type": "boolean",
88+
"description": "True if the command implementation contains errors that will prevent the command functioning correctly at run time."
8589
}
8690
},
8791
"required": [
@@ -132,6 +136,10 @@
132136
},
133137
"location": {
134138
"$ref": "#/definitions/location"
139+
},
140+
"containsErrors": {
141+
"type": "boolean",
142+
"description": "True if the function implementation contains errors that will prevent the function functioning correctly at run time."
135143
}
136144
},
137145
"required": [

0 commit comments

Comments
 (0)