update foundDefinition callback to match response format

master
Brad Cornes 2019-01-06 14:37:42 +00:00
parent 318debc41f
commit 984bb5641c
1 changed files with 2 additions and 2 deletions

View File

@ -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