如何让 VSCode 识别 Java 代码中的 Kotlin 类?

How to get VSCode to recognize Kotlin classes in Java code?

我正在使用 VSCode。我在 myApi.kt 中有以下内容:

package com.mycompany.myproject.myapi

data class MyClass(
    val accountNumber: String,
    val state: String,
    val country: String
)

...我在 myApp.java 中有以下内容:

import com.mycompany.myproject.myapi.*;

MyClass myObject = new MyClass();

编译执行都没有问题。唯一的问题是 VSCode 在 java 文件中对 MyClass 的引用下方给我一条红色的波浪下划线。将鼠标悬停在上面,它说:

MyClass cannot be resolved to a type Java(16777218)

我在 VSCode 中安装了 Kotlin plug-in

如何让 VSCode 在我的 java 文件中识别这个 Kotlin class?

基于此打开尚不支持issue