Skip to content

Conversation

fwcd
Copy link
Owner

@fwcd fwcd commented Jan 14, 2024

Fixes #511

This adds two new options, kotlin.scripts.enabled and kotlin.scripts.buildScriptsEnabled, which control whether .kts and .gradle.kts scripts are handled by the language server, respectively. Due to the flakiness of the current implementation, both options are currently defaulted to false, i.e. scripts are no longer handled by the language server, unless manually enabled.

If we manage to implement support for Kotlin scripts in a stable and performant way, we may revisit this, but until then users will have a better experience not having their language server crash because some Gradle DSL JAR was in the wrong place or having their build scripts flooded with invalid errors, because the class path was missing some Kotlin DSL script classes.

@fwcd fwcd added the gradle Related to the language server's support for Gradle projects label Jan 14, 2024
@github-actions github-actions bot added the code quality Refactoring, tests etc. label Jan 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code quality Refactoring, tests etc. gradle Related to the language server's support for Gradle projects
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add option to disable language features for .kts files
1 participant