https://kotlinlang.org logo
#announcements
Title
# announcements
j

jdemeulenaere

07/01/2019, 2:30 PM
Is there any way (annotation, IntelliJ plugin) to restrict the auto completion ? I am trying to build a DSL for an experiment, and I'd like autocompletion to only suggest functions/classes/etc from my DSL package. I think that's something that could be very useful if you are building a DSL for people who are not very familiar with Kotlin at first and don't want to get them overwhelmed when editing files in IntelliJ 🙂
p

Pavlo Liapota

07/01/2019, 2:38 PM
I am not sure if you are looking for this, but you can check https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-dsl-marker/index.html
j

jdemeulenaere

07/01/2019, 2:45 PM
I know that annotation but that is not what I am looking for 🙂 It really is just something tied to the IDE; I want autocomplete to only suggests functions/classes/etc from a specific package.
r

Ruckus

07/01/2019, 6:37 PM
How do you expect that to work? It would make it impossible to use strings, lambdas, the std-lib...
4 Views