mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-29 04:59:51 +00:00
Revert: all refactor commits migrating from Bun.file() to Filesystem module
This commit is contained in:
parent
3a07dd8d96
commit
568eccb4c6
25 changed files with 216 additions and 294 deletions
|
|
@ -147,7 +147,8 @@ export namespace LSPClient {
|
|||
notify: {
|
||||
async open(input: { path: string }) {
|
||||
input.path = path.isAbsolute(input.path) ? input.path : path.resolve(Instance.directory, input.path)
|
||||
const text = await Filesystem.readText(input.path)
|
||||
const file = Bun.file(input.path)
|
||||
const text = await file.text()
|
||||
const extension = path.extname(input.path)
|
||||
const languageId = LANGUAGE_EXTENSIONS[extension] ?? "plaintext"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue