casid / jte-intellij

IntelliJ plugin for jte template files.
https://github.com/casid/jte
Apache License 2.0
23 stars 5 forks source link

auto import do not get the @ prefix in .kte #24

Closed syzsh closed 1 year ago

syzsh commented 1 year ago

插件版本: 2.0.8

.kte格式模板中, 导入jdk类时, 缺少@前缀

企业微信截图_16752551934054

image

导入第三方jar中的类, 还会导致这样的问题:

image

image

casid commented 1 year ago

Thanks for reporting! It will probably take a few weeks until I can look into this.

In case anyone wants to have a look, this is probably due to: org.jusecase.jte.intellij.language.KteKotlinContentManipulator

I think I rushed this when adding Kotlin support, and there's even a leftover TODO in org.jusecase.jte.intellij.language.KteKotlinContentManipulator#isRequiredToOptimizeImports.

casid commented 1 year ago

@syzsh I didn't sleep well tonight and had a look at it, I think this is fixed by https://github.com/casid/jte-intellij/commit/4fc6cb3c2fdfe3a96f3e45d81f399ce700c3ad21.

casid commented 1 year ago

@syzsh I just uploaded version 2.0.9 to the Jetbrains Marketplace, which includes this fix. Usually this gets reviewed and approved within two working days.

syzsh commented 1 year ago

@casid 非常感谢,辛苦了~