File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments