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 up
Feature Request
In order to highlight the entire path ('./a/b/c) we need additional information on the TS Server definition response that tells us the source range of the symbol. On possible way this could be implemented:
interface Definition extends FileSpan {
source?: FileSpan;
}
interface DefinitionResponse extends Response {
body?: Definition[];
}
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 way
From microsoft/vscode#10037
Problem
For code such as:
VS Code allows you to hover over the path and hold
cmdto look up it's definition without pressing f12. This currently is shown as:Note that only the
bpart 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 Serverdefinitionresponse that tells us the source range of the symbol. On possible way this could be implemented:This will repeat the same
sourceacross all returned definitions. Not sure if there is a better way to add the source information to the API in a backwards compatible way