Skip to content

Commit

Permalink
fix: return a Disposable from consumeDefinitionsService (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayame113 authored Jul 22, 2021
1 parent 9335d44 commit 8b583c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ You can also search for [packages](https://atom.io/packages/search?q=IDE) in Ato
![image](https://user-images.githubusercontent.com/16418197/109838982-48eee680-7c0c-11eb-88ee-5ab7889bb2af.png)
![image](https://user-images.githubusercontent.com/16418197/109838990-4a201380-7c0c-11eb-9bf2-7d3bf47ade5d.png)


## Contributing

Please see the [contributing guidelines](CONTRIBUTING.md).
4 changes: 3 additions & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ export function deactivate() {
}

export function consumeDefinitionsService(provider) {
providerRegistry.addProvider(provider)
const providerDisposable = providerRegistry.addProvider(provider)
subscriptions.add(providerDisposable)
return providerDisposable
}

export function getClickProvider() {
Expand Down

0 comments on commit 8b583c3

Please sign in to comment.