We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2b4eb3 commit 386d0aaCopy full SHA for 386d0aa
apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/file-viewer.tsx
@@ -204,7 +204,13 @@ interface FileViewerProps {
204
205
function isCodeFile(file: { type: string; name: string }): boolean {
206
const ext = getFileExtension(file.name)
207
- return SUPPORTED_CODE_EXTENSIONS.includes(ext as (typeof SUPPORTED_CODE_EXTENSIONS)[number])
+ return (
208
+ SUPPORTED_CODE_EXTENSIONS.includes(ext as (typeof SUPPORTED_CODE_EXTENSIONS)[number]) ||
209
+ ext === 'html' ||
210
+ ext === 'htm' ||
211
+ ext === 'xml' ||
212
+ ext === 'svg'
213
+ )
214
}
215
216
function resolveCodeEditorLanguage(file: { type: string; name: string }): CodeEditorLanguage {
0 commit comments