mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
Portable mode improvements and bug fixes (#287063)
Disabled protocol handlers and registry updates on Windows in portable mode. Added API proposal to detect if VS Code is running in portable mode from extensions. Skipped protocol redirect in GitHub authentication in portable mode.
This commit is contained in:
@@ -46,7 +46,12 @@
|
||||
if (error) {
|
||||
document.querySelector('.error-message > .detail').textContent = error;
|
||||
document.querySelector('body').classList.add('error');
|
||||
} else if (redirectUri) {
|
||||
} else if (!redirectUri) {
|
||||
// Portable mode: authentication succeeded, no redirect needed
|
||||
document.querySelector('.title').textContent = appName;
|
||||
document.querySelector('.success-message > .subtitle').textContent = 'You have successfully signed in.';
|
||||
document.querySelector('.success-message > .detail').textContent = 'You can now close this window.';
|
||||
} else {
|
||||
// Wrap the redirect URI so that the browser remembers who triggered the redirect
|
||||
const wrappedRedirectUri = `https://vscode.dev/redirect?url=${encodeURIComponent(redirectUri)}`;
|
||||
// Set up the fallback link
|
||||
|
||||
Reference in New Issue
Block a user