{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/language-server-protocol/issues/407","repository_url":"https://api.github.com/repos/Microsoft/language-server-protocol","labels_url":"https://api.github.com/repos/Microsoft/language-server-protocol/issues/407/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/language-server-protocol/issues/407/comments","events_url":"https://api.github.com/repos/Microsoft/language-server-protocol/issues/407/events","html_url":"https://github.com/Microsoft/language-server-protocol/issues/407","id":298520603,"number":407,"title":"Question: is the max open count of 1 enforced?","user":{"login":"keyboardDrummer","id":3121201,"avatar_url":"https://avatars1.githubusercontent.com/u/3121201?v=4","gravatar_id":"","url":"https://api.github.com/users/keyboardDrummer","html_url":"https://github.com/keyboardDrummer","followers_url":"https://api.github.com/users/keyboardDrummer/followers","following_url":"https://api.github.com/users/keyboardDrummer/following{/other_user}","gists_url":"https://api.github.com/users/keyboardDrummer/gists{/gist_id}","starred_url":"https://api.github.com/users/keyboardDrummer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keyboardDrummer/subscriptions","organizations_url":"https://api.github.com/users/keyboardDrummer/orgs","repos_url":"https://api.github.com/users/keyboardDrummer/repos","events_url":"https://api.github.com/users/keyboardDrummer/events{/privacy}","received_events_url":"https://api.github.com/users/keyboardDrummer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-20T09:18:53Z","updated_at":"2018-02-20T09:18:53Z","closed_at":null,"author_association":"NONE","body":"In the LSP documentation for the `DidOpenTextDocument` notification it mentions that:\r\n> An open notification must not be sent more than once without a corresponding close notification send before. This means open and close notification must be balanced and the max open count is one.\r\n\r\nThis seems awfully restrictive for text editors, since it would mean only 1 file with unsaved changes can be open at once. How is this being resolved in practice?\r\n\r\nOne hypothesis I have is that many LSP servers in the `TextDocumentSyncOptions` of their `ServerCapabilities` set `openClose` to `false`, so they don't require sending open and close notifications, and instead rely on `didChange` and `didSave` notifications to know for what files to keep state in memory."}}
{"actor":{"display_login":"keyboardDrummer"}}