Skip to content

Conversation

@hayemaxi
Copy link
Contributor

@hayemaxi hayemaxi commented Nov 25, 2024

  • Add a generic dev menu item to reset the state of a feature. Simply extend with a function handler to add an item to the menu. The initial item resets in-ide notification state.
    image
    image

  • Add a way to test notifications locally without modifying code. Using a dev menu item you can add a notification to global state and receive it in your IDE for visualization.
    image
    image

  • Refactor notifications controller to not require a RuleEngine when polling is requested.


License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

@hayemaxi hayemaxi marked this pull request as ready for review November 25, 2024 22:47
@hayemaxi hayemaxi requested a review from a team as a code owner November 25, 2024 22:47
- Add a generic dev menu item to reset the state of a feature. Simply extend with a function handler to add an item to the menu. The initial item resets in-ide notification state.
- Add a way to test notifications locally without modifying code. Using a dev menu item you can add a notification to global state and receive it in your IDE for visualization.
- Refactor notifications controller to not require a RuleEngine when polling is requested.
@hayemaxi
Copy link
Contributor Author

/runIntegrationTests

DevSettings.instance.isDevMode() ? new DevFetcher() : new RemoteFetcher()
)

await controller.pollForStartUp()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these making a network call? If so I wonder if we should not block to improve startup performance

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes excellent catch, this was a bug fixed by #6052

@nkomonen-amazon
Copy link
Contributor

Thanks for adding in the reset state feature, will be useful for a lot of things

@hayemaxi hayemaxi merged commit 5766e4b into aws:master Nov 27, 2024
40 of 41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants