mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Add real MIAA connection string values (#10838)
* Add real MIAA connection string values * Add MiaaModel and fix some strings * Remove unused var * Test to print env vars * Add tests * fixes
This commit is contained in:
@@ -26,3 +26,12 @@ export function resourceTypeToDisplayName(resourceType: string | undefined): str
|
||||
}
|
||||
return resourceType;
|
||||
}
|
||||
|
||||
export function parseEndpoint(endpoint?: string): { ip: string, port: string } {
|
||||
endpoint = endpoint || '';
|
||||
const separatorIndex = endpoint.indexOf(':');
|
||||
return {
|
||||
ip: endpoint.substr(0, separatorIndex),
|
||||
port: endpoint.substr(separatorIndex + 1)
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user