Skip to content

Commit 3ba032a

Browse files
committed
feat: add getImportClassContent method to collect import class info
1 parent 465d988 commit 3ba032a

File tree

3 files changed

+333
-14
lines changed

3 files changed

+333
-14
lines changed

jdtls.ext/com.microsoft.jdtls.ext.core/plugin.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<command id="java.project.getMainClasses" />
1111
<command id="java.project.generateJar" />
1212
<command id="java.project.checkImportStatus" />
13+
<command id="java.project.getImportClassContent" />
1314
</delegateCommandHandler>
1415
</extension>
1516
<extension

jdtls.ext/com.microsoft.jdtls.ext.core/src/com/microsoft/jdtls/ext/core/CommandHandler.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ public Object executeCommand(String commandId, List<Object> arguments, IProgress
3737
return ProjectCommand.exportJar(arguments, monitor);
3838
case "java.project.checkImportStatus":
3939
return ProjectCommand.checkImportStatus();
40+
case "java.project.getImportClassContent":
41+
return ProjectCommand.getImportClassContent(arguments, monitor);
4042
default:
4143
break;
4244
}

0 commit comments

Comments
 (0)