-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Identical expressions on both sides of || in git-quick-open-service#doBuildDefaultProjectPath #11900
Comments
@JonasHelming is there an actual observable problem behind this or is it just a code smell? |
@tsmaeder I did not investigate this in detail. "At least" a code smell, maybe an issue. |
This code is actually correct, but misleading: let's look at what split gives for the following string:
so if you evalutate |
the "Git: clone" command is 100% broken: seems our quick pick implementation does not invoke the "execute" function in this case: since there is no "selected item", only a value in this case. Not usefule for Hackathon. |
@tsmaeder : Could you remove the label then or close the bug and search/create another one for you for the Hackathon, please |
Probably the code is still wrong when someone enters a uri like "https://github.com/my/repo///", but we can't verify it right now. |
Blocked for hackathon
See:
theia/packages/git/src/browser/git-quick-open-service.ts
Line 128 in 4d3d0c2
The same expression is used on both sides of a || operator, which is very confusing.
@tsmaeder : Do you want to add details and test instructions for this one?
The text was updated successfully, but these errors were encountered: