Making an auth provider which can be used on GH Codespaces #286
-
The problemI'm currently creating an authentication provider and found the following documentation: https://code.visualstudio.com/api/advanced-topics/remote-extensions#callbacks-and-uri-handlers It states that you need to use Steps
vscode.window.registerUriHandler({
handleUri(uri: vscode.Uri): vscode.ProviderResult<void> {
// Never called
vscode.window.showInformationMessage(`URI handler called: ${uri.toString()}`);
}
});```
Anyone an idea how to fix it, or what could be wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It seems it was an encoding issue. |
Beta Was this translation helpful? Give feedback.
It seems it was an encoding issue.
vscode.env.clipboard.writeText(callbackUri.toString());
should bevscode.env.clipboard.writeText(callbackUri.toString(true));
to skip the encoding in the URL.