facebookarchive / ide-flowtype

Flow support for Atom IDE
Other
178 stars 17 forks source link

Where are the global Atom types coming from? #62

Closed saadq closed 6 years ago

saadq commented 6 years ago

I noticed that there seems to be autocomplete suggestions coming for the atom global variable, even when all I have in my atom.js decls is declare var atom: Object

screen shot 2018-02-23 at 4 10 25 pm

I'm mainly asking because when I write my own types, I'm unable to get descriptions of the types appear at the bottom of the autocomplete window like they do in the screenshot. Just wanted to see if there's a certain syntax you need to use for comments to show up in the autocomplete suggestion.

I tried looking through both atom-ide-ui and ide-flowtype, but I don't think I was able to find where the descriptions were coming from.

Arcanemagus commented 6 years ago

The built in Atom API autocompletions are coming from autocomplete-atom-api.

saadq commented 6 years ago

Ah, apologies for opening the issue here. Hadn't really noticed this til I started using flowtype.