mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Merge from vscode 777931080477e28b7c27e8f7d4b0d69897945946 (#9220)
This commit is contained in:
@@ -12,6 +12,9 @@ export function getRemoteAuthority(uri: URI): string | undefined {
|
||||
return uri.scheme === REMOTE_HOST_SCHEME ? uri.authority : undefined;
|
||||
}
|
||||
|
||||
export function getRemoteName(authority: string): string;
|
||||
export function getRemoteName(authority: undefined): undefined;
|
||||
export function getRemoteName(authority: string | undefined): string | undefined;
|
||||
export function getRemoteName(authority: string | undefined): string | undefined {
|
||||
if (!authority) {
|
||||
return undefined;
|
||||
@@ -22,4 +25,4 @@ export function getRemoteName(authority: string | undefined): string | undefined
|
||||
return authority;
|
||||
}
|
||||
return authority.substr(0, pos);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user