From b60ef65803144ac3da1e1ef30fe0308a4f0a1381 Mon Sep 17 00:00:00 2001 From: adelphes Date: Thu, 2 Feb 2017 19:18:54 +0000 Subject: [PATCH] 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. --- src/debugMain.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debugMain.js b/src/debugMain.js index 95d4000..258d4d8 100644 --- a/src/debugMain.js +++ b/src/debugMain.js @@ -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)); }