{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/monaco-editor/issues/64","repository_url":"https://api.github.com/repos/Microsoft/monaco-editor","labels_url":"https://api.github.com/repos/Microsoft/monaco-editor/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/monaco-editor/issues/64/comments","events_url":"https://api.github.com/repos/Microsoft/monaco-editor/issues/64/events","html_url":"https://github.com/Microsoft/monaco-editor/issues/64","id":165499696,"number":64,"title":"Multiple TS files for Find All references , Peek Definition","user":{"login":"jscsharp","id":896560,"avatar_url":"https://avatars.githubusercontent.com/u/896560?v=3","gravatar_id":"","url":"https://api.github.com/users/jscsharp","html_url":"https://github.com/jscsharp","followers_url":"https://api.github.com/users/jscsharp/followers","following_url":"https://api.github.com/users/jscsharp/following{/other_user}","gists_url":"https://api.github.com/users/jscsharp/gists{/gist_id}","starred_url":"https://api.github.com/users/jscsharp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jscsharp/subscriptions","organizations_url":"https://api.github.com/users/jscsharp/orgs","repos_url":"https://api.github.com/users/jscsharp/repos","events_url":"https://api.github.com/users/jscsharp/events{/privacy}","received_events_url":"https://api.github.com/users/jscsharp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/monaco-editor/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":{"login":"jrieken","id":1794099,"avatar_url":"https://avatars.githubusercontent.com/u/1794099?v=3","gravatar_id":"","url":"https://api.github.com/users/jrieken","html_url":"https://github.com/jrieken","followers_url":"https://api.github.com/users/jrieken/followers","following_url":"https://api.github.com/users/jrieken/following{/other_user}","gists_url":"https://api.github.com/users/jrieken/gists{/gist_id}","starred_url":"https://api.github.com/users/jrieken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrieken/subscriptions","organizations_url":"https://api.github.com/users/jrieken/orgs","repos_url":"https://api.github.com/users/jrieken/repos","events_url":"https://api.github.com/users/jrieken/events{/privacy}","received_events_url":"https://api.github.com/users/jrieken/received_events","type":"User","site_admin":false},"assignees":[{"login":"jrieken","id":1794099,"avatar_url":"https://avatars.githubusercontent.com/u/1794099?v=3","gravatar_id":"","url":"https://api.github.com/users/jrieken","html_url":"https://github.com/jrieken","followers_url":"https://api.github.com/users/jrieken/followers","following_url":"https://api.github.com/users/jrieken/following{/other_user}","gists_url":"https://api.github.com/users/jrieken/gists{/gist_id}","starred_url":"https://api.github.com/users/jrieken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrieken/subscriptions","organizations_url":"https://api.github.com/users/jrieken/orgs","repos_url":"https://api.github.com/users/jrieken/repos","events_url":"https://api.github.com/users/jrieken/events{/privacy}","received_events_url":"https://api.github.com/users/jrieken/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2016-07-14T07:55:46Z","updated_at":"2016-07-19T17:24:37Z","closed_at":"2016-07-14T08:41:26Z","body":"Is it possible to register multiple files , like file1.ts , file2.ts and files3.ts, then use \"Peek Definition\" or\r\n\"Find All references\" commands  in File1.ts and   able to see  the result from all the 3 files?\r\nCurrently, it works for loaded code in editor.\r\nObviously , I am asking to have similar functionality of  VSCode.\r\nThanks"},"comment":{"url":"https://api.github.com/repos/Microsoft/monaco-editor/issues/comments/233705213","html_url":"https://github.com/Microsoft/monaco-editor/issues/64#issuecomment-233705213","issue_url":"https://api.github.com/repos/Microsoft/monaco-editor/issues/64","id":233705213,"user":{"login":"jscsharp","id":896560,"avatar_url":"https://avatars.githubusercontent.com/u/896560?v=3","gravatar_id":"","url":"https://api.github.com/users/jscsharp","html_url":"https://github.com/jscsharp","followers_url":"https://api.github.com/users/jscsharp/followers","following_url":"https://api.github.com/users/jscsharp/following{/other_user}","gists_url":"https://api.github.com/users/jscsharp/gists{/gist_id}","starred_url":"https://api.github.com/users/jscsharp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jscsharp/subscriptions","organizations_url":"https://api.github.com/users/jscsharp/orgs","repos_url":"https://api.github.com/users/jscsharp/repos","events_url":"https://api.github.com/users/jscsharp/events{/privacy}","received_events_url":"https://api.github.com/users/jscsharp/received_events","type":"User","site_admin":false},"created_at":"2016-07-19T17:24:37Z","updated_at":"2016-07-19T17:24:37Z","body":"Great!, But I could not make it work. Do you have a working sample?\r\nI added : \r\n\r\nfunction xhr(url) {\r\n\tvar req = null;\r\n\treturn new monaco.Promise(function(c,e,p) {\r\n\t\treq = new XMLHttpRequest();\r\n\t\treq.onreadystatechange = function () {\r\n\t\t\tif (req._canceled) { return; }\r\n\r\n\t\t\tif (req.readyState === 4) {\r\n\t\t\t\tif ((req.status >= 200 && req.status < 300) || req.status === 1223) {\r\n\t\t\t\t\tc(req);\r\n\t\t\t\t} else {\r\n\t\t\t\t\te(req);\r\n\t\t\t\t}\r\n\t\t\t\treq.onreadystatechange = function () { };\r\n\t\t\t} else {\r\n\t\t\t\tp(req);\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\treq.open(\"GET\", url, true );\r\n\t\treq.responseType = \"\";\r\n\r\n\t\treq.send(null);\r\n\t}, function () {\r\n\t\treq._canceled = true;\r\n\t\treq.abort();\r\n\t});\r\n\r\n\r\nxhr('file1.ts').then(function(res) {\r\n\t\t\r\n      monaco.languages.typescript.javascriptDefaults.addExtraLib(\r\n\t                       res.responseText, 'file1.ts');\r\n\t       });\r\n\r\nmonaco.editor.createModel(\"file1.ts\",\"typescript\");\r\n\r\n\r\n\t});\r\n\r\n\r\nxhr('file2.ts').then(function(res) {\r\n\t\t\r\n      monaco.languages.typescript.javascriptDefaults.addExtraLib(\r\n\t                       res.responseText, 'file2.ts');\r\n\t       });\r\n\r\nmonaco.editor.createModel(\"file2.ts\",\"typescript\");\r\n\r\n\r\n\t});\r\n\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"jscsharp"}}