mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-03 01:25:38 -05:00
Merge from vscode 892353d48e17303de203bb5071f21ea69573367d
This commit is contained in:
@@ -440,7 +440,13 @@ class WindowIndicator implements IWindowIndicator {
|
||||
// Find credentials from DOM
|
||||
const credentialsElement = document.getElementById('vscode-workbench-credentials');
|
||||
const credentialsElementAttribute = credentialsElement ? credentialsElement.getAttribute('data-settings') : undefined;
|
||||
const credentialsProvider = new LocalStorageCredentialsProvider(credentialsElementAttribute ? JSON.parse(credentialsElementAttribute) : []);
|
||||
let credentials = undefined;
|
||||
if (credentialsElementAttribute) {
|
||||
try {
|
||||
credentials = JSON.parse(credentialsElementAttribute);
|
||||
} catch (error) { /* Invalid credentials are passed. Ignore. */ }
|
||||
}
|
||||
const credentialsProvider = new LocalStorageCredentialsProvider(credentials || []);
|
||||
|
||||
// Finally create workbench
|
||||
create(document.body, {
|
||||
|
||||
Reference in New Issue
Block a user