MCPcopy
hub / github.com/conwnet/github1s / commandDiffViewOpenRightFile

Function commandDiffViewOpenRightFile

extensions/github1s/src/commands/editor.ts:64–67  ·  view source on GitHub ↗
(fileUri: vscode.Uri)

Source from the content-addressed store, hash-verified

62
63// open the right file in the diff editor title
64const commandDiffViewOpenRightFile = async (fileUri: vscode.Uri) => {
65 const query = queryString.parse(fileUri?.query || '');
66 return query.head ? openFileToEditor(vscode.Uri.parse(query.head as string)) : null;
67};
68
69// get the file uri with the concrete commit sha, the `ref` in
70// `fileUri.authority` maybe newer but not related this file

Callers

nothing calls this directly

Calls 1

openFileToEditorFunction · 0.85

Tested by

no test coverage detected