File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 29
29
import com .intellij .openapi .actionSystem .Shortcut ;
30
30
import com .intellij .openapi .diagnostic .Logger ;
31
31
import com .intellij .openapi .editor .Editor ;
32
+ import com .intellij .openapi .project .IndexNotReadyException ;
32
33
import com .intellij .openapi .util .text .StringUtil ;
33
34
import com .intellij .psi .PsiElement ;
34
35
import com .intellij .psi .PsiFile ;
@@ -229,7 +230,12 @@ private String getPresentationTextInner() {
229
230
return ((GoTypeSpec )element ).getName () + appendix ;
230
231
}
231
232
if (element instanceof GoNamedElement ) {
232
- GoType type = ((GoNamedElement )element ).getGoType (null );
233
+ GoType type = null ;
234
+ try {
235
+ type = ((GoNamedElement )element ).getGoType (null );
236
+ }
237
+ catch (IndexNotReadyException ignored ) {
238
+ }
233
239
String typeText = type == null || element instanceof GoAnonymousFieldDefinition ? "" : separator + GoPsiImplUtil .getText (type );
234
240
return ((GoNamedElement )element ).getName () + typeText ;
235
241
}
You can’t perform that action at this time.
0 commit comments