Created
July 3, 2018 19:27
-
-
Save SKalt/b1e301133a0e91360c25edbb976a1ddf to your computer and use it in GitHub Desktop.
List all available service names in the atom editor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* global atom */ | |
const allServiceNames = () => { | |
return atom.packages.serviceHub.providers.map((s) => { | |
return Object.values(s.servicesByVersion) | |
.map((v) => Object.keys(v)); | |
}).reduce((acc, red) => acc.concat(...red), []); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment