Skip to content

Commit a67b0d5

Browse files
Update webResourceHelper.ts
Co-authored-by: Copilot <[email protected]>
1 parent 727c69f commit a67b0d5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/helpers/webResourceHelper.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ export class WebResourceHelper {
6868
const tempFilePath = vscode.Uri.joinPath(tempDirUri, `temp-${resourceToCompare["@_localFileName"]}`);
6969
writeFileSync(tempFilePath.fsPath, parsedContent);
7070

71+
// The parameter order for vscode.diff is: left (original) <--> right (modified).
72+
// Here, we show the server version (tempFilePath) on the left and the local version (fullPath) on the right,
73+
// matching the label "Server <--> Local". This order ensures users see changes from server to local.
7174
await vscode.commands.executeCommand("vscode.diff", tempFilePath, vscode.Uri.file(fullPath), `Server <--> Local : ${resourceToCompare["@_dvDisplayName"]}`);
7275
}
7376
} else {

0 commit comments

Comments
 (0)