Skip to content

Commit

Permalink
[VIM-3620] Add the uninstall survey
Browse files Browse the repository at this point in the history
We're actively working on understanding the users and what we can improve in the plugin
  • Loading branch information
AlexPl292 committed Aug 28, 2024
1 parent 5b17d77 commit 64a89c8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/main/java/com/maddyhome/idea/vim/PluginStartup.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@

package com.maddyhome.idea.vim

import com.intellij.ide.BrowserUtil
import com.intellij.ide.plugins.IdeaPluginDescriptor
import com.intellij.ide.plugins.PluginStateListener
import com.intellij.ide.plugins.PluginStateManager
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.fileEditor.ex.FileEditorManagerEx
import com.intellij.openapi.project.Project
Expand Down Expand Up @@ -40,6 +44,16 @@ internal class PluginStartup : ProjectActivity/*, LightEditCompatible*/ {

// This code should be executed once
VimPlugin.getInstance().initialize()

// Uninstall survey. Should be registered once for all projects
PluginStateManager.addStateListener(object : PluginStateListener {
override fun install(p0: IdeaPluginDescriptor) {/*Nothing*/
}

override fun uninstall(descriptor: IdeaPluginDescriptor) {
BrowserUtil.open("https://surveys.jetbrains.com/s3/ideavim-uninstall-feedback")

This comment has been minimized.

Copy link
@citizenmatt

citizenmatt Aug 28, 2024

Member

@AlexPl292 will this be called for any plugin being uninstalled, not just IdeaVim?

This comment has been minimized.

Copy link
@AlexPl292

AlexPl292 Aug 29, 2024

Author Member

Holy moly!

This comment has been minimized.

Copy link
@AlexPl292

AlexPl292 Aug 29, 2024

Author Member

On the other hand, we can get more responses this way...

This comment has been minimized.

Copy link
@AlexPl292

AlexPl292 Aug 29, 2024

Author Member

Joking, thank you for pointing this out. Fixed! :D

}
})
}
}

Expand Down

0 comments on commit 64a89c8

Please sign in to comment.