We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3d78d5 commit e346071Copy full SHA for e346071
1 file changed
src/vs/platform/remote/common/remoteHosts.ts
@@ -12,6 +12,9 @@ export function getRemoteAuthority(uri: URI): string | undefined {
12
return uri.scheme === REMOTE_HOST_SCHEME ? uri.authority : undefined;
13
}
14
15
+export function getRemoteName(authority: string): string;
16
+export function getRemoteName(authority: undefined): undefined;
17
+export function getRemoteName(authority: string | undefined): string | undefined;
18
export function getRemoteName(authority: string | undefined): string | undefined {
19
if (!authority) {
20
return undefined;
@@ -22,4 +25,4 @@ export function getRemoteName(authority: string | undefined): string | undefined
22
25
return authority;
23
26
24
27
return authority.substr(0, pos);
-}
28
+}
0 commit comments