update foundDefinition callback to match response format
parent
318debc41f
commit
984bb5641c
|
@ -140,8 +140,8 @@ export async function activate(context: ExtensionContext) {
|
||||||
(configPath, pos) => {
|
(configPath, pos) => {
|
||||||
Workspace.openTextDocument(configPath).then((doc: TextDocument) => {
|
Workspace.openTextDocument(configPath).then((doc: TextDocument) => {
|
||||||
Window.showTextDocument(doc).then((editor: TextEditor) => {
|
Window.showTextDocument(doc).then((editor: TextEditor) => {
|
||||||
let start = new Position(pos[0], pos[1])
|
let start = new Position(pos.start.line, pos.start.character)
|
||||||
let end = new Position(pos[2], pos[3])
|
let end = new Position(pos.end.line, pos.end.character)
|
||||||
editor.revealRange(
|
editor.revealRange(
|
||||||
new Range(start, end),
|
new Range(start, end),
|
||||||
TextEditorRevealType.InCenter
|
TextEditorRevealType.InCenter
|
||||||
|
|
Loading…
Reference in New Issue