mirror of https://github.com/node-red/node-red.git
Apply suggestions from code review
Co-authored-by: Gauthier Dandele <92022724+GogoVega@users.noreply.github.com>envvar-auto-complete
parent
a77f8cc3e9
commit
4be6d57d98
|
@ -122,7 +122,8 @@
|
|||
const contextAutoComplete = function(options) {
|
||||
|
||||
const getContextKeysFromRuntime = function(scope, store, searchKey, done) {
|
||||
contextKnownKeys[store] = contextKnownKeys[store] || new Set()
|
||||
contextKnownKeys[scope] = contextKnownKeys[scope] || {}
|
||||
contextKnownKeys[scope][store] = contextKnownKeys[scope][store] || new Set()
|
||||
if (searchKey.length > 0) {
|
||||
try {
|
||||
RED.utils.normalisePropertyExpression(searchKey)
|
||||
|
@ -209,7 +210,8 @@
|
|||
});
|
||||
}
|
||||
})
|
||||
done(matches)
|
||||
matches.sort(function(a, b) { return a.value.localeCompare(b.value) });
|
||||
done(matches);
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue