mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix "go to source/type" — XSourcePosition doesn't provide column number, so, we must override createNavigatable
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package org.jetbrains.debugger;
|
||||
|
||||
import com.intellij.openapi.fileEditor.OpenFileDescriptor;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.pom.Navigatable;
|
||||
import com.intellij.xdebugger.XSourcePosition;
|
||||
@@ -35,6 +36,6 @@ public class SourceInfo extends XSourcePositionWrapper {
|
||||
@NotNull
|
||||
@Override
|
||||
public Navigatable createNavigatable(@NotNull Project project) {
|
||||
return myPosition.createNavigatable(project);
|
||||
return new OpenFileDescriptor(project, myPosition.getFile(), myPosition.getLine(), column);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user