Skip to content

Commit eb89297

Browse files
authored
feat: add getImportClassContent method to collect import class info (#907)
* feat: add getImportClassContent method to collect import class info * feat: update the java command * fix: update findtype to more useable * fix: update * fix: update logic to resolve type * feat: support static import * feat: adjust logic and bump up version
1 parent 53fc823 commit eb89297

File tree

5 files changed

+497
-16
lines changed

5 files changed

+497
-16
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)