BridgeIdentityFetcher typedef

BridgeIdentityFetcher = Future<String?> Function(String host, int port)

Fetches the workspace identity name reported by the bridge on host:port, or null if the bridge does not answer / has no identifiable workspace.

The identity name is the open .code-workspace file's name, or the workspace root folder basename when no .code-workspace is open.

Implementation

typedef BridgeIdentityFetcher = Future<String?> Function(String host, int port);