Skip to content

Commit

Permalink
fix compatibility verification issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tangzx committed Nov 17, 2024
1 parent 02f8464 commit d0ad7b2
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ data class BuildData(
val buildDataList = listOf(
BuildData(
ideaSDKShortVersion = "243",
ideaSDKVersion = "243-EAP-SNAPSHOT",
ideaSDKVersion = "243.21565.193",
sinceBuild = "232",
untilBuild = "243.*",
bunch = "212",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import com.intellij.xdebugger.breakpoints.XBreakpointHandler
import com.intellij.xdebugger.breakpoints.XBreakpointProperties
import com.intellij.xdebugger.breakpoints.XLineBreakpoint
import com.intellij.xdebugger.frame.XSuspendContext
import com.intellij.xdebugger.impl.XDebugSessionImpl
import com.intellij.xdebugger.impl.actions.XDebuggerActions

/**
Expand Down Expand Up @@ -144,11 +143,13 @@ abstract class LuaDebugProcess protected constructor(session: XDebugSession) : X
}
} else {
ApplicationManager.getApplication().invokeLater {
val se = session
// todo: fix "Internal classes usages" & "Internal methods usages" problem
/*val se = session
if (se is XDebugSessionImpl)
se.positionReached(LuaSuspendContext(stack), true)
else
se.positionReached(LuaSuspendContext(stack))
se.positionReached(LuaSuspendContext(stack))*/
session.positionReached(LuaSuspendContext(stack))
session.showExecutionPoint()
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import com.intellij.xdebugger.XSourcePosition
import com.intellij.xdebugger.breakpoints.XLineBreakpoint
import com.intellij.xdebugger.evaluation.XDebuggerEditorsProvider
import com.intellij.xdebugger.frame.XSuspendContext
import com.intellij.xdebugger.impl.XDebugSessionImpl
import com.tang.intellij.lua.debugger.*
import com.tang.intellij.lua.psi.LuaFileManager
import com.tang.intellij.lua.psi.LuaFileUtil
Expand Down Expand Up @@ -168,11 +167,13 @@ abstract class EmmyDebugProcessBase(session: XDebugSession) : LuaDebugProcess(se
}
} else {
ApplicationManager.getApplication().invokeLater {
val se = session
// todo: fix "Internal classes usages" & "Internal methods usages" problem
/*val se = session
if (se is XDebugSessionImpl)
se.positionReached(LuaSuspendContext(stack), true)
else
se.positionReached(LuaSuspendContext(stack))
se.positionReached(LuaSuspendContext(stack))*/
session.positionReached(LuaSuspendContext(stack))
session.showExecutionPoint()
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package com.tang.intellij.lua.debugger.remote.value
import com.intellij.icons.AllIcons
import com.intellij.xdebugger.evaluation.XDebuggerEvaluator
import com.intellij.xdebugger.frame.*
import com.intellij.xdebugger.impl.XDebugSessionImpl
import com.tang.intellij.lua.debugger.remote.LuaMobDebugProcess
import org.luaj.vm2.LuaValue

Expand Down Expand Up @@ -75,11 +74,13 @@ class LuaRTable(name: String) : LuaRValue(name) {

override fun evaluated(tv: XValue) {
//////////tmp solution,非栈顶帧处理
var tableValue = tv
if (data != null && !(process.session as XDebugSessionImpl).isTopFrameSelected)
tableValue = LuaRValue.create(myName, data as LuaValue, myName, process.session)
// todo: fix "Internal classes usages" & "Internal methods usages" problem
//var tableValue = tv
//if (data != null && !(process.session as XDebugSessionImpl).isTopFrameSelected)
// tableValue = LuaRValue.create(myName, data as LuaValue, myName, process.session)
//////////

val tableValue = tv
val list = XValueChildrenList()
val tbl = tableValue as? LuaRTable ?: return
val table = tbl.data?.checktable()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,14 @@ open class LuaLibraryRootsComponentDescriptor : LibraryRootsComponentDescriptor(

override fun createAttachFilesChooserDescriptor(libraryName: String?): FileChooserDescriptor {
return object : FileChooserDescriptor(super.createAttachFilesChooserDescriptor(libraryName)) {
override fun isFileVisible(file: VirtualFile, showHiddenFiles: Boolean): Boolean {
// todo: fix "Non-extendable method usage violation" problem
/*override fun isFileVisible(file: VirtualFile, showHiddenFiles: Boolean): Boolean {
if (file.isDirectory)
return true
val ext = file.extension
return ext != null && ext.equals("zip", ignoreCase = true)
}
}*/
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,11 @@ import com.intellij.openapi.command.WriteCommandAction
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.project.Project
import com.intellij.openapi.util.Pass
import com.intellij.psi.PsiDocumentManager
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiFile
import com.intellij.psi.SmartPsiElementPointer
import com.intellij.psi.*
import com.intellij.psi.util.PsiTreeUtil
import com.intellij.refactoring.RefactoringActionHandler
import com.intellij.refactoring.introduce.inplace.InplaceVariableIntroducer
import com.intellij.refactoring.introduce.inplace.OccurrencesChooser
import com.intellij.refactoring.suggested.createSmartPointer
import com.tang.intellij.lua.psi.*
import com.tang.intellij.lua.refactoring.LuaRefactoringUtil

Expand Down

0 comments on commit d0ad7b2

Please sign in to comment.