MCPcopy Create free account
hub / github.com/cmoog/vscode-sql-notebook / getCompiledLSPBinaryPath

Function getCompiledLSPBinaryPath

src/lsp.ts:34–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32};
33
34export 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
52export class SqlLspClient {
53 private client: LanguageClient | null;

Callers 1

startLanguageServerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected