lean4-code-actions
Version:
Refactorings and snippets for Lean 4
14 lines (7 loc) • 435 B
text/typescript
import { GlobPattern } from 'vscode'
export const leanFileExtensionShort = 'lean'
export const leanFileExtensionLong = '.' + leanFileExtensionShort
export const excludedDirs = ['build', 'lake-packages', '.lake']
export const exclude: GlobPattern = `{${excludedDirs.join(',')}}`
export const isHidden = (filename: string) => filename.startsWith('.')
export const isExcluded = (filename: string) => excludedDirs.includes(filename)