File tree Expand file tree Collapse file tree 1 file changed +12
-11
lines changed
src/main/java/com/tang/intellij/lua/debugger/emmyAttach Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -48,17 +48,18 @@ class EmmyAttachGroup : XAttachProcessPresentationGroup {
4848 }
4949
5050 override fun getItemIcon (project : Project , processInfo : ProcessInfo , userDataHolder : UserDataHolder ): Icon {
51- val map = userDataHolder.getUserData(EmmyAttachDebuggerProvider .DETAIL_KEY )
52- if (map != null ) {
53- val detail = map[processInfo.pid]
54- if (detail != null ) {
55- val file = File (detail.path)
56- if (file.exists()) {
57- val sf = FileSystemView .getFileSystemView()
58- return sf.getSystemIcon(file)
59- }
60- }
61- }
51+ // JDK21 BUG: getSystemIcon throw a error
52+ // val map = userDataHolder.getUserData(EmmyAttachDebuggerProvider.DETAIL_KEY)
53+ // if (map != null) {
54+ // val detail = map[processInfo.pid]
55+ // if (detail != null) {
56+ // val file = File(detail.path)
57+ // if (file.exists()) {
58+ // val sf = FileSystemView.getFileSystemView()
59+ // return sf.getSystemIcon(file)
60+ // }
61+ // }
62+ // }
6263 return LuaIcons .FILE
6364 }
6465
You can’t perform that action at this time.
0 commit comments