Skip to content

Commit 502898c

Browse files
committed
disabled decoding of pathced text #188
1 parent 0502b02 commit 502898c

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/client/common/editor.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,12 @@ function patch_fromText(textline) {
202202
while (textPointer < text.length) {
203203
var sign = text[textPointer].charAt(0);
204204
try {
205-
var line = decodeURI(text[textPointer].substring(1));
205+
//var line = decodeURI(text[textPointer].substring(1));
206+
// For some reason the patch generated by python files don't encode any characters
207+
// And this patch module (code from Google) is expecting the text to be encoded!!
208+
// Temporary solution, disable decoding
209+
// Issue #188
210+
var line = text[textPointer].substring(1);
206211
} catch (ex) {
207212
// Malformed URI sequence.
208213
throw new Error('Illegal escape in patch_fromText: ' + line);

src/client/formatters/baseFormatter.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,5 @@ export abstract class BaseFormatter {
6262
}
6363

6464
this.outputChannel.appendLine(`\n${customError}\n${error + ""}`);
65-
this.outputChannel.show();
6665
}
6766
}

src/client/linters/baseLinter.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,5 @@ export abstract class BaseLinter {
134134
}
135135

136136
this.outputChannel.appendLine(`\n${customError}\n${error + ""}`);
137-
this.outputChannel.show();
138137
}
139138
}

0 commit comments

Comments
 (0)