fix for reopening same file in two tabs in editor

pull/1573/head
aniket-engg 3 years ago committed by Aniket
parent c17cdb2fba
commit 5064a654dc
  1. 3
      apps/remix-ide/src/app/tabs/testTab/testTab.js

@ -68,7 +68,8 @@ class TestTabLogic {
cb(e.message)
}
for (var file in files) {
if (/.(_test.sol)$/.exec(file)) tests.push(provider.type + '/' + file)
const filepath = provider && provider.type ? provider.type + '/' + file : file
if (/.(_test.sol)$/.exec(file)) tests.push(filepath)
}
cb(null, tests, this.currentPath)
}

Loading…
Cancel
Save