From 984bb5641c120a75d1eeb61fe8cb0b190fcb95ec Mon Sep 17 00:00:00 2001 From: Brad Cornes Date: Sun, 6 Jan 2019 14:37:42 +0000 Subject: [PATCH] update foundDefinition callback to match response format --- src/extension.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extension.ts b/src/extension.ts index e9c2999..2dd723a 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -140,8 +140,8 @@ export async function activate(context: ExtensionContext) { (configPath, pos) => { Workspace.openTextDocument(configPath).then((doc: TextDocument) => { Window.showTextDocument(doc).then((editor: TextEditor) => { - let start = new Position(pos[0], pos[1]) - let end = new Position(pos[2], pos[3]) + let start = new Position(pos.start.line, pos.start.character) + let end = new Position(pos.end.line, pos.end.character) editor.revealRange( new Range(start, end), TextEditorRevealType.InCenter