@xano/xanoscript-language-server 11.2.0 → 11.4.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xano/xanoscript-language-server",
3
- "version": "11.2.0",
3
+ "version": "11.4.0",
4
4
  "description": "Language Server Protocol implementation for XanoScript",
5
5
  "type": "module",
6
6
  "main": "server.js",
@@ -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
  }