Skip to content

Commit

Permalink
Delegate kotlin file *.kt to java document service
Browse files Browse the repository at this point in the history
Signed-off-by: azerr <azerr@redhat.com>
  • Loading branch information
angelozerr committed Oct 20, 2023
1 parent 0e6b704 commit 3bdae6b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ private TextDocumentService getTextDocumentService(TextDocumentItem document) {

public AbstractTextDocumentService getTextDocumentService(String uri) {
String fileExtension = getFileExtension(uri);
if ("java".equals(fileExtension) || "class".equals(fileExtension)) {
if ("java".equals(fileExtension) || "class".equals(fileExtension) || "kt".equals(fileExtension)) {
return javaFileTextDocumentService;
}
return templateFileTextDocumentService;
Expand Down

0 comments on commit 3bdae6b

Please sign in to comment.