mirror of
https://github.com/HeyPuter/puter.git
synced 2025-12-31 02:00:13 -06:00
fix: allow command provider to not implement complete method
This commit is contained in:
@@ -49,6 +49,7 @@ export class CompositeCommandProvider {
|
||||
|
||||
const results = [];
|
||||
for (const provider of this.providers) {
|
||||
if ( ! provider.complete ) continue;
|
||||
results.push(...await provider.complete(...a));
|
||||
}
|
||||
return results;
|
||||
|
||||
Reference in New Issue
Block a user