public void LearnActionForCommandResult(string input, IActOnItem selectedAction, AutoCompletionResult.CommandResult result) { if (result.IsTransient()) { return; } LearnForResult(result, selectedAction); LearnForType(result.Item.GetType(), selectedAction); }
public void LearnInputForCommandResult(string input, AutoCompletionResult.CommandResult result) { if (result.IsTransient()) { return; } var storage = _sourceStorageFactory.SourceStorageFor(result.CompletionId.SourceId); storage.LearnCommandForInput(result.CompletionId, input); }