Add sourceRange
to TS Server definition response
#19518
Labels
VS Code Tracked
There is a VS Code equivalent to this issue
From microsoft/vscode#10037
Problem
For code such as:
VS Code allows you to hover over the path and hold
cmd
to look up it's definition without pressing f12. This currently is shown as:Note that only the
b
part of the path is being underlined as expected here. We would expect the entire path to be underlined since this is the symbol we are looking upFeature Request
In order to highlight the entire path (
'./a/b/c
) we need additional information on the TS Serverdefinition
response that tells us the source range of the symbol. On possible way this could be implemented:This will repeat the same
source
across all returned definitions. Not sure if there is a better way to add the source information to the API in a backwards compatible wayThe text was updated successfully, but these errors were encountered: