ternjs / tern_for_sublime

Sublime Text package adding Tern support
MIT License
803 stars 54 forks source link

tooltip only shows first sentence of JSDoc #69

Closed luca-moser closed 9 years ago

luca-moser commented 9 years ago

Sublime Text 3 Build 3084: For some reason only the first sentence of the JSDoc is shown in the tooltip. On the Tern docs website it says that you can pass fullDocs to the doc plugin, so it parses the whole text instead of just the first sentence, however, it doesnt seem to work when defining that command in the ST3 preferences. I am pretty sure I'm doing something wrong here. ST3

SublimeText 3 preference file (interesting section):

{
    "auto_complete_triggers":
    [
        {
            "characters": "<",
            "selector": "text.html"
        },
        {
            "characters": ".",
            "selector": "source.js"
        }
    ],
    "tab_size": 4,
    "tabs_medium": true,
    "tern_argument_hints": true,
    "tern_argument_completion": true,
    "tern_arguments": ["--fullDocs true"]
}
luca-moser commented 9 years ago

Ok, got it to work by using a .tern-project file with the doc_comment's fullDoc property set to true.