{"action":"created","issue":{"url":"https://api.github.com/repos/prettier/prettier-atom/issues/178","repository_url":"https://api.github.com/repos/prettier/prettier-atom","labels_url":"https://api.github.com/repos/prettier/prettier-atom/issues/178/labels{/name}","comments_url":"https://api.github.com/repos/prettier/prettier-atom/issues/178/comments","events_url":"https://api.github.com/repos/prettier/prettier-atom/issues/178/events","html_url":"https://github.com/prettier/prettier-atom/issues/178","id":233156329,"number":178,"title":"Show which options are used on format","user":{"login":"darahak","id":11488612,"avatar_url":"https://avatars3.githubusercontent.com/u/11488612?v=4","gravatar_id":"","url":"https://api.github.com/users/darahak","html_url":"https://github.com/darahak","followers_url":"https://api.github.com/users/darahak/followers","following_url":"https://api.github.com/users/darahak/following{/other_user}","gists_url":"https://api.github.com/users/darahak/gists{/gist_id}","starred_url":"https://api.github.com/users/darahak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darahak/subscriptions","organizations_url":"https://api.github.com/users/darahak/orgs","repos_url":"https://api.github.com/users/darahak/repos","events_url":"https://api.github.com/users/darahak/events{/privacy}","received_events_url":"https://api.github.com/users/darahak/received_events","type":"User","site_admin":false},"labels":[{"id":515022980,"url":"https://api.github.com/repos/prettier/prettier-atom/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"darahak","id":11488612,"avatar_url":"https://avatars3.githubusercontent.com/u/11488612?v=4","gravatar_id":"","url":"https://api.github.com/users/darahak","html_url":"https://github.com/darahak","followers_url":"https://api.github.com/users/darahak/followers","following_url":"https://api.github.com/users/darahak/following{/other_user}","gists_url":"https://api.github.com/users/darahak/gists{/gist_id}","starred_url":"https://api.github.com/users/darahak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darahak/subscriptions","organizations_url":"https://api.github.com/users/darahak/orgs","repos_url":"https://api.github.com/users/darahak/repos","events_url":"https://api.github.com/users/darahak/events{/privacy}","received_events_url":"https://api.github.com/users/darahak/received_events","type":"User","site_admin":false},"assignees":[{"login":"darahak","id":11488612,"avatar_url":"https://avatars3.githubusercontent.com/u/11488612?v=4","gravatar_id":"","url":"https://api.github.com/users/darahak","html_url":"https://github.com/darahak","followers_url":"https://api.github.com/users/darahak/followers","following_url":"https://api.github.com/users/darahak/following{/other_user}","gists_url":"https://api.github.com/users/darahak/gists{/gist_id}","starred_url":"https://api.github.com/users/darahak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darahak/subscriptions","organizations_url":"https://api.github.com/users/darahak/orgs","repos_url":"https://api.github.com/users/darahak/repos","events_url":"https://api.github.com/users/darahak/events{/privacy}","received_events_url":"https://api.github.com/users/darahak/received_events","type":"User","site_admin":false}],"milestone":null,"comments":9,"created_at":"2017-06-02T11:36:01Z","updated_at":"2018-02-10T21:11:14Z","closed_at":null,"author_association":"COLLABORATOR","body":"Related to #177.\r\n\r\nLooks like `prettier-atom` is not transparent/explicit enough on which options are used for formatting and where they come from (ESLint, EditorConfig, etc.).\r\n\r\nIt's hard to debug, so we could add another toggle command that shows what the formatter is doing every time."},"comment":{"url":"https://api.github.com/repos/prettier/prettier-atom/issues/comments/364692524","html_url":"https://github.com/prettier/prettier-atom/issues/178#issuecomment-364692524","issue_url":"https://api.github.com/repos/prettier/prettier-atom/issues/178","id":364692524,"user":{"login":"robwise","id":6173488,"avatar_url":"https://avatars3.githubusercontent.com/u/6173488?v=4","gravatar_id":"","url":"https://api.github.com/users/robwise","html_url":"https://github.com/robwise","followers_url":"https://api.github.com/users/robwise/followers","following_url":"https://api.github.com/users/robwise/following{/other_user}","gists_url":"https://api.github.com/users/robwise/gists{/gist_id}","starred_url":"https://api.github.com/users/robwise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robwise/subscriptions","organizations_url":"https://api.github.com/users/robwise/orgs","repos_url":"https://api.github.com/users/robwise/repos","events_url":"https://api.github.com/users/robwise/events{/privacy}","received_events_url":"https://api.github.com/users/robwise/received_events","type":"User","site_admin":false},"created_at":"2018-02-10T21:11:14Z","updated_at":"2018-02-10T21:11:14Z","author_association":"COLLABORATOR","body":"Well the problem is that if you put in the debug command you're going to need to write code that duplicates all of the logic that happens when you run executePrettierOnBufferRange (such as building the prettier options, checking settings, everything) and manually ensure that this stays in sync (if we change how this works in executePrettierOnBufferRange, we would need to remember to go change how it works in the debug command as well). If you just put in some function that can `_.tap` and log values at a certain point if a certain environment or context option is set, then it's always automatically up-to-date."}}
{"actor":{"display_login":"robwise"}}