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 11package ee.carlrobert.codegpt.actions.editor
22
3+ import com.intellij.ide.BrowserUtil
4+ import com.intellij.notification.NotificationAction
35import com.intellij.notification.NotificationType
46import com.intellij.openapi.application.runInEdt
57import com.intellij.openapi.application.runUndoTransparentWriteAction
@@ -37,9 +39,13 @@ class EditCodeCompletionListener(
3739
3840 override fun onError (error : ErrorDetails , ex : Throwable ) {
3941 observableProperties.loading.set(false )
42+
4043 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+ },
4349 )
4450 }
4551
You can’t perform that action at this time.
0 commit comments