On a TypeScript project, if the TSConfig has relative files paths, Occurrence Highlight in Editor works for that file
If it has absolute paths with upper-case Drive letter, it doesn't.
Debugging
I checked TS Server logs for 2 cases:
File name in tsConfig is "./test.ts" (Occurrence Highlight works)
File name in tsConfig is "Z:/Code/Playground/test-ts-absolutePaths/test.ts" (Occurrence Highlight doesn't work)
In case 1, the documentHighlights command Request and Response are
The only difference is the Drive letter case (Z vs z)
TS Server seems to work as intended.
I can see 2 possible solutions:
When receiving response, Occurrence Highlight should use case-insensitive file path matching between request.arguments.filesToSearch[0] and response.body[0].file
When sending request, Occurrence Highlight should send the file path with an upper-case Drive letter (This is not solving other cases where TsConfig has the case mismatch in filename)
Issue:
On a TypeScript project, if the TSConfig has relative files paths, Occurrence Highlight in Editor works for that file If it has absolute paths with upper-case Drive letter, it doesn't.
Debugging
I checked TS Server logs for 2 cases:
In case 1, the documentHighlights command Request and Response are
In case 2
The only difference is the Drive letter case (Z vs z) TS Server seems to work as intended. I can see 2 possible solutions:
Project folder is zipped and attached test-ts-absolutePaths.zip