node_modules/vscode-fuzzy-scorer/dist/vscode_common/uri.js
/**
 * Compute `fsPath` for the given uri
 */
Compute `fsPath` for the given uri
Compute ` fsPath ` for the given uri
function uriToFsPath(uri, keepDriveLetterCasing) {
  let value;
  if (uri.authority && uri.path.length > 1 && uri.scheme === 'file') {
    value = `//${uri.authority}${uri.path}`;
  } else if (uri.path.charCodeAt(0) === _charCode.CharCode.Slash && (uri.path.charCodeAt(1) >= _charCode.CharCode.A && uri.path.charCodeAt(1) <= _charCode.CharCode.Z || uri.path.charCodeAt(1) >= _charCode.CharCode.a && uri.path.charCodeAt(1) <= _charCode.CharCode.z) && uri.path.charCodeAt(2) === _charCode.CharCode.Colon) {
    if (!keepDriveLetterCasing) {
      value = uri.path[1].toLowerCase() + uri.path.substr(2);
    } else {
      value = uri.path.substr(1);
    }
  } else {
    value = uri.path;
  }
  if (_platform.isWindows) {
    value = value.replace(/\//g, '\\');
  }
  return value;
}
function uriToFsPath ( uri , keepDriveLetterCasing ) { let value ; if ( uri . authority && uri . path . length > 1 && uri . scheme === 'file' ) { value = ` ${ uri . authority } ${ uri . path } ` ; } else if ( uri . path . charCodeAt ( 0 ) === _charCode . CharCode . Slash && ( uri . path . charCodeAt ( 1 ) >= _charCode . CharCode . A && uri . path . charCodeAt ( 1 ) <= _charCode . CharCode . Z || uri . path . charCodeAt ( 1 ) >= _charCode . CharCode . a && uri . path . charCodeAt ( 1 ) <= _charCode . CharCode . z ) && uri . path . charCodeAt ( 2 ) === _charCode . CharCode . Colon ) { if ( ! keepDriveLetterCasing ) { value = uri . path [ 1 ] . toLowerCase ( ) + uri . path . substr ( 2 ) ; } else { value = uri . path . substr ( 1 ) ; } } else { value = uri . path ; } if ( _platform . isWindows ) { value = value . replace ( / \/ / g , '\\' ) ; } return value ; }
Compute `fsPath` for the given uri
Compute ` fsPath ` for the given uri
// unc path: file://shares/c$/far/boo // windows drive letter: file:///c:/far/boo // other path