{"action":"closed","issue":{"url":"https://api.github.com/repos/ionide/ionide-vscode-fsharp/issues/1283","repository_url":"https://api.github.com/repos/ionide/ionide-vscode-fsharp","labels_url":"https://api.github.com/repos/ionide/ionide-vscode-fsharp/issues/1283/labels{/name}","comments_url":"https://api.github.com/repos/ionide/ionide-vscode-fsharp/issues/1283/comments","events_url":"https://api.github.com/repos/ionide/ionide-vscode-fsharp/issues/1283/events","html_url":"https://github.com/ionide/ionide-vscode-fsharp/issues/1283","id":543949008,"node_id":"MDU6SXNzdWU1NDM5NDkwMDg=","number":1283,"title":"Missing indentition when using pattern matching via anonymous functions in a pipeline","user":{"login":"maxmuen","id":494803,"node_id":"MDQ6VXNlcjQ5NDgwMw==","avatar_url":"https://avatars3.githubusercontent.com/u/494803?v=4","gravatar_id":"","url":"https://api.github.com/users/maxmuen","html_url":"https://github.com/maxmuen","followers_url":"https://api.github.com/users/maxmuen/followers","following_url":"https://api.github.com/users/maxmuen/following{/other_user}","gists_url":"https://api.github.com/users/maxmuen/gists{/gist_id}","starred_url":"https://api.github.com/users/maxmuen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxmuen/subscriptions","organizations_url":"https://api.github.com/users/maxmuen/orgs","repos_url":"https://api.github.com/users/maxmuen/repos","events_url":"https://api.github.com/users/maxmuen/events{/privacy}","received_events_url":"https://api.github.com/users/maxmuen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2019-12-30T17:10:15Z","updated_at":"2019-12-30T17:21:00Z","closed_at":"2019-12-30T17:21:00Z","author_association":"NONE","body":"When using `function` in a pipeline the actual patterns are not indented to the `function` keyword but instead are kept inline with it.\r\n\r\nI looked into [FormattingConventions.md](https://github.com/fsprojects/fantomas/blob/master/docs/FormattingConventions.md), but have not anything directly related to this issue. The best i could find was the rule \r\n\r\n> Pattern matching of anonymous functions, starting by function, are indented with respect to the function keyword:\r\n> ``` fsharpi\r\n> List.map (function\r\n>           | Abs(x, body) -> 1 + sizeLambda 0 body\r\n>           | App(lam1, lam2) -> sizeLambda (sizeLambda 0 lam1) lam2\r\n>           | Var v -> 1) lambdaList\r\n> ```\r\n\r\n**Example**\r\n```fsharp\r\nlet expected =\r\n    b\r\n    |> function\r\n       | Some c -> c\r\n       | None -> 0\r\n    |> id\r\n\r\nlet actual =\r\n    b\r\n    |> function\r\n    | Some c -> c\r\n    | None -> 0\r\n    |> id\r\n\r\n```"}}
{"actor":{"display_login":"maxmuen"}}