File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
src/main/java/com/tang/intellij/lua Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -93,8 +93,8 @@ open class LuaMobDebugProcess(session: XDebugSession) : LuaDebugProcess(session)
9393 if (mobClient != null ) sendBreakpoint(mobClient!! , sourcePosition)
9494 }
9595
96- override fun unregisterBreakpoint (sourcePosition : XSourcePosition , position : XLineBreakpoint <* >) {
97- super .unregisterBreakpoint(sourcePosition, position )
96+ override fun unregisterBreakpoint (sourcePosition : XSourcePosition , breakpoint : XLineBreakpoint <* >) {
97+ super .unregisterBreakpoint(sourcePosition, breakpoint )
9898 if (mobClient != null ) {
9999 val file = sourcePosition.file
100100 val fileShortUrl = LuaFileUtil .getShortPath(session.project, file)
Original file line number Diff line number Diff line change 2020import com .intellij .openapi .components .ApplicationComponent ;
2121import com .intellij .openapi .projectRoots .ProjectJdkTable ;
2222import com .intellij .openapi .projectRoots .Sdk ;
23- import com .intellij .openapi .projectRoots .SdkModificator ;
2423import com .intellij .openapi .projectRoots .impl .ProjectJdkImpl ;
2524import org .jetbrains .annotations .NotNull ;
2625
@@ -36,11 +35,6 @@ public void initComponent() {
3635 ProjectJdkTable pjt = ProjectJdkTable .getInstance ();
3736 //清除旧的std sdk,不用了,用predefined代替
3837 Sdk mySdk = pjt .findJdk (StdSDK .NAME );
39- if (mySdk != null ) {
40- SdkModificator sdkModificator = mySdk .getSdkModificator ();
41- sdkModificator .removeAllRoots ();
42- sdkModificator .commitChanges ();
43- }
4438 if (mySdk == null ) {
4539 ProjectJdkImpl sdk = new ProjectJdkImpl (StdSDK .NAME , LuaSdkType .getInstance ());
4640 /*SdkModificator sdkModificator = sdk.getSdkModificator();
You can’t perform that action at this time.
0 commit comments