mirror of
https://github.com/cline/cline.git
synced 2026-10-30 18:12:49 +08:00
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:
co-authored by
wangyj20
parent
a05d438612
commit
7435ffcd2f
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user