From a1b6172d05cc5ca611749a972536141606af2f6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=A4der?= Date: Thu, 8 Feb 2024 16:08:32 +0100 Subject: [PATCH] Adjust to changed definition of UriComponents MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Mäder --- packages/plugin-ext/src/plugin/type-converters.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/plugin-ext/src/plugin/type-converters.ts b/packages/plugin-ext/src/plugin/type-converters.ts index ba0d8140c3435..1921c1f3c6089 100644 --- a/packages/plugin-ext/src/plugin/type-converters.ts +++ b/packages/plugin-ext/src/plugin/type-converters.ts @@ -747,9 +747,10 @@ export function isModelRange(arg: unknown): arg is model.Range { export function isUriComponents(arg: unknown): arg is UriComponents { return isObject(arg) && typeof arg.scheme === 'string' && + (arg['$mid'] === 1 || ( typeof arg.path === 'string' && typeof arg.query === 'string' && - typeof arg.fragment === 'string'; + typeof arg.fragment === 'string')); } export function isModelCallHierarchyItem(arg: unknown): arg is model.CallHierarchyItem {