Merge branch 'preview' of https://github.com/continuedev/continue into preview

This commit is contained in:
Nate Sesti 2024-01-15 12:38:19 -08:00
commit ef2e37f797

View file

@ -57,7 +57,11 @@ 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);