File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ export class DefaultDefinitionService implements DefinitionService {
133133 }
134134 // TODO (francesco.tumanischvili@smartbear.com): replace with fragment deref
135135 const refTarget = jsonPointerEvaluate < Element > ( api , URIFragmentIdentifier . from ( ref ) ) ;
136- const nodeSourceMap = getSourceMap ( refTarget ) ;
136+ const nodeSourceMap = getSourceMap ( refTarget ?. parent ?? refTarget ) ;
137137 const range = Range . create (
138138 textDocument . positionAt ( nodeSourceMap . offset ) ,
139139 textDocument . positionAt ( nodeSourceMap . endOffset || nodeSourceMap . offset + 1 ) ,
Original file line number Diff line number Diff line change @@ -428,7 +428,7 @@ const defTestInput = [
428428 line : 54 ,
429429 } ,
430430 start : {
431- character : 13 ,
431+ character : 6 ,
432432 line : 52 ,
433433 } ,
434434 } ,
You can’t perform that action at this time.
0 commit comments