{"action":"created","issue":{"url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/1770","labels_url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/1770/labels{/name}","comments_url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/1770/comments","events_url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/1770/events","html_url":"https://github.com/Valloric/YouCompleteMe/pull/1770","id":116768675,"number":1770,"title":"Defer setting the omnifunc only the first time","user":{"login":"vheon","id":90633,"avatar_url":"https://avatars.githubusercontent.com/u/90633?v=3","gravatar_id":"","url":"https://api.github.com/users/vheon","html_url":"https://github.com/vheon","followers_url":"https://api.github.com/users/vheon/followers","following_url":"https://api.github.com/users/vheon/following{/other_user}","gists_url":"https://api.github.com/users/vheon/gists{/gist_id}","starred_url":"https://api.github.com/users/vheon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vheon/subscriptions","organizations_url":"https://api.github.com/users/vheon/orgs","repos_url":"https://api.github.com/users/vheon/repos","events_url":"https://api.github.com/users/vheon/events{/privacy}","received_events_url":"https://api.github.com/users/vheon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":26,"created_at":"2015-11-13T13:29:12Z","updated_at":"2015-11-21T18:32:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Valloric/YouCompleteMe/pulls/1770","html_url":"https://github.com/Valloric/YouCompleteMe/pull/1770","diff_url":"https://github.com/Valloric/YouCompleteMe/pull/1770.diff","patch_url":"https://github.com/Valloric/YouCompleteMe/pull/1770.patch"},"body":"This basically is a return to the older approach where everything is done on OnBufferVisit. This way we just defer the first time.\n\n<!-- Reviewable:start -->\n[<img src=\"https://reviewable.io/review_button.png\" height=40 alt=\"Review on Reviewable\"/>](https://reviewable.io/reviews/valloric/youcompleteme/1770)\n<!-- Reviewable:end -->\n"},"comment":{"url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/comments/158670852","html_url":"https://github.com/Valloric/YouCompleteMe/pull/1770#issuecomment-158670852","issue_url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/1770","id":158670852,"user":{"login":"Valloric","id":919444,"avatar_url":"https://avatars.githubusercontent.com/u/919444?v=3","gravatar_id":"","url":"https://api.github.com/users/Valloric","html_url":"https://github.com/Valloric","followers_url":"https://api.github.com/users/Valloric/followers","following_url":"https://api.github.com/users/Valloric/following{/other_user}","gists_url":"https://api.github.com/users/Valloric/gists{/gist_id}","starred_url":"https://api.github.com/users/Valloric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Valloric/subscriptions","organizations_url":"https://api.github.com/users/Valloric/orgs","repos_url":"https://api.github.com/users/Valloric/repos","events_url":"https://api.github.com/users/Valloric/events{/privacy}","received_events_url":"https://api.github.com/users/Valloric/received_events","type":"User","site_admin":false},"created_at":"2015-11-21T18:32:42Z","updated_at":"2015-11-21T18:32:42Z","body":"\n\n\n\nReview status: all files reviewed at latest revision, 1 unresolved discussion, all commit checks successful.\n\n---\n\n_[autoload/youcompleteme.vim, line 92 \\[r2\\]](https://reviewable.io:443/reviews/valloric/youcompleteme/1770#-K3fJNd08mT7xuamad3J:-K3fJNd08mT7xuamad3K:-412161212) ([raw file](https://github.com/valloric/youcompleteme/blob/eb0e199c3fed3b0146d3c4754b04561a9643bd9f/autoload/youcompleteme.vim#L92)):_\nThere should be a comment here explaining why we are deferring. \n\n---\n\n\n_Comments from the [review on Reviewable.io](https://reviewable.io:443/reviews/valloric/youcompleteme/1770)_\n<!-- Sent from Reviewable.io -->\n"}}