kotlin-language-server
kotlin-language-server copied to clipboard
KotlinScript Support
Does this project currently support kotlinscript? I.E. using top level statements as if in an implicit function. Also follow up, does it support extending the behavior to be used in specialized kotlinscript hosts, if it doesn't already exist I think it would be useful to be able to configure special preprocessor directives to add more files to the search path, like for instance in kotlinscript it's possible to make these preprocessors to include maven dependencies.
@file:Repository("https://papermc.io/repo/repository/maven-public/")
@file:DependsOn("io.papermc.paper:paper-api:1.18.2-R0.1-SNAPSHOT")
/* import and use artifact here */
also it's conceivable that someone using kotlinscript may specify a custom import for the sake of building dependency trees for HMR so someone may do something like
@file:require("my-api.kts")
Not sure if these are things you were already aware of/have support for, but it would be incredibly useful
Just realized this is a duplicate of #134 but it adds some additional info here so I'll leave it up to you guys if you want to leave this open or not.
in fact you could even utilize something like a kotlin dsl that's ran on scripts with your incremental compilation to specify what files they're importing, sort of like the script you utilize currently to add files to the search path