(selection: EditorSelection | undefined)
| 374 | } |
| 375 | |
| 376 | export function editorSelectionKey(selection: EditorSelection | undefined) { |
| 377 | if (!selection) return "" |
| 378 | return [ |
| 379 | selection.filePath, |
| 380 | ...selection.ranges.flatMap((range) => [ |
| 381 | range.selection.start.line, |
| 382 | range.selection.start.character, |
| 383 | range.selection.end.line, |
| 384 | range.selection.end.character, |
| 385 | range.text, |
| 386 | ]), |
| 387 | ].join("\0") |
| 388 | } |
| 389 | |
| 390 | function openEditorSocket(connection: EditorConnection, WebSocketImpl: typeof WebSocket) { |
| 391 | if (!connection.authToken) return new WebSocketImpl(connection.url) |
no outgoing calls
no test coverage detected