This PR adds the implementation for `definitionAndBoundSpan` because it's now preferred over `definition`. vscode would send this new request for `Go to definition`. As part of this PR the implementation for `definition` is refactored and simplified. Goldens for both methods are checked in. PR Close #30125
33 lines
529 B
JSON
33 lines
529 B
JSON
{
|
|
"seq": 0,
|
|
"type": "response",
|
|
"command": "definitionAndBoundSpan",
|
|
"request_seq": 2,
|
|
"success": true,
|
|
"body": {
|
|
"definitions": [
|
|
{
|
|
"file": "${PWD}/project/app/app.component.ts",
|
|
"start": {
|
|
"line": 7,
|
|
"offset": 30
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"offset": 47
|
|
}
|
|
}
|
|
],
|
|
"textSpan": {
|
|
"start": {
|
|
"line": 7,
|
|
"offset": 30
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"offset": 47
|
|
}
|
|
}
|
|
}
|
|
}
|