fix: use Uri.from to generate valid diff URI (#4882)

* fix: use Uri.from to generate valid diff URI

* fix the conflicts for VscodeDiffViewProvider.ts has been moved

---------

Co-authored-by: wangyj20 <wangyj20@asiainfo.com>
This commit is contained in:
wangyijing130
2025-07-30 10:42:19 -07:00
committed by GitHub
co-authored by wangyj20
parent a05d438612
commit 7435ffcd2f
+3 -1
View File
@@ -68,7 +68,9 @@ export class VscodeDiffViewProvider extends DiffViewProvider {
})
vscode.commands.executeCommand(
"vscode.diff",
vscode.Uri.parse(`${DIFF_VIEW_URI_SCHEME}:${fileName}`).with({
vscode.Uri.from({
scheme: DIFF_VIEW_URI_SCHEME,
path: fileName,
query: Buffer.from(this.originalContent ?? "").toString("base64"),
}),
uri,