{"action":"created","issue":{"url":"https://api.github.com/repos/adamdriscoll/poshtools/issues/331","labels_url":"https://api.github.com/repos/adamdriscoll/poshtools/issues/331/labels{/name}","comments_url":"https://api.github.com/repos/adamdriscoll/poshtools/issues/331/comments","events_url":"https://api.github.com/repos/adamdriscoll/poshtools/issues/331/events","html_url":"https://github.com/adamdriscoll/poshtools/issues/331","id":104191880,"number":331,"title":"IntelliSense does not work for dot-sourced files/libraries","user":{"login":"peterschen","id":1166870,"avatar_url":"https://avatars.githubusercontent.com/u/1166870?v=3","gravatar_id":"","url":"https://api.github.com/users/peterschen","html_url":"https://github.com/peterschen","followers_url":"https://api.github.com/users/peterschen/followers","following_url":"https://api.github.com/users/peterschen/following{/other_user}","gists_url":"https://api.github.com/users/peterschen/gists{/gist_id}","starred_url":"https://api.github.com/users/peterschen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterschen/subscriptions","organizations_url":"https://api.github.com/users/peterschen/orgs","repos_url":"https://api.github.com/users/peterschen/repos","events_url":"https://api.github.com/users/peterschen/events{/privacy}","received_events_url":"https://api.github.com/users/peterschen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/adamdriscoll/poshtools/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-01T05:51:55Z","updated_at":"2015-11-18T22:18:42Z","closed_at":null,"body":"When working with dot-sourced libraries, e.g.\r\n\r\n````\r\n# Contains the function Test-IncludedIntelliSense\r\n. \"\\path\\to\\test.ps1\"\r\n```\r\n\r\nIntelliSense for ```Test-``` would not bring up ```Test-IncludedIntelliSense```. The host should evaluate the dot-sourcing to include the referenced functions. I admit that ISE shows the same behavior but as a workaround I can run the script in the current host once and have the functions available.\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/26352124-intellisense-does-not-work-for-dot-sourced-files-libraries?utm_campaign=plugin&utm_content=tracker%2F307202&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F307202&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/adamdriscoll/poshtools/issues/comments/157882813","html_url":"https://github.com/adamdriscoll/poshtools/issues/331#issuecomment-157882813","issue_url":"https://api.github.com/repos/adamdriscoll/poshtools/issues/331","id":157882813,"user":{"login":"adamdriscoll","id":1256531,"avatar_url":"https://avatars.githubusercontent.com/u/1256531?v=3","gravatar_id":"","url":"https://api.github.com/users/adamdriscoll","html_url":"https://github.com/adamdriscoll","followers_url":"https://api.github.com/users/adamdriscoll/followers","following_url":"https://api.github.com/users/adamdriscoll/following{/other_user}","gists_url":"https://api.github.com/users/adamdriscoll/gists{/gist_id}","starred_url":"https://api.github.com/users/adamdriscoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamdriscoll/subscriptions","organizations_url":"https://api.github.com/users/adamdriscoll/orgs","repos_url":"https://api.github.com/users/adamdriscoll/repos","events_url":"https://api.github.com/users/adamdriscoll/events{/privacy}","received_events_url":"https://api.github.com/users/adamdriscoll/received_events","type":"User","site_admin":false},"created_at":"2015-11-18T22:18:42Z","updated_at":"2015-11-18T22:18:42Z","body":"Will be fixed with #389 "}}