{"action":"created","issue":{"url":"https://api.github.com/repos/TypeStrong/atom-typescript/issues/537","labels_url":"https://api.github.com/repos/TypeStrong/atom-typescript/issues/537/labels{/name}","comments_url":"https://api.github.com/repos/TypeStrong/atom-typescript/issues/537/comments","events_url":"https://api.github.com/repos/TypeStrong/atom-typescript/issues/537/events","html_url":"https://github.com/TypeStrong/atom-typescript/issues/537","id":102087680,"number":537,"title":"No definition found when ts code is in a subfolder","user":{"login":"AndrewSav","id":658865,"avatar_url":"https://avatars.githubusercontent.com/u/658865?v=3","gravatar_id":"","url":"https://api.github.com/users/AndrewSav","html_url":"https://github.com/AndrewSav","followers_url":"https://api.github.com/users/AndrewSav/followers","following_url":"https://api.github.com/users/AndrewSav/following{/other_user}","gists_url":"https://api.github.com/users/AndrewSav/gists{/gist_id}","starred_url":"https://api.github.com/users/AndrewSav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndrewSav/subscriptions","organizations_url":"https://api.github.com/users/AndrewSav/orgs","repos_url":"https://api.github.com/users/AndrewSav/repos","events_url":"https://api.github.com/users/AndrewSav/events{/privacy}","received_events_url":"https://api.github.com/users/AndrewSav/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-20T08:20:22Z","updated_at":"2015-08-21T08:01:06Z","closed_at":"2015-08-21T08:01:06Z","body":"Hi there!\r\nSo I tried to installing atom and atom-typescript to see how it compares with Visual Studio / WebStorm for nodejs web projects. What I immediately noticed is that I'm getting `Atom Ts: No definition found`. \r\n\r\n\"What the heck does this mean?\" though I. Well after searching the issues here, it became apparent that this is because of missing `tsconfig.json`. (Could the error message be improved? A user has no fighting chance dealing with this cryptic error message).\r\n\r\nBut the thing is, my `tsconfig.json` was not missing. It was there all right. It was working perfectly in WebStorm. What I quickly realized is that atom-typescript expects `tsconfig.json` at the project root.\r\n\r\nI prefer to have all typescript files in a subfolder (as opposed to js, etc). Firstly I feel it's cleaner. Secondly, from time to time ts files appear inside node_modules, and ts compiler (at least in webstorm) dutifully walks the whole tree and compile them. And then complains. I did not want that to happen so I moved all my TS in a subfolder, put there `tsconfig.json` and it worked perfectly, but not in atom.\r\n\r\nHow do I configure atom-typescript so that it looks for `tsconfig.json` in a different place and starts transpiling from that folder? Is it possible to improve the error message?\r\n"},"comment":{"url":"https://api.github.com/repos/TypeStrong/atom-typescript/issues/comments/133320517","html_url":"https://github.com/TypeStrong/atom-typescript/issues/537#issuecomment-133320517","issue_url":"https://api.github.com/repos/TypeStrong/atom-typescript/issues/537","id":133320517,"user":{"login":"basarat","id":874898,"avatar_url":"https://avatars.githubusercontent.com/u/874898?v=3","gravatar_id":"","url":"https://api.github.com/users/basarat","html_url":"https://github.com/basarat","followers_url":"https://api.github.com/users/basarat/followers","following_url":"https://api.github.com/users/basarat/following{/other_user}","gists_url":"https://api.github.com/users/basarat/gists{/gist_id}","starred_url":"https://api.github.com/users/basarat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basarat/subscriptions","organizations_url":"https://api.github.com/users/basarat/orgs","repos_url":"https://api.github.com/users/basarat/repos","events_url":"https://api.github.com/users/basarat/events{/privacy}","received_events_url":"https://api.github.com/users/basarat/received_events","type":"User","site_admin":false},"created_at":"2015-08-21T08:01:06Z","updated_at":"2015-08-21T08:01:06Z","body":"> Atom Ts: No definition found\r\n\r\nThat is for if you pres `f12` aka `goto definition`. The message seems right for that. \r\n\r\n\r\n> What I quickly realized is that atom-typescript expects tsconfig.json at the project root\r\n\r\nNot true. \r\n\r\n> How do I configure atom-typescript so that it looks for tsconfig.json in a different place and starts transpiling from that folder?\r\n\r\nIt looks at all folder above the current open `.ts` file. This is the way `tsc` is designed to work as well :rose: \r\n\r\nFeel free to discuss any other issues here, we'd be hapy to help :rose: "}}