(file, modeInfo)
| 229 | } |
| 230 | |
| 231 | function maybeRecommendLanguageModeExtension(file, modeInfo) { |
| 232 | if (appSettings.value.recommendExtensions === false) return; |
| 233 | if (!isInitialPluginLoadComplete()) return; |
| 234 | if (modeInfo?.name !== "text" || modeInfo.supportsFile(file.filename)) return; |
| 235 | |
| 236 | void import("./languageModeRecommendations").then( |
| 237 | ({ default: recommend }) => { |
| 238 | recommend(file, modeInfo); |
| 239 | }, |
| 240 | (error) => { |
| 241 | console.warn("Failed to load language mode recommendations.", error); |
| 242 | }, |
| 243 | ); |
| 244 | } |
| 245 | |
| 246 | /** |
| 247 | * @typedef {'run'|'save'|'change'|'focus'|'blur'|'close'|'rename'|'load'|'loadError'|'loadStart'|'loadEnd'|'changeMode'|'changeEncoding'|'changeReadOnly'} FileEvents |
no test coverage detected