@sailshq/language-server 0.3.1 → 0.3.2

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.
Files changed (2) hide show
  1. package/SailsParser.js +7 -0
  2. package/package.json +1 -1
package/SailsParser.js CHANGED
@@ -66,6 +66,13 @@ class SailsParser {
66
66
  while ((match = regex.exec(content))) {
67
67
  const route = match[1]
68
68
  const actionName = match[2]
69
+
70
+ // Skip redirects and external URLs
71
+ // Routes that start with '/' or contain '://' are redirects, not actions
72
+ if (actionName.startsWith('/') || actionName.includes('://')) {
73
+ continue
74
+ }
75
+
69
76
  const filePath = path.join(actionsRoot, ...actionName.split('/')) + '.js'
70
77
 
71
78
  const actionInfo = await this.#parseAction(filePath)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sailshq/language-server",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Language Server Protocol server for Sails Language Service",
5
5
  "homepage": "https://sailjs.com",
6
6
  "repository": {