Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

preactivate solidity #2879

Merged
merged 4 commits into from
Jun 4, 2020
Merged

preactivate solidity #2879

merged 4 commits into from
Jun 4, 2020

Conversation

LianaHus
Copy link
Collaborator

@LianaHus LianaHus commented Jun 3, 2020

@LianaHus LianaHus requested a review from yann300 June 3, 2020 17:14
src/app.js Outdated
@@ -406,6 +406,10 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
const framingService = new FramingService(sidePanel, menuicons, mainview, this._components.resizeFeature)
framingService.start()

// preactivate solidity plugin
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should preactivate solidity and udapp, only if the workspace is empty, not always

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

your are right. I'll do the change.

@@ -400,7 +400,13 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
await appManager.activatePlugin(['home', 'sidePanel', 'hiddenPanel', 'pluginManager', 'fileExplorers', 'settings', 'contextualListener', 'scriptRunner', 'terminal', 'fetchAndCompile'])

// Set workspace after initial activation
if (Array.isArray(workspace)) await appManager.activatePlugin(workspace)
if (Array.isArray(workspace)) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should check for the length here

@yann300 yann300 merged commit fd35bc4 into master Jun 4, 2020
@yann300 yann300 deleted the defaultSol branch June 4, 2020 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use Solidity as default (but only if data supports it)
2 participants