{"push_id":2412354430,"size":8,"distinct_size":0,"ref":"refs/heads/master","head":"d6910f6ca7a80a198a4771506327e4399c0b7ff7","before":"f9521bc648876123642a61a2da719fa3d9dceecc","commits":[{"sha":"3b05cfef5bc8f62bde0c8a7867fb92986252ec86","author":{"name":"Alec Larson","email":"de9945a450bb4238c12d04fa3d06a621c0ba9f4d@users.noreply.github.com"},"message":"feat: watch all grammars being edited\n\nOther changes:\r\n  - Watch both .cson and .json grammar files\r\n  - Only watch \"language-*/grammars/*\" paths\r\n  - Only reload grammar packages with changes\r\n  - Reload for \"settings/*\" changes\r\n  - Properly reload grammar packages\r\n  - Live reloading is enabled by default\r\n  - Support for Atom < v1.11.0 is removed\r\n  - Improved debug logs\r\n  - Simplified implementation","distinct":false,"url":"https://api.github.com/repos/aleclarson/atom-grammar-live-reload/commits/3b05cfef5bc8f62bde0c8a7867fb92986252ec86"},{"sha":"11d652e8fc9e3dcc9b3cc592f215468ad0f9a9fd","author":{"name":"Fernandez Ludovic","email":"5cb84b76e88006192454702cac33b28b39502b22@gmail.com"},"message":"refactor: grammarRE as configuration option.","distinct":false,"url":"https://api.github.com/repos/aleclarson/atom-grammar-live-reload/commits/11d652e8fc9e3dcc9b3cc592f215468ad0f9a9fd"},{"sha":"57de76fb93cab4989ce7477d28d8bb9f02e98da2","author":{"name":"Fernandez Ludovic","email":"5cb84b76e88006192454702cac33b28b39502b22@gmail.com"},"message":"refactor: resolve symlink.","distinct":false,"url":"https://api.github.com/repos/aleclarson/atom-grammar-live-reload/commits/57de76fb93cab4989ce7477d28d8bb9f02e98da2"},{"sha":"47f85527e00ca029ecb6e3255926607e232e081d","author":{"name":"Fernandez Ludovic","email":"5cb84b76e88006192454702cac33b28b39502b22@gmail.com"},"message":"refactor: more coffee.","distinct":false,"url":"https://api.github.com/repos/aleclarson/atom-grammar-live-reload/commits/47f85527e00ca029ecb6e3255926607e232e081d"},{"sha":"265862b0353d894e0557c4ca675f02af76cfcfdb","author":{"name":"Fernandez Ludovic","email":"5cb84b76e88006192454702cac33b28b39502b22@gmail.com"},"message":"Prepare 1.1.0 release","distinct":false,"url":"https://api.github.com/repos/aleclarson/atom-grammar-live-reload/commits/265862b0353d894e0557c4ca675f02af76cfcfdb"},{"sha":"6b79e2d1d90c9f9ba11778f9f6d90de6e9959744","author":{"name":"Fernandez Ludovic","email":"5cb84b76e88006192454702cac33b28b39502b22@gmail.com"},"message":"doc: update readme.","distinct":false,"url":"https://api.github.com/repos/aleclarson/atom-grammar-live-reload/commits/6b79e2d1d90c9f9ba11778f9f6d90de6e9959744"},{"sha":"1b3a0d044f4b36f173941abdfee9a1670d380d14","author":{"name":"Fernandez Ludovic","email":"5cb84b76e88006192454702cac33b28b39502b22@gmail.com"},"message":"Prepare 1.1.1 release","distinct":false,"url":"https://api.github.com/repos/aleclarson/atom-grammar-live-reload/commits/1b3a0d044f4b36f173941abdfee9a1670d380d14"},{"sha":"d6910f6ca7a80a198a4771506327e4399c0b7ff7","author":{"name":"aleclarson","email":"6376e4a8a3023385ed3defe2b9b03b307b22ecb5@gmail.com"},"message":"fix: watch buffers instead of editors\n\nWatching `TextBuffer` objects instead of `TextEditor` objects works\nbetter, because editors of the same file share the same buffer.\nAlso, the `onDidDestroy` listener was broken, because it didn't\nlook for editors of the same path before mutating the `watching`\nobject. The first solution I thought of was to keep track of how\nmany editors are open per watched file, but that also meant\nattaching `onDidDestroy` listeners to each editor. I found it much\nsimpler to attach listeners to the shared TextBuffer objects.\n\nThe package of each watched file has an `onDidDeactivate`\nlistener attached. This allows us to stop watching the files\nof that package when/if the grammar is deactivated. This listener\nis reattached whenever the grammar is reloaded, because the `Package`\nobject is recreated.\n\nWhen a watched file is deleted, we stop watching it.\n\nWhen a watched file is renamed, we stop watching it *if* the new file\npath does not match the `grammarRE` pattern. We assume its package\nis still the same, but maybe this isn't a safe assumption?\n\nWe *don't* yet listen for renamed package of watched files, but\nthis could be a nice addition sometime in the future.\n\nThe buffer listeners are now properly disposed of when live reloading\nis disabled by the user.\n\nThe path of each `Package` is already resolved when it's a symlink,\nso `getPackageNameByFilePath` has been refactored and renamed to\n`resolvePackageName`. The function still looks at the `path` of\nevery active package until it finds a match, which I agree is better\nthan assuming the package directory's basename is equal to its\n\"name\" field in `package.json`.","distinct":false,"url":"https://api.github.com/repos/aleclarson/atom-grammar-live-reload/commits/d6910f6ca7a80a198a4771506327e4399c0b7ff7"}]}
{"actor":{"display_login":"aleclarson"}}