This repository was archived by the owner on Aug 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
server/src/main/kotlin/org/jetbrains/bsp/bazel/server/sync Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ class BspProjectMapper(
160
160
val label = BspMappings .toBspId(module)
161
161
val dependencies =
162
162
module.directDependencies.map(BspMappings ::toBspId)
163
- val languages = module.languages.flatMap(Language ::allNames)
163
+ val languages = module.languages.flatMap(Language ::allNames).distinct()
164
164
val capabilities = inferCapabilities(module)
165
165
val tags = module.tags.mapNotNull(BspMappings ::toBspTag)
166
166
val baseDirectory = BspMappings .toBspUri(module.baseDirectory)
Original file line number Diff line number Diff line change @@ -32,9 +32,9 @@ class LanguagePluginsService(
32
32
33
33
fun getPlugin (languages : Set <Language >): LanguagePlugin <* > =
34
34
when {
35
+ languages.contains(Language .KOTLIN ) -> kotlinLanguagePlugin
35
36
languages.contains(Language .SCALA ) -> scalaLanguagePlugin
36
37
languages.contains(Language .JAVA ) -> javaLanguagePlugin
37
- languages.contains(Language .KOTLIN ) -> kotlinLanguagePlugin
38
38
languages.contains(Language .CPP ) -> cppLanguagePlugin
39
39
languages.contains(Language .THRIFT ) -> thriftLanguagePlugin
40
40
languages.contains(Language .PYTHON ) -> pythonLanguagePlugin
You can’t perform that action at this time.
0 commit comments