mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 17:19:01 +01:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user