{"action":"created","issue":{"url":"https://api.github.com/repos/saviorisdead/RustyCode/issues/206","repository_url":"https://api.github.com/repos/saviorisdead/RustyCode","labels_url":"https://api.github.com/repos/saviorisdead/RustyCode/issues/206/labels{/name}","comments_url":"https://api.github.com/repos/saviorisdead/RustyCode/issues/206/comments","events_url":"https://api.github.com/repos/saviorisdead/RustyCode/issues/206/events","html_url":"https://github.com/saviorisdead/RustyCode/issues/206","id":185224149,"number":206,"title":"Intellisense doesn't populate for locally-declared enum branches","user":{"login":"TedDriggs","id":4805575,"avatar_url":"https://avatars.githubusercontent.com/u/4805575?v=3","gravatar_id":"","url":"https://api.github.com/users/TedDriggs","html_url":"https://github.com/TedDriggs","followers_url":"https://api.github.com/users/TedDriggs/followers","following_url":"https://api.github.com/users/TedDriggs/following{/other_user}","gists_url":"https://api.github.com/users/TedDriggs/gists{/gist_id}","starred_url":"https://api.github.com/users/TedDriggs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TedDriggs/subscriptions","organizations_url":"https://api.github.com/users/TedDriggs/orgs","repos_url":"https://api.github.com/users/TedDriggs/repos","events_url":"https://api.github.com/users/TedDriggs/events{/privacy}","received_events_url":"https://api.github.com/users/TedDriggs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-25T20:24:46Z","updated_at":"2016-11-02T16:52:39Z","closed_at":null,"body":"Observed on OS X with RustyCode 0.19.1\n\n```\nfn metric(s: &'static str) -> ast::Expression {\n    ast::Expression::from(ast::MetricKey::from(String::from(s)))\n}\n\nfn validator_demo() {    \n    let cmp = metric(\"device.http.server.errorRatio\").op(ast::Operator::Gte, ast::Expression::Constant(0.1.into()));\n\n    let subtraction = ast::Expression::Binary(ast::BinaryOp::new(\n        metric(\"server-errors\"), \n        ast::Operator::Sub, \n        metric(\"client-errors\")\n    ));\n}\n```\n\nIn the code above, adding a new line inside `validator_demo` and typing `cmp.` will provide all the methods declared on `ast::Expression`; see screenshot\n\n![screen shot 2016-10-25 at 1 22 49 pm](https://cloud.githubusercontent.com/assets/4805575/19702838/379dfcae-9ab6-11e6-8d26-b9f903c54363.png)\n\nDoing the same with `subtraction` only provides word suggestions from elsewhere in the document:\n\n![screen shot 2016-10-25 at 1 23 09 pm](https://cloud.githubusercontent.com/assets/4805575/19702837/3799599c-9ab6-11e6-9434-0d00df72ac2a.png)\n"},"comment":{"url":"https://api.github.com/repos/saviorisdead/RustyCode/issues/comments/257926313","html_url":"https://github.com/saviorisdead/RustyCode/issues/206#issuecomment-257926313","issue_url":"https://api.github.com/repos/saviorisdead/RustyCode/issues/206","id":257926313,"user":{"login":"W4RH4WK","id":328798,"avatar_url":"https://avatars.githubusercontent.com/u/328798?v=3","gravatar_id":"","url":"https://api.github.com/users/W4RH4WK","html_url":"https://github.com/W4RH4WK","followers_url":"https://api.github.com/users/W4RH4WK/followers","following_url":"https://api.github.com/users/W4RH4WK/following{/other_user}","gists_url":"https://api.github.com/users/W4RH4WK/gists{/gist_id}","starred_url":"https://api.github.com/users/W4RH4WK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/W4RH4WK/subscriptions","organizations_url":"https://api.github.com/users/W4RH4WK/orgs","repos_url":"https://api.github.com/users/W4RH4WK/repos","events_url":"https://api.github.com/users/W4RH4WK/events{/privacy}","received_events_url":"https://api.github.com/users/W4RH4WK/received_events","type":"User","site_admin":false},"created_at":"2016-11-02T16:52:39Z","updated_at":"2016-11-02T16:52:39Z","body":"I think you can run `racer` from the commandline to see what it finds for a given position. Take a look at racer's documentation. If the wanted entries do not show up in the output, head over to the `racer` repository."}}
{"actor":{"display_login":"W4RH4WK"}}