There is a noticeable delay when requesting command completion in non-immersive mode, eg. typing in the shell o365 spo[TAB]. This delayed is caused by the completion being a part of the CLI and loading a big portion of the CLI and its dependencies, each time completion is requested. We could significantly decrease the delay, by separating out the completion feature, which is driven by a static list of CLI's commands anyway, and which doesn't depend on any CLI feature. That way, whenever the completion is request, only Omelette, which drives the completion and the list of commands will be loaded, and nothing else.
There is a noticeable delay when requesting command completion in non-immersive mode, eg. typing in the shell
o365 spo[TAB]. This delayed is caused by the completion being a part of the CLI and loading a big portion of the CLI and its dependencies, each time completion is requested. We could significantly decrease the delay, by separating out the completion feature, which is driven by a static list of CLI's commands anyway, and which doesn't depend on any CLI feature. That way, whenever the completion is request, only Omelette, which drives the completion and the list of commands will be loaded, and nothing else.