Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.
Swift cache-cleanercleanerclideveloper-toolsdisk-cleanupdisk-spaceduplicate-finderhomebrewliquid-glassmac-cleanermacosmacos-appmacos-golden-gatemacos-tahoemacos-tweaksswiftswiftuiterminal-themesuninstalluninstaller
Offer what Elixir's other language servers keep in a project
Țugui Dragoșdef1ebf5eed8
diff --git a/Packages/PeelCore/Sources/PeelCore/Developer/ProjectArtifacts.swift b/Packages/PeelCore/Sources/PeelCore/Developer/ProjectArtifacts.swiftindex a09d9ad0..083a529b 100644--- a/Packages/PeelCore/Sources/PeelCore/Developer/ProjectArtifacts.swift+++ b/Packages/PeelCore/Sources/PeelCore/Developer/ProjectArtifacts.swift@@ -502,6 +502,14 @@ public enum ProjectArtifacts {name: ".elixir_ls", markers: ["mix.exs"], tool: "ElixirLS", isGeneric: false,source: "https://github.com/elixir-lsp/elixir-ls/blob/68df44b681ee0dbef91b8008b0354003a9a451fa/README.md"),+ Definition(+ name: ".elixir-tools", markers: ["mix.exs"], tool: "Next LS", isGeneric: false,+ source: "https://github.com/elixir-tools/next-ls/blob/eb47c98eef92ffe2b369c7c2bf56ce63b837f949/lib/next_ls/runtime/supervisor.ex#L17-L33"+ ),+ Definition(+ name: ".lexical", markers: ["mix.exs"], tool: "Lexical", isGeneric: false,+ source: "https://github.com/lexical-lsp/lexical/blob/477e8b418b27960710109d0014167bb371b0cade/projects/lexical_shared/lib/lexical/project.ex#L31"+ ),Definition(name: "lib", markers: ["shard.lock"], tool: "Shards", isGeneric: true, isEnvironment: true,source: "https://crystal-lang.org/reference/latest/man/shards/index.html"diff --git a/Packages/PeelCore/Tests/PeelCoreTests/ProjectArtifactsTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/ProjectArtifactsTests.swiftindex 0d5faa82..07ffdbc7 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/ProjectArtifactsTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/ProjectArtifactsTests.swift@@ -496,6 +496,20 @@ struct ProjectArtifactsTests {#expect(found.first?.isRecommended == true)}+ @Test func offersWhatElixirsLanguageServersKeepInAProject() async throws {+ let directory = try TemporaryDirectory()+ try directory.file("api/mix.exs", bytes: 16)+ try directory.file("api/.elixir-tools/_build/dev/lib/api/ebin/api.beam", bytes: 400_000)+ try directory.file("api/.elixir-tools/nextls.db", bytes: 400_000)+ try directory.file("api/.lexical/build/dev/lib/api/ebin/api.beam", bytes: 400_000)+ try age(directory.url, days: 60)++ let found = await ProjectArtifacts.scan(roots: [directory.url]).artifacts++ #expect(found.map { "\($0.name) \($0.tool ?? "")" }.sorted() == [".elixir-tools Next LS", ".lexical Lexical"])+ #expect(found.allSatisfy { $0.isRecommended })+ }+@Test func offersTheBundlesTheShopifyCLIBuildsAndNeverItsCertificates() async throws {let directory = try TemporaryDirectory()try directory.file("store/shopify.app.toml", bytes: 16)