()
| 32 | }; |
| 33 | |
| 34 | export function getCompiledLSPBinaryPath(): string | null { |
| 35 | const { arch, platform } = process; |
| 36 | const goarch = { arm64: 'arm64', x64: 'amd64' }[arch]; |
| 37 | const goos = { linux: 'linux', darwin: 'darwin', win32: 'windows' }[ |
| 38 | platform.toString() |
| 39 | ]; |
| 40 | if (!goarch && !goos) { |
| 41 | return null; |
| 42 | } |
| 43 | return path.join( |
| 44 | __filename, |
| 45 | '..', |
| 46 | '..', |
| 47 | 'sqls_bin', |
| 48 | `sqls_${goarch}_${goos}` |
| 49 | ); |
| 50 | } |
| 51 | |
| 52 | export class SqlLspClient { |
| 53 | private client: LanguageClient | null; |
no outgoing calls
no test coverage detected