@sailshq/language-server 0.2.3 → 0.3.1
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.
|
@@ -3,7 +3,7 @@ const path = require('path')
|
|
|
3
3
|
|
|
4
4
|
module.exports = async function goToAction(document, position, typeMap) {
|
|
5
5
|
const fileName = path.basename(document.uri)
|
|
6
|
-
if (fileName !== 'routes.js') return
|
|
6
|
+
if (fileName !== 'routes.js') return []
|
|
7
7
|
|
|
8
8
|
const text = document.getText()
|
|
9
9
|
const offset = document.offsetAt(position)
|
|
@@ -39,5 +39,5 @@ module.exports = async function goToAction(document, position, typeMap) {
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
return
|
|
42
|
+
return []
|
|
43
43
|
}
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -282,7 +282,10 @@ module.exports = function validateModelAttributeExist(document, typeMap) {
|
|
|
282
282
|
'min',
|
|
283
283
|
'max',
|
|
284
284
|
'distinct',
|
|
285
|
-
'meta'
|
|
285
|
+
'meta',
|
|
286
|
+
'or',
|
|
287
|
+
'and',
|
|
288
|
+
'not'
|
|
286
289
|
]
|
|
287
290
|
// For non-create methods, validate all top-level keys except query option keys
|
|
288
291
|
if (
|