File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 3
3
"description" : " The official VSCode plugin for ReScript." ,
4
4
"author" : " chenglou" ,
5
5
"license" : " MIT" ,
6
- "version" : " 0.0.7 " ,
6
+ "version" : " 0.0.8 " ,
7
7
"repository" : {
8
8
"type" : " git" ,
9
9
"url" : " https://github.com/rescript-lang/rescript-vscode"
Original file line number Diff line number Diff line change @@ -175,9 +175,7 @@ FAILED: src/test.cmj src/test.cmi
175
175
let ret : { [ key : string ] : t . Diagnostic [ ] } = { }
176
176
res . forEach ( diagnosisLines => {
177
177
let [ fileAndLocation , ...diagnosisMessage ] = diagnosisLines
178
- let locationSeparatorV840 = fileAndLocation . lastIndexOf ( ':' )
179
- let locationSeparatorV830 = fileAndLocation . lastIndexOf ( ' ' )
180
- let locationSeparator = locationSeparatorV840 >= 0 ? locationSeparatorV840 : locationSeparatorV830
178
+ let locationSeparator = fileAndLocation . lastIndexOf ( ' ' )
181
179
let file = fileAndLocation . substring ( 2 , locationSeparator )
182
180
let location = fileAndLocation . substring ( locationSeparator )
183
181
if ( ret [ file ] == null ) {
You can’t perform that action at this time.
0 commit comments