{"action":"created","issue":{"url":"https://api.github.com/repos/PowerShell/PSScriptAnalyzer/issues/775","repository_url":"https://api.github.com/repos/PowerShell/PSScriptAnalyzer","labels_url":"https://api.github.com/repos/PowerShell/PSScriptAnalyzer/issues/775/labels{/name}","comments_url":"https://api.github.com/repos/PowerShell/PSScriptAnalyzer/issues/775/comments","events_url":"https://api.github.com/repos/PowerShell/PSScriptAnalyzer/issues/775/events","html_url":"https://github.com/PowerShell/PSScriptAnalyzer/issues/775","id":235037034,"number":775,"title":"Add `-Path` parameter to `Invoke-Formatter`","user":{"login":"kapilmb","id":14225543,"avatar_url":"https://avatars3.githubusercontent.com/u/14225543?v=4","gravatar_id":"","url":"https://api.github.com/users/kapilmb","html_url":"https://github.com/kapilmb","followers_url":"https://api.github.com/users/kapilmb/followers","following_url":"https://api.github.com/users/kapilmb/following{/other_user}","gists_url":"https://api.github.com/users/kapilmb/gists{/gist_id}","starred_url":"https://api.github.com/users/kapilmb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kapilmb/subscriptions","organizations_url":"https://api.github.com/users/kapilmb/orgs","repos_url":"https://api.github.com/users/kapilmb/repos","events_url":"https://api.github.com/users/kapilmb/events{/privacy}","received_events_url":"https://api.github.com/users/kapilmb/received_events","type":"User","site_admin":false},"labels":[{"id":624052462,"url":"https://api.github.com/repos/PowerShell/PSScriptAnalyzer/labels/Area%20-%20Formatter","name":"Area - Formatter","color":"c2e0c6","default":false},{"id":813128662,"url":"https://api.github.com/repos/PowerShell/PSScriptAnalyzer/labels/Feature%20Request","name":"Feature Request","color":"3469d3","default":false},{"id":201969610,"url":"https://api.github.com/repos/PowerShell/PSScriptAnalyzer/labels/Issue%20-%20Enhancement","name":"Issue - Enhancement","color":"fad8c7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-06-11T01:37:37Z","updated_at":"2018-02-21T20:35:00Z","closed_at":null,"author_association":"MEMBER","body":"`Invoke-Formatter` takes only a `ScriptDefinition` parameter. The user should be able to point the cmdlet to a file for formatting. However, the following things need to be preserved when formatting a file:\r\n- file encoding\r\n- new line characters\r\n- indentation type `{tab, space}`"},"comment":{"url":"https://api.github.com/repos/PowerShell/PSScriptAnalyzer/issues/comments/367462956","html_url":"https://github.com/PowerShell/PSScriptAnalyzer/issues/775#issuecomment-367462956","issue_url":"https://api.github.com/repos/PowerShell/PSScriptAnalyzer/issues/775","id":367462956,"user":{"login":"Kriegel","id":1510464,"avatar_url":"https://avatars2.githubusercontent.com/u/1510464?v=4","gravatar_id":"","url":"https://api.github.com/users/Kriegel","html_url":"https://github.com/Kriegel","followers_url":"https://api.github.com/users/Kriegel/followers","following_url":"https://api.github.com/users/Kriegel/following{/other_user}","gists_url":"https://api.github.com/users/Kriegel/gists{/gist_id}","starred_url":"https://api.github.com/users/Kriegel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kriegel/subscriptions","organizations_url":"https://api.github.com/users/Kriegel/orgs","repos_url":"https://api.github.com/users/Kriegel/repos","events_url":"https://api.github.com/users/Kriegel/events{/privacy}","received_events_url":"https://api.github.com/users/Kriegel/received_events","type":"User","site_admin":false},"created_at":"2018-02-21T20:35:00Z","updated_at":"2018-02-21T20:35:00Z","author_association":"NONE","body":"@bergmeister \r\nThank you! -raw does it!\r\n\r\nThis works even fine fo me:\r\n```\r\n# Replace whole text in current file with formatted text\r\n$psise.CurrentFile.Editor.Text = Invoke-Formatter $psise.CurrentFile.Editor.Text\r\n```\r\n\r\ntesting with VSCode ......."}}
{"actor":{"display_login":"Kriegel"}}