Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f9ae934

Browse files
committedMay 6, 2025··
fix: shorter tab titles for patch diff views
Can still see the name of the file being viewed in the tooltip for the tab
1 parent 2face42 commit f9ae934

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/commands/patches.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export function registerPatchesCommands(
164164
),
165165
vscode.commands.registerCommand(
166166
`${commandPrefix}.showPatchedFileDiff`,
167-
(file: vscode.Uri, patchedFilename: string) => {
167+
(file: vscode.Uri, _patchedFilename: string) => {
168168
const { blobIdA, blobIdB, patch } = querystringParse(file.query);
169169

170170
if (!blobIdA || !blobIdB || !patch) {
@@ -203,7 +203,7 @@ export function registerPatchesCommands(
203203
"vscode.diff",
204204
originalFile,
205205
patchedFile,
206-
`${path.basename(patch)} - ${patchedFilename}`,
206+
`${path.basename(patch)} - Diff`,
207207
);
208208
}
209209
},

0 commit comments

Comments
 (0)
Please sign in to comment.