Skip to content

Commit 984bb56

Browse files
committed
update foundDefinition callback to match response format
1 parent 318debc commit 984bb56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/extension.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ export async function activate(context: ExtensionContext) {
140140
(configPath, pos) => {
141141
Workspace.openTextDocument(configPath).then((doc: TextDocument) => {
142142
Window.showTextDocument(doc).then((editor: TextEditor) => {
143-
let start = new Position(pos[0], pos[1])
144-
let end = new Position(pos[2], pos[3])
143+
let start = new Position(pos.start.line, pos.start.character)
144+
let end = new Position(pos.end.line, pos.end.character)
145145
editor.revealRange(
146146
new Range(start, end),
147147
TextEditorRevealType.InCenter

0 commit comments

Comments
 (0)