function joinPath(resource, pathFragment) {
    var joinedPath;
    if (resource.scheme === Schemas.file) {
        joinedPath = URI.file(paths.join(fsPath(resource), pathFragment)).path;
    }
    else {
        joinedPath = paths.join(resource.path, pathFragment);
    }
    return resource.with({
        path: joinedPath
    });
}
/**
 * Join a URI path with a path fragment and normalizes the resulting path.
 *
 * @param resource The input URI.
 * @param pathFragment The path fragment to add to the URI path.
 * @returns The resulting URI.
 */
Join a URI path with a path fragment and normalizes the resulting path.
@param resource The input URI.
@param pathFragment The path fragment to add to the URI path.
@returns The resulting URI.
Join a URI path with a path fragment and normalizes the resulting path . @param resource The input URI . @param pathFragment The path fragment to add to the URI path . @returns The resulting URI .
function joinPath(resource, pathFragment) {
    var joinedPath;
    if (resource.scheme === Schemas.file) {
        joinedPath = URI.file(paths.join(fsPath(resource), pathFragment)).path;
    }
    else {
        joinedPath = paths.join(resource.path, pathFragment);
    }
    return resource.with({
        path: joinedPath
    });
}
function joinPath ( resource , pathFragment ) { var joinedPath ; if ( resource . scheme === Schemas . file ) { joinedPath = URI . file ( paths . join ( fsPath ( resource ) , pathFragment ) ) . path ; } else { joinedPath = paths . join ( resource . path , pathFragment ) ; } return resource . with ( { path : joinedPath } ) ; }
Join a URI path with a path fragment and normalizes the resulting path.
Join a URI path with a path fragment and normalizes the resulting path .