-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
compiler tab style fixes. language selector ui behaviour #2108
Conversation
0cbe0d2
to
0752b06
Compare
@@ -294,6 +305,16 @@ class CompilerContainer { | |||
} | |||
} | |||
|
|||
_updateLanguageSelector () { | |||
if (this._retriveVersion() < '0.5.7') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how this can work? you should probably use semver here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:) it works. ok I'll look at it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should use semver for version comparison
some infos about semver https://www.npmjs.com/package/semver |
@@ -240,7 +248,9 @@ class CompilerContainer { | |||
|
|||
onchangeLanguage (event) { | |||
this.compileTabLogic.setLanguage(event.target.value) | |||
this.compile() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all the other on*
method, just trigger a new compilation. Might be more consistent to to keep the same behavior here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but there was a issue here. build shouldn't be triggered if there is no autocompile an selected file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or I can put the check in the compile() function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but there was a issue here. build shouldn't be triggered if there is no autocompile an selected file
This should done in another PR and all the on*
function should be updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok will create a new PR
will be added in new PR
Click on |
fixes https://github.com/ethereum/remix-ide/issues/2100