625
626
export function getFilePath(uri: URI, remoteOS: OperatingSystem | undefined, isRemote = false): string {
628
>
// the vscode-local scheme so the remote extension host can read them via the
629
>
// local file bridge. This works for WSL, SSH, and dev containers without
630
>
// any cache migration.
631
>
if (isRemote && uri.scheme === Schemas.file) {
632
return uri.with({ scheme: 'vscode-local' }).toString();
633
}
635
const fsPath = uri.fsPath;
636
// uri.fsPath uses the local OS's path separators, but the path