File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/main/kotlin/com/github/lppedd/cc/completion Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ import com.intellij.psi.PsiElement
3535import com.intellij.util.ProcessingContext
3636import com.intellij.util.ReflectionUtil.findField
3737import com.intellij.util.concurrency.Semaphore
38+ import java.awt.GraphicsEnvironment
3839import java.lang.reflect.Field
3940import java.util.*
4041import java.util.Collections.newSetFromMap
@@ -303,7 +304,7 @@ internal class ConventionalCommitTextCompletionContributor : CompletionContribut
303304
304305 private class LookupCreationListener : LookupManagerListener {
305306 override fun activeLookupChanged (oldLookup : Lookup ? , newLookup : Lookup ? ) {
306- if (newLookup is LookupImpl && ! isLookupEnhancerInstalled(newLookup)) {
307+ if (! GraphicsEnvironment .isHeadless() && newLookup is LookupImpl && ! isLookupEnhancerInstalled(newLookup)) {
307308 installLookupEnhancer(newLookup)
308309 }
309310 }
You can’t perform that action at this time.
0 commit comments