{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/7911","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/7911/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/7911/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/7911/events","html_url":"https://github.com/Microsoft/TypeScript/issues/7911","id":146466743,"number":7911,"title":"Typescript compile on save setting in Visual studio is not honored ","user":{"login":"rkavalap","id":80310,"avatar_url":"https://avatars.githubusercontent.com/u/80310?v=3","gravatar_id":"","url":"https://api.github.com/users/rkavalap","html_url":"https://github.com/rkavalap","followers_url":"https://api.github.com/users/rkavalap/followers","following_url":"https://api.github.com/users/rkavalap/following{/other_user}","gists_url":"https://api.github.com/users/rkavalap/gists{/gist_id}","starred_url":"https://api.github.com/users/rkavalap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkavalap/subscriptions","organizations_url":"https://api.github.com/users/rkavalap/orgs","repos_url":"https://api.github.com/users/rkavalap/repos","events_url":"https://api.github.com/users/rkavalap/events{/privacy}","received_events_url":"https://api.github.com/users/rkavalap/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-06T23:38:17Z","updated_at":"2016-04-14T17:52:29Z","closed_at":null,"body":"Repro steps:\r\nEdit a typescript file.\r\n\r\nExpected behavior: \r\nIf Tools -> Text Editor -> Typescript -> Project -> General \r\nIf Compile on Save option unchecked\r\nequivalent js file should not be generated at the current location.\r\n\r\nCurrent behavior:\r\nGenerating a js file.\r\n\r\nEarlier versions of ntvs had this in the project file for the behavior\r\n\r\n```\r\n<EnableTypeScript>true</EnableTypeScript>\r\n<TypeScriptSourceMap>true</TypeScriptSourceMap>\r\n<TypeScriptModuleKind>CommonJS</TypeScriptModuleKind>\r\n<ToolsVersionPromptShown>1.7</ToolsVersionPromptShown>\r\n```\r\nWhich was automatically generating the js file.\r\n\r\nWhen I open a nodejs solution, I currently see it's automatically edited. But I don't see above setting changes getting added in the edit. \r\nI am currently not sure where it is getting controlled from.\r\n\r\nIssue redirected from \r\nhttps://github.com/Microsoft/nodejstools/issues/832\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/210075097","html_url":"https://github.com/Microsoft/TypeScript/issues/7911#issuecomment-210075097","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/7911","id":210075097,"user":{"login":"mhegazy","id":8000722,"avatar_url":"https://avatars.githubusercontent.com/u/8000722?v=3","gravatar_id":"","url":"https://api.github.com/users/mhegazy","html_url":"https://github.com/mhegazy","followers_url":"https://api.github.com/users/mhegazy/followers","following_url":"https://api.github.com/users/mhegazy/following{/other_user}","gists_url":"https://api.github.com/users/mhegazy/gists{/gist_id}","starred_url":"https://api.github.com/users/mhegazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhegazy/subscriptions","organizations_url":"https://api.github.com/users/mhegazy/orgs","repos_url":"https://api.github.com/users/mhegazy/repos","events_url":"https://api.github.com/users/mhegazy/events{/privacy}","received_events_url":"https://api.github.com/users/mhegazy/received_events","type":"User","site_admin":false},"created_at":"2016-04-14T17:52:29Z","updated_at":"2016-04-14T17:52:29Z","body":"If you are using a tsconfig, set `\"compileOnSave\": true` in it. see http://www.typescriptlang.org/docs/handbook/tsconfig.json.html#compileonsave\r\n![tsconfig](https://cloud.githubusercontent.com/assets/8000722/14538120/f4e51e80-022e-11e6-953c-d0c089a41c01.PNG)\r\n\r\nIf you are not using a tsconfig.json file, then the project property pages should would be the place to set CompileOnSave.\r\n![projectproperties](https://cloud.githubusercontent.com/assets/8000722/14538004/7599079a-022e-11e6-81a5-c1ee9a9e9c0e.PNG)\r\n\r\nIf you do not have a project file, i.e. open a ts file and start editing, then use Tools -> Text Editor -> Typescript -> Project -> General \r\nto turn compile on save on.\r\n![tsconfig](https://cloud.githubusercontent.com/assets/8000722/14538111/edc3f856-022e-11e6-9597-0fde4782e308.PNG)\r\n\r\nhope that helps."}}