refactor(core): drop filesystem entry mime

This commit is contained in:
Dax Raad
2026-06-23 21:49:01 -04:00
parent 53076999c5
commit e8610d821c
8 changed files with 16 additions and 39 deletions

View File

@@ -305,11 +305,7 @@ export function Autocomplete(props: {
startLine: input.lineStart,
endLine: input.lineEnd > input.lineStart ? input.lineEnd : undefined,
}
const { filename, part } = createFilePart(
{ path: item, type: "file", mime: "text/plain" },
input.filePath,
lineRange,
)
const { filename, part } = createFilePart({ path: item, type: "file" }, input.filePath, lineRange)
const index = store.visible === "@" ? store.index : props.input().cursorOffset
setStore("visible", false)