mirror of
https://github.com/adelphes/android-dev-ext.git
synced 2025-12-22 17:39:19 +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)
|
||||
: this._android_sources_path ? srcInfo.filepath
|
||||
: null;
|
||||
const src = new Source(sourcefile, srcpath, srcRefId);
|
||||
const src = new Source(sourcefile, srcpath, srcpath ? 0 : srcRefId);
|
||||
pkginfo && (highest_known_source=i);
|
||||
stack.push(new StackFrame(stack_frame_id, name, src, linenum, 0));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user