apply statics filter to enum values

This commit is contained in:
Dave Holoway
2020-07-02 22:42:07 +01:00
parent f2137eb35c
commit cc3b995de3

View File

@@ -89,7 +89,7 @@ function getTypedNameCompletion(typemap, type_signature, opts, typelist) {
// retrieve fields and methods
types.forEach(t => {
if (t instanceof SourceType) {
if (t instanceof SourceType && opts.statics) {
t.enumValues.sort(sortBy.name)
.forEach(e => enumValues.set(e.name, {e, t}))
}