varabyte / kobweb-intellij-plugin

An official IntelliJ IDE plugin to include Kobweb-specific enhancements and understanding to your project
Apache License 2.0
10 stars 2 forks source link

Show a "You should sync" message if necessary #40

Closed bitspittle closed 4 months ago

bitspittle commented 4 months ago

A full Gradle sync is required for us to have up-to-date Kobweb metadata information. However, if a user just installed the plugin, they won't have that information and won't realize it. So we show them a notification to let them know.

The user shouldn't see this popup if...

We also use this information to avoid caching Kobweb state / processing Kobweb functionality if the plugin is considered disabled for the current project.

bitspittle commented 4 months ago

OK, here's the same basic change with the PersistentStateComponent gone. I'm going to abandon the other PR.

We do still use PropertiesComponent for a small bit of persistence, but it's essentially a single extension property now (see kobwebPluginState) and not a full PersistentStateComponent class. Much simpler!

bitspittle commented 4 months ago

Comments responded to, thanks for the great review!