node_modules/vscode-fuzzy-scorer/dist/vscode_common/uri.js
/**
   * Join a URI path with path fragments and normalizes the resulting path.
   *
   * @param uri The input URI.
   * @param pathFragment The path fragment to add to the URI path.
   * @returns The resulting URI.
   */
Join a URI path with path fragments and normalizes the resulting path.
@param uri The input URI.
@param pathFragment The path fragment to add to the URI path.
@returns The resulting URI.
Join a URI path with path fragments and normalizes the resulting path . @param uri The input URI . @param pathFragment The path fragment to add to the URI path . @returns The resulting URI .
static joinPath(uri, ...pathFragment) {
    if (!uri.path) {
      throw new Error(`[UriError]: cannot call joinPaths on URI without path`);
    }
    let newPath;
    if (_platform.isWindows && uri.scheme === 'file') {
      newPath = URI.file(paths.win32.join(uriToFsPath(uri, true), ...pathFragment)).path;
    } else {
      newPath = paths.posix.join(uri.path, ...pathFragment);
    }
    return uri.with({
      path: newPath
    });
  } 
static joinPath ( uri , ... pathFragment ) { if ( ! uri . path ) { throw new Error ( ` ` ) ; } let newPath ; if ( _platform . isWindows && uri . scheme === 'file' ) { newPath = URI . file ( paths . win32 . join ( uriToFsPath ( uri , true ) , ... pathFragment ) ) . path ; } else { newPath = paths . posix . join ( uri . path , ... pathFragment ) ; } return uri . with ( { path : newPath } ) ; }
Join a URI path with path fragments and normalizes the resulting path.
Join a URI path with path fragments and normalizes the resulting path .
// ---- printing/externalize ---------------------------