From 305a39ad03fd089bc53821dc1e9bab1795d00644 Mon Sep 17 00:00:00 2001 From: Gert-Jan Peeters Date: Wed, 25 Oct 2023 17:38:19 +0200 Subject: [PATCH] Fix go to definition in NeoVim (#59) --- server/src/definitions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/definitions.ts b/server/src/definitions.ts index 6508ee9..49d68c8 100644 --- a/server/src/definitions.ts +++ b/server/src/definitions.ts @@ -54,7 +54,7 @@ export class Definitions { } const controllers = this.controllers.filter((controller) => identifiers.includes(controller.identifier)) - const locations = controllers.map((controller) => Location.create(controller.path, Range.create(0, 0, 0, 0))) + const locations = controllers.map((controller) => Location.create(`file://${controller.path}`, Range.create(0, 0, 0, 0))) if (controllers.length === 1) return locations[0]