Remove extra file check in documentHighlights (#177879)

Fixes #177823

For document hightlights, it seems TS returns windows paths that use forward slashes. This seems wrong, but we also likely don't need the extra check for the file on our side either since we already pass in `filesToSearch`
This commit is contained in:
Matt Bierner
2023-03-21 13:09:19 -07:00
committed by GitHub
parent 4912a6ae5c
commit 07b2b6066b

View File

@@ -33,10 +33,7 @@ class TypeScriptDocumentHighlightProvider implements vscode.DocumentHighlightPro
return [];
}
return response.body
.filter(highlight => highlight.file === file)
.map(convertDocumentHighlight)
.flat();
return response.body.flatMap(convertDocumentHighlight);
}
}