()
| 1 | import serverRegistry from "./serverRegistry"; |
| 2 | |
| 3 | function getCurrentFileLanguage() { |
| 4 | try { |
| 5 | const file = window.editorManager?.activeFile; |
| 6 | if (!file || file.type !== "editor") return null; |
| 7 | return file.currentMode?.toLowerCase() || null; |
| 8 | } catch { |
| 9 | return null; |
| 10 | } |
| 11 | } |
| 12 | |
| 13 | function getServersForCurrentFile() { |
| 14 | const language = getCurrentFileLanguage(); |
no outgoing calls
no test coverage detected