Skip to content

Commit

Permalink
refactor: move service init logic to the onServiceInit method
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 authored and AndrewBastin committed Apr 29, 2024
1 parent 4553510 commit 7bb0706
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -69,7 +69,9 @@ export class UserSpotlightSearcherService extends StaticSpotlightSearcherService
alternates: 1,
},
})
}

override onServiceInit(): void {
this.setDocuments(this.documents)
this.spotlight.registerSearcher(this)
}
Expand Down

0 comments on commit 7bb0706

Please sign in to comment.