Procházet zdrojové kódy

fix: cargo fmt actually does not support formatting single files

Aiden Cline před 8 měsíci
rodič
revize
5b86724632
1 změnil soubory, kde provedl 11 přidání a 10 odebrání
  1. 11 10
      packages/opencode/src/format/formatter.ts

+ 11 - 10
packages/opencode/src/format/formatter.ts

@@ -347,13 +347,14 @@ export const rustfmt: Info = {
   },
 }
 
-export const cargofmt: Info = {
-  name: "cargofmt",
-  command: ["cargo", "fmt", "--", "$FILE"],
-  extensions: [".rs"],
-  async enabled() {
-    if (!Bun.which("cargo")) return false
-    const found = await Filesystem.findUp("Cargo.toml", Instance.directory, Instance.worktree)
-    return found.length > 0
-  },
-}
+// cargo fmt actually does not support formatting single files
+// export const cargofmt: Info = {
+//   name: "cargofmt",
+//   command: ["cargo", "fmt", "--", "$FILE"],
+//   extensions: [".rs"],
+//   async enabled() {
+//     if (!Bun.which("cargo")) return false
+//     const found = await Filesystem.findUp("Cargo.toml", Instance.directory, Instance.worktree)
+//     return found.length > 0
+//   },
+// }