online suggestions via suggester

This commit is contained in:
gnembon committed 2020-11-13 06:30:55 -04:00
1 parent 5f9df1239a
commit bc99b081ca
2 files changed
+72 -34

No files matched your search

@@ -215,7 +215,7 @@ public class CarpetScriptHost extends ScriptHost
Value spec = typeData.getValue();
if (!(spec instanceof MapValue)) throw new InternalExpressionException("Spec for '"+argument+"' should be a map");
Map<String, Value> specData = ((MapValue) spec).getMap().entrySet().stream().collect(Collectors.toMap(e -> e.getKey().getString(), Map.Entry::getValue));
appArgTypes.put(argument, CommandArgument.buildFromConfig(argument, specData));
appArgTypes.put(argument, CommandArgument.buildFromConfig(argument, specData, this));
}
}
appConfig = config;