@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.
- package/SailsParser.js +7 -0
- 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)
|