@xano/xanoscript-language-server 11.2.0 → 11.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/parser/query_parser.js +9 -1
package/package.json
CHANGED
package/parser/query_parser.js
CHANGED
|
@@ -77,7 +77,7 @@ export function queryDeclaration($) {
|
|
|
77
77
|
if (!["stream", "standard"].includes(value)) {
|
|
78
78
|
$.addInvalidValueError(
|
|
79
79
|
valueToken,
|
|
80
|
-
"response_type must be either 'stream' or 'standard'"
|
|
80
|
+
"response_type must be either 'stream' or 'standard'",
|
|
81
81
|
);
|
|
82
82
|
}
|
|
83
83
|
},
|
|
@@ -163,6 +163,14 @@ export function queryDeclaration($) {
|
|
|
163
163
|
]);
|
|
164
164
|
});
|
|
165
165
|
|
|
166
|
+
// when not provided, the api_group will default to the api_group.xs file defined in the same folder
|
|
167
|
+
if (!hasApiGroup) {
|
|
168
|
+
$.addWarning(
|
|
169
|
+
"api_group is not provided, defaulting to api_group.xs defined in the same folder",
|
|
170
|
+
parent,
|
|
171
|
+
);
|
|
172
|
+
}
|
|
173
|
+
|
|
166
174
|
if (!hasInput) {
|
|
167
175
|
$.addMissingError(parent, "{} is missing an input clause");
|
|
168
176
|
}
|