(_, { command })
| 146 | if (req.socket.localPort && req.socket.localPort !== port) { |
| 147 | port = req.socket.localPort |
| 148 | } |
| 149 | next() |
| 150 | }) |
| 151 | if (server.config.server.port) { |
| 152 | port = server.config.server.port |
| 153 | } |
| 154 | |
| 155 | server.httpServer?.on('listening', () => { |
| 156 | port = server.config.server.port |
| 157 | }) |
| 158 | |
| 159 | const editor = args?.editor ?? DEFAULT_EDITOR_CONFIG |
| 160 | const openInEditor: EditorConfig['open'] = async ( |
| 161 | path, |
| 162 | lineNum, |
| 163 | columnNum, |
| 164 | ) => { |
| 165 | if (!path) { |
| 166 | return |
| 167 | } |
| 168 | await editor.open(path, lineNum, columnNum) |
| 169 | } |
| 170 | |
| 171 | const originalConsole = Object.fromEntries( |
| 172 | consolePipingLevels.map((l) => [l, console[l].bind(console)]), |
| 173 | ) as Partial<Record<ConsoleLevel, typeof console.log>> |
nothing calls this directly
no outgoing calls
no test coverage detected