Skip to content

Commit 72b7831

Browse files
committed
fix
1 parent faef436 commit 72b7831

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ class GlintLanguageServiceProvider(val project: Project) : JSLanguageServiceProv
5656

5757
override fun isHighlightingCandidate(file: VirtualFile) = file.fileType is HbFileType || file.fileType is JavaScriptFileType || file.fileType is TypeScriptFileType || file.fileType is GtsFileType
5858

59-
override fun getService(file: VirtualFile) = if (descriptor.isAvailable(file)) return GlintTypeScriptService.getInstance(project) else null
59+
override fun getService(file: VirtualFile) = if (descriptor.isAvailable(file)) GlintTypeScriptService.getInstance(project) else null
6060

6161
override val allServices: List<GlintTypeScriptService>
62-
get() = if (descriptor.isAvailable()) listOf(GlintTypeScriptService.getInstance(project)) else emptyList()
62+
get() = if (descriptor.isAvailable(null)) listOf(GlintTypeScriptService.getInstance(project)) else emptyList()
6363
}
6464

6565

0 commit comments

Comments
 (0)