You can look at https://github.com/adobe/brackets/blob/master/src/editor/CodeHintManager.js#L570 as an example.