You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Agreed, it should work, in my opinion, the if-else handler doesn't belong inside the return var() which seems to be an output (array/list) separated by commas ,
In my experience with other code, I prepare results before sending anything to the output.
The only way to add conditions might be to use return twice:
ifVAR=".sh":
returnvar()
else:
returnvar()
But this didn't compile for me, because the def create_result_item(path_name: str) -> ExtensionSmallResultItem: seems to expect an output, not additional operations. I'm stuck here:
It says: syntax error, invalid syntax, maybe you meant other operators like "==", ":=", "=" which isn't the case. This code is a hard nut for me.
Great plugin!
Since I've zero experience with python and prefer to run than to open bash scripts, I need some assistance to improve your code.
On top of your code, I added:
an if-else handler on line 206:
therefore:
VsCode marks my
if file_extension is "sh":
as wrong. Could you kindly correct my code?The text was updated successfully, but these errors were encountered: