diff --git a/src/vs/platform/remote/common/remoteHosts.ts b/src/vs/platform/remote/common/remoteHosts.ts index 5578246cc820f..feb46455ac48c 100644 --- a/src/vs/platform/remote/common/remoteHosts.ts +++ b/src/vs/platform/remote/common/remoteHosts.ts @@ -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); -} \ No newline at end of file +}