Skip to content

Commit 1640eee

Browse files
committed
fix: autocompletion aliases
1 parent 943eec6 commit 1640eee

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

lib/common/services/commands-service.ts

+4-9
Original file line numberDiff line numberDiff line change
@@ -513,16 +513,11 @@ export class CommandsService implements ICommandsService {
513513
}
514514
};
515515

516-
await tabtab.complete(
517-
this.$staticConfig.CLIENT_NAME.toLowerCase(),
518-
completeCallback
519-
);
516+
// aliases to do autocompletion for
517+
const aliases = ["ns", "nsc", "tns", "nativescript"];
520518

521-
if (this.$staticConfig.CLIENT_NAME_ALIAS) {
522-
tabtab.complete(
523-
this.$staticConfig.CLIENT_NAME_ALIAS.toLowerCase(),
524-
completeCallback
525-
);
519+
for await (const alias of aliases) {
520+
await tabtab.complete(alias, completeCallback);
526521
}
527522

528523
return true;

0 commit comments

Comments
 (0)