Merge pull request #1841 from ethereum/donot_autoselectFile

Fix test file generation && don't switch to a File upon workspace loads
pull/3094/head
yann300 6 years ago committed by GitHub
commit c798723a05
  1. 2
      src/app/tabs/test-tab.js
  2. 2
      src/app/ui/landing-page/workspace.js

@ -171,7 +171,7 @@ module.exports = class TestTab extends BaseApi {
<br/>
For more details, see
How to test smart contracts guide in our documentation.
<div class="${css.generateTestFile} btn btn-primary m-1" onclick="${this.testTabLogic.generateTestFile(this)}">Generate test file</div>
<div class="${css.generateTestFile} btn btn-primary m-1" onclick="${this.testTabLogic.generateTestFile.bind(this.testTabLogic)}">Generate test file</div>
</div>
<div class="${css.tests}">
<div class="${css.buttons}">

@ -21,7 +21,6 @@ export const defaultWorkspaces = (appManager) => {
appManager.ensureActivated('run')
appManager.ensureActivated('solidityStaticAnalysis')
appManager.ensureActivated('solidityUnitTesting')
globalRegistry.get('filemanager').api.switchFile()
globalRegistry.get('verticalicon').api.select('solidity')
}, () => {}),
new Workspace(
@ -31,7 +30,6 @@ export const defaultWorkspaces = (appManager) => {
() => {
appManager.ensureActivated('vyper')
appManager.ensureActivated('run')
globalRegistry.get('filemanager').api.switchFile()
globalRegistry.get('verticalicon').api.select('vyper')
}, () => {}),
new Workspace('Debugger', 'Debug transactions with remix', false, () => {

Loading…
Cancel
Save