(value: string)
| 170 | }; |
| 171 | |
| 172 | const isSpecialEditorFileName = (value: string) => { |
| 173 | const normalized = value.trim().toLowerCase(); |
| 174 | if (!normalized) { |
| 175 | return false; |
| 176 | } |
| 177 | return specialEditorFileNames.some((filename) => normalized === filename || normalized.startsWith(`${filename}.`)); |
| 178 | }; |
| 179 | |
| 180 | export const resolveEditorLanguage = (path: string, extension = '', name = '') => { |
| 181 | if (isSpecialEditorFileName(name)) { |
no outgoing calls
no test coverage detected