ternjs / tern_for_sublime

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

Completions in strings/comments #120

Closed goldfire closed 8 years ago

goldfire commented 8 years ago

In looking at #12 and #13, it looks like this should be working, but I'm getting completions inside both strings and comments. Is it simply an issue with my configuration or something else?

Tern.sublime-settings:

{
    "tern_argument_hints": true,
    "tern_output_style": "tooltip",
    "tern_argument_completion": true,
    "tern_command": [
      "/path/to/.nvm/versions/node/v4.4.4/bin/node",
      "/path/to/Sublime Text 3/Packages/tern_for_sublime/node_modules/tern/bin/tern"
    ]
}

.tern-project:

{
    "libs":["browser"],
    "plugins":{
        "complete_strings":{},
        "doc_comment": {
            "fullDocs":true
        },
        "es_modules": {},
        "modules": {},
        "node":{},
        "node_resolve": {},
        "webpack": {}
    }
}
marijnh commented 8 years ago

It seems the code in #13 didn't actually work. Patch 32342ba should fix it.