mirror of
https://github.com/adelphes/android-dev-ext.git
synced 2025-12-23 01:48:18 +00:00
Fix issue with Android source not displaying
VSCode 1.9 prioritises srcref over path - we now set the ref to 0 if a source path is set.
This commit is contained in:
@@ -802,7 +802,7 @@ class AndroidDebugSession extends DebugSession {
|
|||||||
const srcpath = pkginfo ? path.join(pkginfo.package_path,sourcefile)
|
const srcpath = pkginfo ? path.join(pkginfo.package_path,sourcefile)
|
||||||
: this._android_sources_path ? srcInfo.filepath
|
: this._android_sources_path ? srcInfo.filepath
|
||||||
: null;
|
: null;
|
||||||
const src = new Source(sourcefile, srcpath, srcRefId);
|
const src = new Source(sourcefile, srcpath, srcpath ? 0 : srcRefId);
|
||||||
pkginfo && (highest_known_source=i);
|
pkginfo && (highest_known_source=i);
|
||||||
stack.push(new StackFrame(stack_frame_id, name, src, linenum, 0));
|
stack.push(new StackFrame(stack_frame_id, name, src, linenum, 0));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user