Merge branch 'preview' of https://github.com/continuedev/continue into preview
This commit is contained in:
commit
ef2e37f797
1 changed files with 5 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue