Add "ML completion for Kotlin" experimental feature checkbox

- This checkbox should be shown only in IDEA >= 193 and should not
be shown in AS
- ML completion is enabled with `CompletionMLRankingSettings`, which
resides in `com.intellij.stats.completion` plugin that is bundled by
default
  - The `<depends>` section is required to be able to use classes from
  this plugin inside Kotlin plugin
- `CompletionMLRankingSettings` have package-private setter for enabling
ranking completion, so we have to use reflection to enable it (it will
probably change in the future)
This commit is contained in:
Roman Golyshev
2020-02-25 16:44:46 +03:00
committed by Roman Golyshev
parent 4c6ea7c26a
commit f29e665dce
10 changed files with 153 additions and 17 deletions
@@ -285,3 +285,7 @@ scratch.inlay.output.mode.description=Inlay output mode
# Code insight
dialog.import.on.paste.title3=Select Import to Remove
copy.paste.reference.notification=<html>{0} {0, choice, 1#import was|2#imports were} added<p><span><a href='show'>Review Added Imports...</a></span></html>
# Experimental features
experimental.ml.completion=ML Completion for Kotlin