When there is no Node.js installed, the style is not assigned, therefore the symbol is displayed with no colour #4705
Labels
🐛 bug
Something isn't working as expected.
🌱 good first issue
Good first issue to get your feet wet.
Bug Report
Current Behavior
The
nodejs
module ignores thestyle
property when there is no Node.js installed, and therefore the the symbol is displayed with no colour.Case: There is no Node.js installed.
No style is applied.
Case: There is a Node.js installed, and no
engines
property in thepackage.json
.Case: There is a Node.js installed and it matches the
engines
property in thepackage.json
.The value of
style
is used from the configuration.Case: There is a Node.js installed and it does not match the
engines
property in thepackage.json
.The value of
not_capable_style
is used from the configuration.Expected Behavior
When there is no Node.js installed, the value of
style
should still be used from the configuration, and therefore the symbol is still displayed with colour.Case: There is no Node.js installed.
The value of
style
is used from the configuration.Possible Solution
I'm not entirely certain, but the only path I could see that lead to the
style
variable not being set correctly occurs on line 48 of thenodejs
module. In the case thatnodejs_version.deref().as_ref()?
fails, then I don't believe thestyle
variable gets assigned.The text was updated successfully, but these errors were encountered: