Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable support for Kotlin scripts by default and add corresponding configuration options #536

Merged
merged 7 commits into from
Jan 14, 2024

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
@fwcd fwcd merged commit 5afc433 into main Jan 14, 2024
8 checks passed
@fwcd fwcd deleted the disable-kts branch January 14, 2024 22:43
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