From 25ec6a3b7db240e533c553efc7471da977d24140 Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Tue, 22 Apr 2025 16:53:11 +0200 Subject: [PATCH] Ignore `.db` files by default (#17711) This PR ignores `.db` files by default. We already ignored `.sqlite` and `.sqlite3` files but we didn't ignore `.db` files which is a common extension for database files as well. Due to the binary nature of `.db` files, scanning these could result in hard to debug errors such as: ![image](https://github.com/user-attachments/assets/52f779ac-cd5f-4f37-9615-2163bf852999) --- CHANGELOG.md | 1 + crates/oxide/src/scanner/fixtures/binary-extensions.txt | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 37578fd72..12cc32392 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Don't scan `.geojson` files for classes by default ([#17700](https://github.com/tailwindlabs/tailwindcss/pull/17700)) +- Don't scan `.db` files for classes by default ([#17711](https://github.com/tailwindlabs/tailwindcss/pull/17711)) - Hide default shadow suggestions when missing theme keys ([#17743](https://github.com/tailwindlabs/tailwindcss/pull/17743)) - Replace `_` with `.` in theme suggestions for `@utility` if surrounded by digits ([#17743](https://github.com/tailwindlabs/tailwindcss/pull/17743)) diff --git a/crates/oxide/src/scanner/fixtures/binary-extensions.txt b/crates/oxide/src/scanner/fixtures/binary-extensions.txt index 91d8c77cc..2b20e0f45 100644 --- a/crates/oxide/src/scanner/fixtures/binary-extensions.txt +++ b/crates/oxide/src/scanner/fixtures/binary-extensions.txt @@ -37,6 +37,7 @@ cpio cr2 cur dat +db dcm deb dex @@ -200,8 +201,6 @@ snap snk so sqlite -sqlite -sqlite3 sqlite3 stl storedata