mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-19 01:25:36 -05:00
Fix handling of connections in editors (#9682)
* fix handling of connections in editors * initial tests * remove test
This commit is contained in:
@@ -79,10 +79,10 @@ export function getCurrentGlobalConnection(objectExplorerService: IObjectExplore
|
||||
if (activeInput) {
|
||||
// dashboard Connection
|
||||
if (activeInput instanceof DashboardInput && activeInput.uri) {
|
||||
connection = connectionManagementService.getConnectionProfile(activeInput.uri.toString());
|
||||
connection = connectionManagementService.getConnectionProfile(activeInput.uri);
|
||||
} else if (activeInput.resource) {
|
||||
// editor Connection
|
||||
connection = connectionManagementService.getConnectionProfile(activeInput.resource.toString());
|
||||
connection = connectionManagementService.getConnectionProfile(activeInput.resource.toString(true));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user