Skip to content

Commit

Permalink
ajuste path para uri
Browse files Browse the repository at this point in the history
  • Loading branch information
lwtnb-wrk committed Jun 15, 2021
1 parent 8a9e98e commit 66c0bee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/patch/apply/applyPatchLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down Expand Up @@ -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";
Expand Down

0 comments on commit 66c0bee

Please sign in to comment.