-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Make Clone in VSCode link get updated correctly (#21225) #21226
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
Make Clone in VSCode link get updated correctly (#21225) #21226
Conversation
Any reference to mentioned Golang bug? |
Now here it is: |
Thanks, we should definitely remove this script and move this localStorage setting to backend database, then we will no longer need inline scripts and the headaches they bring. |
If it's a go bug, why is there no problem with v1.18? |
Because Gitea 1.18 doesn't use string interpolation, there is no lint rule for templates, and the code has been tested carefully. But when it's backported to 1.17-dev, the lint rule in 1.17 forced to use string interpolation, then no one tested it, then bug occurs. |
Backport #21225, fix for #21128 (also in 1.17.3), close #21224
The indent was incorrect before, so this PR did some formatting work.
Bypass Golang's template bug for JS string interpolation. And since there are JS lint rules for templates, so the string interpolation is also a must.
Compare with ignoring white spaces