1818using GitHub . Models . Drafts ;
1919using GitHub . Primitives ;
2020using GitHub . Services ;
21- using GitHub . UI ;
2221using GitHub . Validation ;
2322using Octokit ;
2423using ReactiveUI ;
@@ -52,9 +51,8 @@ public PullRequestCreationViewModel(
5251 IPullRequestService service ,
5352 INotificationService notifications ,
5453 IMessageDraftStore draftStore ,
55- IGitService gitService ,
56- IAutoCompleteAdvisor autoCompleteAdvisor )
57- : this ( modelServiceFactory , service , notifications , draftStore , gitService , autoCompleteAdvisor , DefaultScheduler . Instance )
54+ IGitService gitService )
55+ : this ( modelServiceFactory , service , notifications , draftStore , gitService , DefaultScheduler . Instance )
5856 {
5957 }
6058
@@ -64,22 +62,19 @@ public PullRequestCreationViewModel(
6462 INotificationService notifications ,
6563 IMessageDraftStore draftStore ,
6664 IGitService gitService ,
67- IAutoCompleteAdvisor autoCompleteAdvisor ,
6865 IScheduler timerScheduler )
6966 {
7067 Guard . ArgumentNotNull ( modelServiceFactory , nameof ( modelServiceFactory ) ) ;
7168 Guard . ArgumentNotNull ( service , nameof ( service ) ) ;
7269 Guard . ArgumentNotNull ( notifications , nameof ( notifications ) ) ;
7370 Guard . ArgumentNotNull ( draftStore , nameof ( draftStore ) ) ;
7471 Guard . ArgumentNotNull ( gitService , nameof ( gitService ) ) ;
75- Guard . ArgumentNotNull ( autoCompleteAdvisor , nameof ( autoCompleteAdvisor ) ) ;
7672 Guard . ArgumentNotNull ( timerScheduler , nameof ( timerScheduler ) ) ;
7773
7874 this . service = service ;
7975 this . modelServiceFactory = modelServiceFactory ;
8076 this . draftStore = draftStore ;
8177 this . gitService = gitService ;
82- this . AutoCompleteAdvisor = autoCompleteAdvisor ;
8378 this . timerScheduler = timerScheduler ;
8479
8580 this . WhenAnyValue ( x => x . Branches )
@@ -339,9 +334,8 @@ protected string GetDraftKey()
339334 SourceBranch . Name ) ;
340335 }
341336
342- public RemoteRepositoryModel GitHubRepository => githubRepository ? . Value ;
343- bool IsExecuting => isExecuting . Value ;
344- public IAutoCompleteAdvisor AutoCompleteAdvisor { get ; }
337+ public RemoteRepositoryModel GitHubRepository { get { return githubRepository ? . Value ; } }
338+ bool IsExecuting { get { return isExecuting . Value ; } }
345339
346340 bool initialized ;
347341 bool Initialized
0 commit comments