In GitLab, when you click on the blue "Clone" button you will see several options:
The "Open in your IDE" section shows the option "Visual Studio Code", which is a url of the following form:
vscode://vscode.git/clone?url=<url_encoded url pointing to the .git repository>
I am unable to find any documentation in the VSCode website. What other options are supported by VSCode apart from vscode://vscode.git/clone?url=...
? Where can I find more information about this?
By "Options" I mean methods (
GET
/POST
), servers (vscode.git
), endpoints (clone?...
) and parameters (url=...
)
The vscode://vscode.git/clone?url=...
is not supported by VS Code internally.
Instead, it uses a feature in VS Code that URLs can direct the handling of the URL to a registered extension, in this case vscode.git.
So, the /clone?url=...
part is handled by the vscode.git extension and not internally by VS Code.
You can see this in the docs for vscode extensions API registerUriHandler: https://code.visualstudio.com/api/references/vscode-api#window.registerUriHandler