{"action":"created","issue":{"url":"https://api.github.com/repos/eclipse/che/issues/2471","repository_url":"https://api.github.com/repos/eclipse/che","labels_url":"https://api.github.com/repos/eclipse/che/issues/2471/labels{/name}","comments_url":"https://api.github.com/repos/eclipse/che/issues/2471/comments","events_url":"https://api.github.com/repos/eclipse/che/issues/2471/events","html_url":"https://github.com/eclipse/che/issues/2471","id":177424560,"number":2471,"title":"Send schema associations to JSON language server","user":{"login":"kaloyan-raev","id":468091,"avatar_url":"https://avatars.githubusercontent.com/u/468091?v=3","gravatar_id":"","url":"https://api.github.com/users/kaloyan-raev","html_url":"https://github.com/kaloyan-raev","followers_url":"https://api.github.com/users/kaloyan-raev/followers","following_url":"https://api.github.com/users/kaloyan-raev/following{/other_user}","gists_url":"https://api.github.com/users/kaloyan-raev/gists{/gist_id}","starred_url":"https://api.github.com/users/kaloyan-raev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaloyan-raev/subscriptions","organizations_url":"https://api.github.com/users/kaloyan-raev/orgs","repos_url":"https://api.github.com/users/kaloyan-raev/repos","events_url":"https://api.github.com/users/kaloyan-raev/events{/privacy}","received_events_url":"https://api.github.com/users/kaloyan-raev/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eclipse/che/labels/kind/enhancement","name":"kind/enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"kaloyan-raev","id":468091,"avatar_url":"https://avatars.githubusercontent.com/u/468091?v=3","gravatar_id":"","url":"https://api.github.com/users/kaloyan-raev","html_url":"https://github.com/kaloyan-raev","followers_url":"https://api.github.com/users/kaloyan-raev/followers","following_url":"https://api.github.com/users/kaloyan-raev/following{/other_user}","gists_url":"https://api.github.com/users/kaloyan-raev/gists{/gist_id}","starred_url":"https://api.github.com/users/kaloyan-raev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaloyan-raev/subscriptions","organizations_url":"https://api.github.com/users/kaloyan-raev/orgs","repos_url":"https://api.github.com/users/kaloyan-raev/repos","events_url":"https://api.github.com/users/kaloyan-raev/events{/privacy}","received_events_url":"https://api.github.com/users/kaloyan-raev/received_events","type":"User","site_admin":false},"assignees":[{"login":"kaloyan-raev","id":468091,"avatar_url":"https://avatars.githubusercontent.com/u/468091?v=3","gravatar_id":"","url":"https://api.github.com/users/kaloyan-raev","html_url":"https://github.com/kaloyan-raev","followers_url":"https://api.github.com/users/kaloyan-raev/followers","following_url":"https://api.github.com/users/kaloyan-raev/following{/other_user}","gists_url":"https://api.github.com/users/kaloyan-raev/gists{/gist_id}","starred_url":"https://api.github.com/users/kaloyan-raev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaloyan-raev/subscriptions","organizations_url":"https://api.github.com/users/kaloyan-raev/orgs","repos_url":"https://api.github.com/users/kaloyan-raev/repos","events_url":"https://api.github.com/users/kaloyan-raev/events{/privacy}","received_events_url":"https://api.github.com/users/kaloyan-raev/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/eclipse/che/milestones/16","html_url":"https://github.com/eclipse/che/milestones/5.0.0-M6","labels_url":"https://api.github.com/repos/eclipse/che/milestones/16/labels","id":2037981,"number":16,"title":"5.0.0-M6","description":"","creator":{"login":"bmicklea","id":7644938,"avatar_url":"https://avatars.githubusercontent.com/u/7644938?v=3","gravatar_id":"","url":"https://api.github.com/users/bmicklea","html_url":"https://github.com/bmicklea","followers_url":"https://api.github.com/users/bmicklea/followers","following_url":"https://api.github.com/users/bmicklea/following{/other_user}","gists_url":"https://api.github.com/users/bmicklea/gists{/gist_id}","starred_url":"https://api.github.com/users/bmicklea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmicklea/subscriptions","organizations_url":"https://api.github.com/users/bmicklea/orgs","repos_url":"https://api.github.com/users/bmicklea/repos","events_url":"https://api.github.com/users/bmicklea/events{/privacy}","received_events_url":"https://api.github.com/users/bmicklea/received_events","type":"User","site_admin":false},"open_issues":17,"closed_issues":2,"state":"open","created_at":"2016-09-29T16:04:09Z","updated_at":"2016-10-05T19:51:06Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-09-16T13:23:51Z","updated_at":"2016-10-06T07:27:58Z","closed_at":null,"body":"The VS Code language server expects a custom (not part of the protocol) notification `json/schemaAssociations` to associate JSON files to JSON schemas. This activates capabilities like code completion, validation and hover without the need to add a `$schema` key.\r\n\r\nHere is an example object passed with the `json/schemaAssociations` notification:\r\n```json\r\n{\r\n    \"/bower.json\": [\r\n        \"http://json.schemastore.org/bower\"\r\n    ],\r\n    \"/composer.json\": [\r\n        \"https://getcomposer.org/schema.json\"\r\n    ],\r\n}\r\n```\r\n\r\nCurrently, Che does not send the `json/schemaAssociations` notification, which significantly limits the capabilities of the JSON language server integration. It is not realistic to expect that users will manually add the `$schema` key to each JSON file they work with.\r\n\r\n**Reproduction Steps:**\r\n\r\n1. Open a bower.json file\r\n2. Try code completion\r\n\r\n**Expected behavior:**\r\n\r\nCode completion, validation and hover work without specifying a proper `$schema` key.\r\n\r\n**Observed behavior:**\r\n\r\nCode completion, validation and hover do not work without specifying a proper `$schema` key.\r\n\r\n**Che version:**    5.0.0-M2-SNAPSHOT (latest master)\r\n**OS and version:** Fedora 24\r\n**Docker version:** 1.10.3\r\n**Che install:**    local build, run with the `bin/che.sh` script\r\n\r\n**Additional information:**\r\n\r\n* Problem started happening recently, didn't happen in an older version of Che: [No]\r\n* Problem can be reliably reproduced, doesn't happen randomly: [Yes]\r\n"},"comment":{"url":"https://api.github.com/repos/eclipse/che/issues/comments/251887174","html_url":"https://github.com/eclipse/che/issues/2471#issuecomment-251887174","issue_url":"https://api.github.com/repos/eclipse/che/issues/2471","id":251887174,"user":{"login":"kaloyan-raev","id":468091,"avatar_url":"https://avatars.githubusercontent.com/u/468091?v=3","gravatar_id":"","url":"https://api.github.com/users/kaloyan-raev","html_url":"https://github.com/kaloyan-raev","followers_url":"https://api.github.com/users/kaloyan-raev/followers","following_url":"https://api.github.com/users/kaloyan-raev/following{/other_user}","gists_url":"https://api.github.com/users/kaloyan-raev/gists{/gist_id}","starred_url":"https://api.github.com/users/kaloyan-raev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaloyan-raev/subscriptions","organizations_url":"https://api.github.com/users/kaloyan-raev/orgs","repos_url":"https://api.github.com/users/kaloyan-raev/repos","events_url":"https://api.github.com/users/kaloyan-raev/events{/privacy}","received_events_url":"https://api.github.com/users/kaloyan-raev/received_events","type":"User","site_admin":false},"created_at":"2016-10-06T07:27:58Z","updated_at":"2016-10-06T07:27:58Z","body":"@tolusha OK. I am curious to see how this new approach looks like."}}
{"actor":{"display_login":"kaloyan-raev"}}