{"action":"closed","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/13681","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/13681/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/13681/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/13681/events","html_url":"https://github.com/Microsoft/vscode/issues/13681","id":182800670,"number":13681,"title":"Format on Save will create a bad format with cshtml files","user":{"login":"Thoorium","id":7754953,"avatar_url":"https://avatars.githubusercontent.com/u/7754953?v=3","gravatar_id":"","url":"https://api.github.com/users/Thoorium","html_url":"https://github.com/Thoorium","followers_url":"https://api.github.com/users/Thoorium/followers","following_url":"https://api.github.com/users/Thoorium/following{/other_user}","gists_url":"https://api.github.com/users/Thoorium/gists{/gist_id}","starred_url":"https://api.github.com/users/Thoorium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Thoorium/subscriptions","organizations_url":"https://api.github.com/users/Thoorium/orgs","repos_url":"https://api.github.com/users/Thoorium/repos","events_url":"https://api.github.com/users/Thoorium/events{/privacy}","received_events_url":"https://api.github.com/users/Thoorium/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/vscode/labels/html","name":"html","color":"1d76db"}],"state":"closed","locked":false,"assignee":{"login":"aeschli","id":6461412,"avatar_url":"https://avatars.githubusercontent.com/u/6461412?v=3","gravatar_id":"","url":"https://api.github.com/users/aeschli","html_url":"https://github.com/aeschli","followers_url":"https://api.github.com/users/aeschli/followers","following_url":"https://api.github.com/users/aeschli/following{/other_user}","gists_url":"https://api.github.com/users/aeschli/gists{/gist_id}","starred_url":"https://api.github.com/users/aeschli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aeschli/subscriptions","organizations_url":"https://api.github.com/users/aeschli/orgs","repos_url":"https://api.github.com/users/aeschli/repos","events_url":"https://api.github.com/users/aeschli/events{/privacy}","received_events_url":"https://api.github.com/users/aeschli/received_events","type":"User","site_admin":false},"assignees":[{"login":"aeschli","id":6461412,"avatar_url":"https://avatars.githubusercontent.com/u/6461412?v=3","gravatar_id":"","url":"https://api.github.com/users/aeschli","html_url":"https://github.com/aeschli","followers_url":"https://api.github.com/users/aeschli/followers","following_url":"https://api.github.com/users/aeschli/following{/other_user}","gists_url":"https://api.github.com/users/aeschli/gists{/gist_id}","starred_url":"https://api.github.com/users/aeschli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aeschli/subscriptions","organizations_url":"https://api.github.com/users/aeschli/orgs","repos_url":"https://api.github.com/users/aeschli/repos","events_url":"https://api.github.com/users/aeschli/events{/privacy}","received_events_url":"https://api.github.com/users/aeschli/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2016-10-13T14:11:08Z","updated_at":"2016-10-17T14:27:02Z","closed_at":"2016-10-17T14:27:02Z","body":"- VSCode Version: Code 1.6.0 (e52fb0bc87e6f5c8f144e172639891d8d8c9aa55, 2016-10-10T18:28:55.412Z)\r\n- OS Version: Darwin x64 15.6.0\r\n- Extensions: PKief.material-icon-theme-1.1.1, abusaidm.html-snippets-0.0.17, be5invis.vscode-icontheme-nomo-dark-1.1.4, donjayamanne.python-0.4.2, k--kato.docomment-0.0.7, lukehoban.Go-0.6.44, ms-vscode.csharp-1.4.1, robertohuertasm.vscode-icons-3.0.4\r\n\r\nSteps to Reproduce:\r\n\r\nProject type: Aspnet Core MVC\r\n\r\n1. In a cshtml file for a view, add a model on the first line then a block of code  \r\n```\r\n@model MyModel  \r\n@{  \r\n    ViewData[\"Title\"] = \"My title\";  \r\n }\r\n```\r\n2. Save the file. The new format will be\r\n`@model MyModel @{ ViewData[\"Title\"] = \"My title\";}`\r\n3. Because it is all on one line, a compilation error will be thrown when the view is loaded"}}
{"actor":{"display_login":"aeschli"}}