From 95c41f0010bff21c07fe2fb1aea172502884fcae Mon Sep 17 00:00:00 2001 From: Nate Date: Mon, 15 Jan 2024 12:37:15 -0800 Subject: [PATCH] fix windows file context provider bug --- gui/src/components/mainInput/resolveInput.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/src/components/mainInput/resolveInput.ts b/gui/src/components/mainInput/resolveInput.ts index 56e529bff..eecb2be25 100644 --- a/gui/src/components/mainInput/resolveInput.ts +++ b/gui/src/components/mainInput/resolveInput.ts @@ -57,7 +57,7 @@ async function resolveEditorContent( let contextItems: ContextItemWithId[] = []; const ide = new ExtensionIde(); for (const item of contextItemAttrs) { - if (item.id.startsWith("/") || item.id.startsWith("\\")) { + if (item.id.startsWith("/") || item.id.startsWith("\\") || (item.id.length > 2 && item.id[1] === ":" && item.id[2] === "\\")) { // This is a quick way to resolve @file references const basename = getBasename(item.id); const content = await ide.readFile(item.id);