MCPcopy
hub / github.com/APKLab/APKLab / resolveServerJar

Function resolveServerJar

src/tools/smali-lsp.ts:47–54  ·  view source on GitHub ↗

* Resolve the path to smali-lsp server JAR from user config.

()

Source from the content-addressed store, hash-verified

45 * Resolve the path to smali-lsp server JAR from user config.
46 */
47function resolveServerJar(): string | null {
48 const config = workspace.getConfiguration(extensionConfigName);
49 const jarPath = config.get<string>("smaliLspPath");
50 if (jarPath && fs.existsSync(jarPath)) {
51 return jarPath;
52 }
53 return null;
54}
55
56export namespace smaliLsp {
57 /**

Callers 1

startServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected