From b12a402b81f90c7917799d5670ff9a5d1da4b30d Mon Sep 17 00:00:00 2001 From: Piotr Tomiak Date: Tue, 22 Oct 2024 13:37:58 +0200 Subject: [PATCH] WEB-69746 Convert JSLanguageService* classes to Kotlin #4 GitOrigin-RevId: f45194a745decb0896ebb00ced8a7d44b3996e93 --- .../svelte/lang/service/SvelteLanguageServiceProvider.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/dev/blachut/svelte/lang/service/SvelteLanguageServiceProvider.kt b/src/main/java/dev/blachut/svelte/lang/service/SvelteLanguageServiceProvider.kt index 010a4ef0..47b88244 100644 --- a/src/main/java/dev/blachut/svelte/lang/service/SvelteLanguageServiceProvider.kt +++ b/src/main/java/dev/blachut/svelte/lang/service/SvelteLanguageServiceProvider.kt @@ -15,7 +15,8 @@ internal class SvelteLanguageServiceProvider(project: Project) : JSLanguageServi private val lspService by lazy(LazyThreadSafetyMode.PUBLICATION) { project.service() } private val tsService by lazy(LazyThreadSafetyMode.PUBLICATION) { project.service() } - override fun getAllServices(): List = listOf(lspService.service, tsService.service) + override val allServices: List + get() = listOf(lspService.service, tsService.service) override fun getService(file: VirtualFile): JSLanguageService? = allServices.firstOrNull { it.isAcceptable(file) }