lib/power_stencil/project/completion.rb in power_stencil-0.8.1 vs lib/power_stencil/project/completion.rb in power_stencil-0.8.2

- old
+ new

@@ -11,9 +11,13 @@ engine.available_entity_types.sort when :scenario engine.entities(engine.root_universe, criterion: :by_type, value: :entity_override) do |entity| !entity.scenario.nil? and !entity.scenario.empty? end.map(&:scenario).sort.uniq + when :buildable + engine.entities(engine.root_universe) do |entity| + entity.buildable? + end.map(&:as_path).sort else raise PowerStencil::Error, "'#{query_type}' is not a valid query type for completion !" end end