Replies: 1 comment 2 replies
-
Have you tried using getCredentials? That should return an object with a |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying something like this, I have an active connection to oracle server, I need to get the connection info(along with the password) from a plugin. but password is always nul string, any ideas please ?
azdata.connection.getCurrentConnection().then(connection => {
let connectionId = connection ? connection.connectionId : 'No connection found!';
vscode.window.showInformationMessage(connection.userName);
vscode.window.showInformationMessage(connection.password);
azdata.connection.getConnectionString(connectionId, true).then(connectionStr => {
vscode.window.showInformationMessage(connectionStr);
});
}, error => {
console.info(error);
});
Beta Was this translation helpful? Give feedback.
All reactions