Code suggestions: status bar icon shows a loading state
## Background We will be launching AI assisted code suggestions as a pre-installed extension in the GitLab web IDE in May. This issue is part of an [epic](https://gitlab.com/groups/gitlab-org/-/epics/10110) for the UX portion of this project. ## Background for this issue We have an icon in the status bar that shows the various states of code suggestions (https://gitlab.com/gitlab-org/gitlab-web-ide/-/issues/132). The icons we use in the status bar appear here: ![CleanShot_2023-04-27_at_13.30.58_2x](/uploads/5d6b0c468cc26454df2e610d4376569c/CleanShot_2023-04-27_at_13.30.58_2x.png) The icons of the different status are as follows: | Image | Description | | ------ | ------ | | ![CleanShot_2023-04-25_at_15.53.01_2x](/uploads/e126218778dd1e99fef401d87d49b414/CleanShot_2023-04-25_at_15.53.01_2x.png) | Enabled | | ![CleanShot_2023-04-25_at_15.53.07_2x](/uploads/b0a7b80f3466ae50dba66407f683261b/CleanShot_2023-04-25_at_15.53.07_2x.png) | Disabled | | ![CleanShot_2023-04-25_at_15.53.05_2x](/uploads/7dca8e6d9ebb8712b4f727a18fdb8272/CleanShot_2023-04-25_at_15.53.05_2x.png) | Error (e.g. code suggestions down) | ## Problem to solve We have received feedback that it can be difficult to tell if there is a code suggestion loading as one is typing. Even though code suggestion is enabled, it is not clear if it is currently retrieving a suggestion. ## Suggested solution * Add an additional icon to display the status when a code suggestion is loading. * When the suggestion has loaded, the icon goes back to the normal/enabled state Icon to add: | Image | Description | | ------ | ------ | | ![CleanShot_2023-04-27_at_13.33.48_2x](/uploads/eb1fceb6a8506c0deba224f8c2599e4d/CleanShot_2023-04-27_at_13.33.48_2x.png) | Icon to indicate that there is code suggestion loading | Gif: ![CleanShot_2023-04-27_at_13.28.09](/uploads/2e5003f26679aa08239d505ca73f333b/CleanShot_2023-04-27_at_13.28.09.gif) [Figma file](https://www.figma.com/file/n8e5S9eGCDKy9n15q68l4M/Code-Suggestions?node-id=185%3A290&t=yFEy3AaT9IuVAKz9-1)
issue