From 66c0bee069b6d8896016dda8cb4579e3cf70286b Mon Sep 17 00:00:00 2001 From: lwtnb-wrk Date: Tue, 15 Jun 2021 17:45:38 -0300 Subject: [PATCH] ajuste path para uri --- src/patch/apply/applyPatchLoader.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/patch/apply/applyPatchLoader.ts b/src/patch/apply/applyPatchLoader.ts index 208d7c01..c8de6d11 100644 --- a/src/patch/apply/applyPatchLoader.ts +++ b/src/patch/apply/applyPatchLoader.ts @@ -301,7 +301,7 @@ export class ApplyPatchLoader { element.data = { error_number: -1, data: "" } self.updatePage(); - await sendApplyPatchRequest(this.currentServer, element.fullpath, element.applyScope) + await sendApplyPatchRequest(this.currentServer, vscode.Uri.file(element.fullpath).toString(), element.applyScope) .then((result: IPatchValidateResult) => { element.status = "applyed"; }, (reason: IPatchValidateResult) => { @@ -351,7 +351,7 @@ export class ApplyPatchLoader { element.data = { error_number: -1, data: "" } self.updatePage(); - await sendValidPatchRequest(this.currentServer, element.fullpath, element.applyScope) + await sendValidPatchRequest(this.currentServer, vscode.Uri.file(element.fullpath).toString(), element.applyScope) .then((result: IPatchValidateResult) => { element.data = { error_number: result.errorCode, data: result.patchValidates }; element.status = "valid";