MCPcopy Create free account
hub / github.com/Fibi66/FeiControl / isEditable

Function isEditable

src/components/FileBrowser.tsx:88–92  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

86}
87
88function isEditable(name: string): boolean {
89 const ext = name.split(".").pop()?.toLowerCase() || "";
90 const editableExts = ["ts", "tsx", "js", "jsx", "json", "md", "mdx", "txt", "py", "sh", "yaml", "yml", "toml", "css", "html", "sql", "log", "env"];
91 return editableExts.includes(ext) || !name.includes(".");
92}
93
94// ─── Monaco Editor Modal ───────────────────────────────────────────────────────
95interface EditorModalProps {

Callers 2

handleItemClickFunction · 0.85
FileBrowserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected