{"action":"created","issue":{"url":"https://api.github.com/repos/PowerShell/PowerShell/issues/4549","repository_url":"https://api.github.com/repos/PowerShell/PowerShell","labels_url":"https://api.github.com/repos/PowerShell/PowerShell/issues/4549/labels{/name}","comments_url":"https://api.github.com/repos/PowerShell/PowerShell/issues/4549/comments","events_url":"https://api.github.com/repos/PowerShell/PowerShell/issues/4549/events","html_url":"https://github.com/PowerShell/PowerShell/issues/4549","id":249502535,"number":4549,"title":"Parameter completion should work even when #requires fails","user":{"login":"lzybkr","id":2148248,"avatar_url":"https://avatars3.githubusercontent.com/u/2148248?v=4","gravatar_id":"","url":"https://api.github.com/users/lzybkr","html_url":"https://github.com/lzybkr","followers_url":"https://api.github.com/users/lzybkr/followers","following_url":"https://api.github.com/users/lzybkr/following{/other_user}","gists_url":"https://api.github.com/users/lzybkr/gists{/gist_id}","starred_url":"https://api.github.com/users/lzybkr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lzybkr/subscriptions","organizations_url":"https://api.github.com/users/lzybkr/orgs","repos_url":"https://api.github.com/users/lzybkr/repos","events_url":"https://api.github.com/users/lzybkr/events{/privacy}","received_events_url":"https://api.github.com/users/lzybkr/received_events","type":"User","site_admin":false},"labels":[{"id":401720778,"url":"https://api.github.com/repos/PowerShell/PowerShell/labels/Area-Intellisense","name":"Area-Intellisense","color":"5319e7","default":false},{"id":329037182,"url":"https://api.github.com/repos/PowerShell/PowerShell/labels/Usability","name":"Usability","color":"e99695","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-10T23:17:43Z","updated_at":"2018-03-23T18:32:56Z","closed_at":null,"author_association":"MEMBER","body":"Steps to reproduce\r\n------------------\r\nIn a non-elevated PowerShell, try to tab complete parameters to a script that looks like:\r\n\r\n```powershell\r\n#requires -RunAsAdministrator\r\nparam($ABC)\r\n```\r\n\r\nExpected behavior\r\n-----------------\r\nCompletion works. Note that the current behavior is slightly useful as an indicator that the script won't run even after finishing the command line, but it is poor behavior in an editor that probably isn't running elevated.\r\n\r\nActual behavior\r\n---------------\r\nCompletion fails silently\r\n\r\nEnvironment data\r\n----------------\r\n\r\n<!-- provide the output of $PSVersionTable -->\r\n\r\n```powershell\r\n> $PSVersionTable\r\n\r\nName                           Value\r\n----                           -----\r\nPSVersion                      6.0.0-beta\r\nPSEdition                      Core\r\nGitCommitId                    v6.0.0-beta.5\r\nOS                             Microsoft Windows 10.0.16262\r\nPlatform                       Win32NT\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/PowerShell/PowerShell/issues/comments/375760739","html_url":"https://github.com/PowerShell/PowerShell/issues/4549#issuecomment-375760739","issue_url":"https://api.github.com/repos/PowerShell/PowerShell/issues/4549","id":375760739,"user":{"login":"rjmholt","id":7009879,"avatar_url":"https://avatars1.githubusercontent.com/u/7009879?v=4","gravatar_id":"","url":"https://api.github.com/users/rjmholt","html_url":"https://github.com/rjmholt","followers_url":"https://api.github.com/users/rjmholt/followers","following_url":"https://api.github.com/users/rjmholt/following{/other_user}","gists_url":"https://api.github.com/users/rjmholt/gists{/gist_id}","starred_url":"https://api.github.com/users/rjmholt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjmholt/subscriptions","organizations_url":"https://api.github.com/users/rjmholt/orgs","repos_url":"https://api.github.com/users/rjmholt/repos","events_url":"https://api.github.com/users/rjmholt/events{/privacy}","received_events_url":"https://api.github.com/users/rjmholt/received_events","type":"User","site_admin":false},"created_at":"2018-03-23T18:32:56Z","updated_at":"2018-03-23T18:32:56Z","author_association":"CONTRIBUTOR","body":"I've opened [an RFC](https://github.com/PowerShell/PowerShell-RFC/pull/122) on updating the behaviour of `#requires`. Please feel free to comment in the PR."}}
{"actor":{"display_login":"rjmholt"}}