export function fromUriToScmUri()

in packages/vscode-extension-web-ide/src/scm/uri.ts [26:42]


export function fromUriToScmUri(uri: Uri, ref: string): Uri {
  // These need to be absolute paths
  const fullPath = joinPaths('/', uri.path);

  const params: WebIdeScmUriParams = {
    path: fullPath,
    ref,
  };

  const result = uri.with({
    scheme: SCM_SCHEME,
    path: fullPath,
    query: JSON.stringify(params),
  });

  return result;
}