in src/utils.ts [47:50]
export function resolvePath(uri: URI, ...paths: string[]): URI {
const path = uri.path || '/'; // normalize the path which is necessary as for posixPath.resolve the first segments has to be absolute or cwd is used.
return uri.with({ path: posixPath.resolve(path, ...paths) });
}