aws-toolkit-vscode
aws-toolkit-vscode copied to clipboard
'Get Lambda function policy' leaves 'Loading...' on screen when Function Policy cannot be found
Describe the bug When attempting to view my Lambda functions' policy, vscode opened a new tab but just sat on 'Loading...' indefinitely.
To Reproduce
Steps to reproduce the behavior:
- Open vscode with the AWS toolkit for VSCode
- Setup credentials and connect to AWS through the extension
- Either from the command palette (F1) or through the AWS toolkit sidebar in VSCode using right-click, select 'Get Lambda Function Policy'
- See that it hangs on Loading...
Expected behavior I expected to see my Lambda functions' policy
Screenshots

Desktop (please complete the following information):
- OS: Windows 10 Enterprise v1809 build 17763.134
- Visual Studio Code Version: 1.29.1 (user setup)
- AWS Toolkit for Visual Studio Code Version: 0.0.1
Additional context N/A
Thank you for the report! Looks like some additional handling is required in cases where GetPolicy returns ResourceNotFoundException
A fix has now been committed into the develop branch.