* Resolve the path to smali-lsp server JAR from user config.
()
| 45 | * Resolve the path to smali-lsp server JAR from user config. |
| 46 | */ |
| 47 | function 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 | |
| 56 | export namespace smaliLsp { |
| 57 | /** |