refactor(core): drop filesystem entry mime
This commit is contained in:
parent
53076999c5
commit
e8610d821c
8 changed files with 16 additions and 39 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue