File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
src/main/kotlin/ee/carlrobert/codegpt/actions/editor Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
1
package ee.carlrobert.codegpt.actions.editor
2
2
3
+ import com.intellij.ide.BrowserUtil
4
+ import com.intellij.notification.NotificationAction
3
5
import com.intellij.notification.NotificationType
4
6
import com.intellij.openapi.application.runInEdt
5
7
import com.intellij.openapi.application.runUndoTransparentWriteAction
@@ -37,9 +39,13 @@ class EditCodeCompletionListener(
37
39
38
40
override fun onError (error : ErrorDetails , ex : Throwable ) {
39
41
observableProperties.loading.set(false )
42
+
40
43
OverlayUtil .showNotification(
41
- " Something went wrong while requesting completion. Please try again." ,
42
- NotificationType .ERROR
44
+ error.message,
45
+ NotificationType .ERROR ,
46
+ NotificationAction .createSimpleExpiring(" Upgrade plan" ) {
47
+ BrowserUtil .open(" https://codegpt.ee/#pricing" )
48
+ },
43
49
)
44
50
}
45
51
You can’t perform that action at this time.
0 commit comments