Validate that instance URL starts with protocol
Problem to solve
Currently, users can add GitLab instance URLs that do not start with the protocol. This can happen in both the gitlab.instanceUrl
setting and the instance URL specified when adding token.
This sometimes makes extension setup more confusing (e.g. #481).
Proposal
When the user adds a token, validate that the instance URL starts with a protocol (either http://
or https://
).
When the extension notices a gitlab.instanceUrl
setting, it warns user if the setting doesn't start with a protocol.
Further details
This would work well with #515 (closed)
Links / references
Edited by Tomas Vik (OOO back on 2024-08-12)