File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -2910,10 +2910,6 @@ Actual: ${stringify(fullActual)}`);
2910
2910
}
2911
2911
2912
2912
private verifyDocumentHighlights ( expectedRanges : Range [ ] , fileNames : ReadonlyArray < string > = [ this . activeFile . fileName ] ) {
2913
- expectedRanges = ts . map ( expectedRanges , r => {
2914
- r . fileName = ts . normalizePath ( r . fileName ) ;
2915
- return r ;
2916
- } ) ;
2917
2913
fileNames = ts . map ( fileNames , ts . normalizePath ) ;
2918
2914
const documentHighlights = this . getDocumentHighlightsAtCurrentPosition ( fileNames ) || [ ] ;
2919
2915
@@ -2924,7 +2920,7 @@ Actual: ${stringify(fullActual)}`);
2924
2920
}
2925
2921
2926
2922
for ( const fileName of fileNames ) {
2927
- const expectedRangesInFile = expectedRanges . filter ( r => r . fileName === fileName ) ;
2923
+ const expectedRangesInFile = expectedRanges . filter ( r => ts . normalizePath ( r . fileName ) === fileName ) ;
2928
2924
const highlights = ts . find ( documentHighlights , dh => dh . fileName === fileName ) ;
2929
2925
const spansInFile = highlights ? highlights . highlightSpans . sort ( ( s1 , s2 ) => s1 . textSpan . start - s2 . textSpan . start ) : [ ] ;
2930
2926
You can’t perform that action at this time.
0 commit comments