{"action":"created","issue":{"url":"https://api.github.com/repos/atom/atom-languageclient/issues/56","repository_url":"https://api.github.com/repos/atom/atom-languageclient","labels_url":"https://api.github.com/repos/atom/atom-languageclient/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/atom/atom-languageclient/issues/56/comments","events_url":"https://api.github.com/repos/atom/atom-languageclient/issues/56/events","html_url":"https://github.com/atom/atom-languageclient/issues/56","id":241279145,"number":56,"title":"Document synchronization actions are triggered for unsupported languages","user":{"login":"janos-ss","id":21700885,"avatar_url":"https://avatars3.githubusercontent.com/u/21700885?v=3","gravatar_id":"","url":"https://api.github.com/users/janos-ss","html_url":"https://github.com/janos-ss","followers_url":"https://api.github.com/users/janos-ss/followers","following_url":"https://api.github.com/users/janos-ss/following{/other_user}","gists_url":"https://api.github.com/users/janos-ss/gists{/gist_id}","starred_url":"https://api.github.com/users/janos-ss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janos-ss/subscriptions","organizations_url":"https://api.github.com/users/janos-ss/orgs","repos_url":"https://api.github.com/users/janos-ss/repos","events_url":"https://api.github.com/users/janos-ss/events{/privacy}","received_events_url":"https://api.github.com/users/janos-ss/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-07-07T14:21:27Z","updated_at":"2017-07-07T17:42:06Z","closed_at":null,"body":"The language client gets activated when working with files whose language matches `getGrammarScopes`. But once activated, document synchronization actions are triggered for all files, because the editor selector function passed to `DocumentSyncAdapter` disregards `getGrammarScopes`."},"comment":{"url":"https://api.github.com/repos/atom/atom-languageclient/issues/comments/313747501","html_url":"https://github.com/atom/atom-languageclient/issues/56#issuecomment-313747501","issue_url":"https://api.github.com/repos/atom/atom-languageclient/issues/56","id":313747501,"user":{"login":"hansonw","id":577378,"avatar_url":"https://avatars0.githubusercontent.com/u/577378?v=3","gravatar_id":"","url":"https://api.github.com/users/hansonw","html_url":"https://github.com/hansonw","followers_url":"https://api.github.com/users/hansonw/followers","following_url":"https://api.github.com/users/hansonw/following{/other_user}","gists_url":"https://api.github.com/users/hansonw/gists{/gist_id}","starred_url":"https://api.github.com/users/hansonw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hansonw/subscriptions","organizations_url":"https://api.github.com/users/hansonw/orgs","repos_url":"https://api.github.com/users/hansonw/repos","events_url":"https://api.github.com/users/hansonw/events{/privacy}","received_events_url":"https://api.github.com/users/hansonw/received_events","type":"User","site_admin":false},"created_at":"2017-07-07T17:42:06Z","updated_at":"2017-07-07T17:42:06Z","body":"FWIW VSCode's language client seems to enforce its `documentSelector` on all document events: https://github.com/Microsoft/vscode-languageserver-node/blob/6dbda9039f5702abaf959076596e187a3c03ddd0/client/src/client.ts#L594\r\n\r\nI think for the Java/XML use case you'd have to explicitly register to both .java and .xml files."}}
{"actor":{"display_login":"hansonw"}}