Ignore Windows binaries in tools/ (#458)
Co-authored-by: root <root@WIN11.localdomain>
This commit is contained in:
@@ -169,7 +169,7 @@ function checkDeprecatedExtensionDirs(baseDir: string, label: string): string[]
|
|||||||
// Check if tools/ contains anything other than fd/rg (which are auto-extracted binaries)
|
// Check if tools/ contains anything other than fd/rg (which are auto-extracted binaries)
|
||||||
try {
|
try {
|
||||||
const entries = readdirSync(toolsDir);
|
const entries = readdirSync(toolsDir);
|
||||||
const customTools = entries.filter((e) => e !== "fd" && e !== "rg");
|
const customTools = entries.filter((e) => e !== "fd" && e !== "rg" && e !== "fd.exe" && e !== "rg.exe");
|
||||||
if (customTools.length > 0) {
|
if (customTools.length > 0) {
|
||||||
warnings.push(
|
warnings.push(
|
||||||
`${label} tools/ directory contains custom tools. Custom tools have been merged into extensions.`,
|
`${label} tools/ directory contains custom tools. Custom tools have been merged into extensions.`,
|
||||||
|
|||||||
Reference in New Issue
Block a user