Skip to content

armgit / Ix

Public Imported from GitHub
0

Understand any codebase instantly. System intelligence for codebases, built for humans and AI.

1.3 KB
Raw Blame
// Copyright 2026 Ix Infrastructure Inc.

// Single source of truth for which file extensions ix discovers and ingests.
//
// This MUST stay in sync with core-ingestion's EXT_MAP (languages.ts): every
// extension a parser handles belongs here, or those files are never walked by
// `ix map` / `ix watch` / stale detection. It previously lived as three drifting
// copies (ingest/watch/stale) that fell behind every new parser — hence one
// shared set. Dockerfile/Makefile and other extensionless files are matched by
// name in the individual commands, not here.
export const SUPPORTED_EXTENSIONS = new Set<string>([
  ".ts", ".tsx", ".js", ".jsx", ".mjs", ".cjs",
  ".py", ".pyi", ".java", ".c", ".h", ".cpp", ".cc", ".cxx", ".hpp",
  ".cu", ".cuh",
  ".cs", ".go", ".rb", ".rs", ".php", ".kt", ".kts", ".swift",
  ".scala", ".sc", ".sbt",
  ".yaml", ".yml",
  ".dockerfile",
  ".sql",
  ".proto",
  ".json",
  ".toml",
  ".md", ".markdown",
  ".r",
  ".sas",
  ".ex", ".exs",
  ".mk", ".makefile",
  ".lua",
  ".sh", ".bash", ".zsh", ".ksh",
  ".ps1", ".psm1", ".psd1",
  ".hs", ".lhs",
  ".zig",
  ".html", ".htm", ".xhtml",
  ".xml", ".xsd", ".xsl", ".xslt", ".wsdl",
  ".csproj", ".vbproj", ".fsproj", ".props", ".targets", ".plist",
  ".tf", ".tfvars", ".hcl",
  ".css", ".scss", ".sass", ".less",
  ".tex", ".sty", ".cls", ".ltx", ".latex",
]);