Skip to content

Commit c226c09

Browse files
committed
false for unit tests
1 parent a91e594 commit c226c09

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/kotlin/com/emberjs/glint/GlintLspSupportProvider.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ class GlintLspServerDescriptor(private val myProject: Project) : LspServerDescri
9898
}
9999

100100
fun isAvailable(vfile: VirtualFile?): Boolean {
101+
if (ApplicationManager.getApplication().isUnitTestMode) {
102+
return false
103+
}
101104
val config = GlintConfiguration.getInstance(myProject)
102105
val pkg = config.getPackage()
103106
pkg.readOrDetect()

0 commit comments

Comments
 (0)