From dd879a3baa43614640cd91b1963ff36cece81432 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mickae=CC=88l=20Menu?= Date: Sat, 3 Apr 2021 12:54:21 +0200 Subject: [PATCH] Fix JSON key for LocationLink.originSelectionRange --- protocol_3_16/base-structures.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocol_3_16/base-structures.go b/protocol_3_16/base-structures.go index e65fc26..9c0700a 100644 --- a/protocol_3_16/base-structures.go +++ b/protocol_3_16/base-structures.go @@ -111,7 +111,7 @@ type LocationLink struct { * Used as the underlined span for mouse interaction. Defaults to the word * range at the mouse position. */ - OriginSelectionRange *Range `json:"uri,omitempty"` + OriginSelectionRange *Range `json:"originSelectionRange,omitempty"` /** * The target resource identifier of this link. @@ -131,7 +131,7 @@ type LocationLink struct { * followed, e.g the name of a function. Must be contained by the the * `targetRange`. See also `DocumentSymbol#range` */ - TargetSelectionRange Range `json:"targetSelectionRage"` + TargetSelectionRange Range `json:"targetSelectionRange"` } // https://microsoft.github.io/language-server-protocol/specification#diagnostic