Skip to content

Commit

Permalink
generate default entrypoint if it doesnt exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Azpillaga Aldalur committed Nov 2, 2023
1 parent 54ee298 commit 50c6f83
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion examples/entity
2 changes: 1 addition & 1 deletion examples/rpg
Submodule rpg updated from eb7479 to 42fb9a
Original file line number Diff line number Diff line change
Expand Up @@ -116,16 +116,14 @@ class LanguageServerPlugin : Plugin<Project?> {
package com.strumenta.${configuration.language}.languageserver
import com.strumenta.${configuration.language}.parser.${configuration.language.capitalized()}KolasuParser
import com.strumenta.languageserver.KolasuServer
import com.strumenta.languageserver.ScopelessSymbolResolver
import com.strumenta.kolasu.languageserver.KolasuServer
import com.strumenta.kolasu.languageserver.ScopelessSymbolResolver
fun main(arguments: Array<String>) {
val language = arguments[0]
val fileExtensions = arguments[1].split(",")
fun main() {
val parser = ${configuration.language.capitalized()}KolasuParser()
val symbolResolver = ScopelessSymbolResolver()
val parser = ${configuration.language.capitalized()}KolasuParser()
val server = KolasuServer(parser, language, fileExtensions, symbolResolver)
val server = KolasuServer(parser, "${configuration.language}", listOf(${configuration.fileExtensions.joinToString(",") { "\"$it\"" }}), symbolResolver)
server.startCommunication()
}
""".trimIndent()
Expand Down

0 comments on commit 50c6f83

Please sign in to comment.