mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-28 20:49:55 +00:00
Remove use of Bun.file (#14215)
This commit is contained in:
parent
0fcba68d4c
commit
02a9495063
44 changed files with 634 additions and 473 deletions
|
|
@ -147,8 +147,7 @@ export namespace LSPClient {
|
|||
notify: {
|
||||
async open(input: { path: string }) {
|
||||
input.path = path.isAbsolute(input.path) ? input.path : path.resolve(Instance.directory, input.path)
|
||||
const file = Bun.file(input.path)
|
||||
const text = await file.text()
|
||||
const text = await Filesystem.readText(input.path)
|
||||
const extension = path.extname(input.path)
|
||||
const languageId = LANGUAGE_EXTENSIONS[extension] ?? "plaintext"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue