{"action":"opened","issue":{"url":"https://api.github.com/repos/VSCodeVim/Vim/issues/2590","repository_url":"https://api.github.com/repos/VSCodeVim/Vim","labels_url":"https://api.github.com/repos/VSCodeVim/Vim/issues/2590/labels{/name}","comments_url":"https://api.github.com/repos/VSCodeVim/Vim/issues/2590/comments","events_url":"https://api.github.com/repos/VSCodeVim/Vim/issues/2590/events","html_url":"https://github.com/VSCodeVim/Vim/issues/2590","id":319318740,"number":2590,"title":"Python Intellisense Wonky With Vim","user":{"login":"moxuz","id":9087150,"avatar_url":"https://avatars0.githubusercontent.com/u/9087150?v=4","gravatar_id":"","url":"https://api.github.com/users/moxuz","html_url":"https://github.com/moxuz","followers_url":"https://api.github.com/users/moxuz/followers","following_url":"https://api.github.com/users/moxuz/following{/other_user}","gists_url":"https://api.github.com/users/moxuz/gists{/gist_id}","starred_url":"https://api.github.com/users/moxuz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moxuz/subscriptions","organizations_url":"https://api.github.com/users/moxuz/orgs","repos_url":"https://api.github.com/users/moxuz/repos","events_url":"https://api.github.com/users/moxuz/events{/privacy}","received_events_url":"https://api.github.com/users/moxuz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-01T20:35:37Z","updated_at":"2018-05-01T20:35:37Z","closed_at":null,"author_association":"NONE","body":"I have submitted an issue on the VSCode-Python Repo as well but they suggested cross-posting here would be a good idea. https://github.com/Microsoft/vscode-python/issues/1547\r\n\r\n**Is this a BUG REPORT or FEATURE REQUEST?**\r\nBUG REPORT\r\n\r\n\r\n## Actual behavior\r\n\r\nIntellisense does not work when using the Vim plugin and importing a class at function level when the function is wrapped in a decorator, but works when import is module level\r\n<img src=\"https://dl.dropboxusercontent.com/s/oehc9soof1qo58c/Screenshot%202018-04-29%2015.06.38.png?dl=0\" alt=\"intellisense not working\" HEIGHT=250>\r\n\r\nIntellisense starts working if I deleted the decorator. If I add the decorator back it continues to work normally.\r\n<img src=\"https://dl.dropboxusercontent.com/s/jdj09hgu3v7aum4/Screenshot%202018-04-29%2015.12.18.png?dl=0\" alt=\"intellisense working\" HEIGHT=250>\r\n\r\n## Expected  behavior\r\n\r\nIntellisense should work when imports are at function level in a decorated function\r\n\r\n<img src=\"https://dl.dropboxusercontent.com/s/fqlyd6azgrcpml5/Screenshot%202018-04-29%2015.05.08.png?dl=0\" alt=\"intellisense working\" HEIGHT=250>\r\n\r\n\r\n**How to reproduce it (as minimally and precisely as possible)**:\r\n\r\n- Install Vim plugin\r\n- Import a class while in a function that is wrapped with a decorator\r\n- Try and get intellisense on class attributes (doesntwork)\r\n- Delete decorator\r\n- Intellisense works\r\n- Re-add decorator\r\n- Intellisense works\r\n\r\n\r\n**Environment**\r\n- VS Code version: 1.22.2\r\n- Python Extension version: 2018.4.0-beta (doesn't work with non-beta either)\r\n- Vim Extension Version: 0.11.5\r\n- OS and version: MacOS 10.13.4\r\n- Python version: Python 3.6.2\r\n- Type of virtual environment used : pyenv virtualenv"}}
{"actor":{"display_login":"moxuz"}}