}
if (uri.scheme === Schemas.file || uri.scheme === Schemas.vscodeRemote) {
// uri.fsPath uses the local OS's path separators, but the path
// may belong to a remote with a different OS. Normalize separators
// to match the remote OS (idempotent when local and remote match).
if (remoteOS !== undefined) {
if (remoteOS === OperatingSystem.Windows) {
return fsPath.replace(/\//g, '\\');