{"action":"created","issue":{"url":"https://api.github.com/repos/Valloric/ycmd/issues/847","repository_url":"https://api.github.com/repos/Valloric/ycmd","labels_url":"https://api.github.com/repos/Valloric/ycmd/issues/847/labels{/name}","comments_url":"https://api.github.com/repos/Valloric/ycmd/issues/847/comments","events_url":"https://api.github.com/repos/Valloric/ycmd/issues/847/events","html_url":"https://github.com/Valloric/ycmd/issues/847","id":260944210,"number":847,"title":"Using TypeScript for filetype javascript","user":{"login":"maximus8891","id":1893149,"avatar_url":"https://avatars0.githubusercontent.com/u/1893149?v=4","gravatar_id":"","url":"https://api.github.com/users/maximus8891","html_url":"https://github.com/maximus8891","followers_url":"https://api.github.com/users/maximus8891/followers","following_url":"https://api.github.com/users/maximus8891/following{/other_user}","gists_url":"https://api.github.com/users/maximus8891/gists{/gist_id}","starred_url":"https://api.github.com/users/maximus8891/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximus8891/subscriptions","organizations_url":"https://api.github.com/users/maximus8891/orgs","repos_url":"https://api.github.com/users/maximus8891/repos","events_url":"https://api.github.com/users/maximus8891/events{/privacy}","received_events_url":"https://api.github.com/users/maximus8891/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-09-27T11:45:59Z","updated_at":"2018-02-02T14:40:18Z","closed_at":null,"author_association":"NONE","body":"Method [PathToFiletypeCompleterPluginLoader](https://github.com/Valloric/ycmd/blob/master/ycmd/completers/completer_utils.py#L162) searches for completers for a given filetype by their folder names. This way you can't have several completers handling one filetype.\r\n\r\nI discovered this while I was looking for ways to apply the TypeScript completer for javascript files abandoning Tern altogether (it does not support class parameters).\r\n\r\nSince each completer has method `SupportedFiletypes`, I see it as a better place to test if a completer can be used for a filetype. I would have to extend `[ 'typescript' ]` to `['typescript', 'javascript']`.  Of course, you wouldn't want to instantiate each completer to do this check. It makes more sense to make this method static."},"comment":{"url":"https://api.github.com/repos/Valloric/ycmd/issues/comments/362604091","html_url":"https://github.com/Valloric/ycmd/issues/847#issuecomment-362604091","issue_url":"https://api.github.com/repos/Valloric/ycmd/issues/847","id":362604091,"user":{"login":"micbou","id":10026824,"avatar_url":"https://avatars2.githubusercontent.com/u/10026824?v=4","gravatar_id":"","url":"https://api.github.com/users/micbou","html_url":"https://github.com/micbou","followers_url":"https://api.github.com/users/micbou/followers","following_url":"https://api.github.com/users/micbou/following{/other_user}","gists_url":"https://api.github.com/users/micbou/gists{/gist_id}","starred_url":"https://api.github.com/users/micbou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micbou/subscriptions","organizations_url":"https://api.github.com/users/micbou/orgs","repos_url":"https://api.github.com/users/micbou/repos","events_url":"https://api.github.com/users/micbou/events{/privacy}","received_events_url":"https://api.github.com/users/micbou/received_events","type":"User","site_admin":false},"created_at":"2018-02-02T14:40:18Z","updated_at":"2018-02-02T14:40:18Z","author_association":"COLLABORATOR","body":"Strange, it's working for me. Which version of TypeScript are you using? I tried with 2.7.1. Anyway, I've updated the branch with the latest version of ycmd. Could you give it a try?"}}
{"actor":{"display_login":"micbou"}}