From f69d322c4aebc9d1354739f33c790833dd2cc937 Mon Sep 17 00:00:00 2001 From: Ben King <9087625+benfdking@users.noreply.github.com> Date: Tue, 1 Jul 2025 10:29:51 +0100 Subject: [PATCH] fix: fix windows linage graph --- vscode/react/src/pages/lineage.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/vscode/react/src/pages/lineage.tsx b/vscode/react/src/pages/lineage.tsx index 546e1ad4bf..77f66fa85b 100644 --- a/vscode/react/src/pages/lineage.tsx +++ b/vscode/react/src/pages/lineage.tsx @@ -99,8 +99,10 @@ function Lineage() { } // @ts-ignore const fileUri: string = activeFile.fileUri - const filePath = URI.parse(fileUri).fsPath - const model = models.find((m: Model) => m.full_path === filePath) + const filePath = URI.file(fileUri).path + const model = models.find( + (m: Model) => URI.file(m.full_path).path === filePath, + ) if (model) { return model.name } @@ -129,9 +131,9 @@ function Lineage() { React.useEffect(() => { const handleChangeFocusedFile = (fileUri: { fileUri: string }) => { - const full_path = URI.parse(fileUri.fileUri).fsPath + const full_path = URI.parse(fileUri.fileUri).path const model = Object.values(modelsRecord).find( - m => m.full_path === full_path, + m => URI.file(m.full_path).path === full_path, ) if (model) { setSelectedModel(model.name)