To help implement these types of features the IDE embeds a version of the language inside of itself.
The problem with this is you then need a new IDE for each new language.
Because a good programmer's editor will try to be language neutral it does not have that luxury.
But as a bonus, because the editor is not carrying around all that extra language baggage the editor will always be faster than the IDE.