Skip to content

Commit ee8a3a8

Browse files
authored
Merge pull request #259 from joshcomley/master
Allow for 'tns' platform specific files
2 parents 6f8dca0 + 228a0ac commit ee8a3a8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/debug-adapter/nativeScriptSourceMapTransformer.ts

+7
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,13 @@ export class NativeScriptSourceMapTransformer extends BaseSourceMapTransformer {
9696
// handle platform-specific files
9797
const { dir, name, ext } = path.parse(mappedPath);
9898

99+
const tnsFileName = `${name}.tns${ext}`;
100+
const tnsPath = path.join(dir, tnsFileName);
101+
102+
if (vsCodeChromeDebugUtils.existsSync(tnsPath)) {
103+
mappedPath = tnsPath;
104+
}
105+
99106
const platformFileName = `${name}.${this.targetPlatform}${ext}`;
100107
const platformPath = path.join(dir, platformFileName);
101108

0 commit comments

Comments
 (0)