()
| 31 | } |
| 32 | |
| 33 | export function getConnectionModeSetting(): ConnectionMode { |
| 34 | const config = vscode.workspace.getConfiguration("mux"); |
| 35 | const value = config.get<unknown>("connectionMode"); |
| 36 | |
| 37 | if (value === "auto" || value === "server-only" || value === "file-only") { |
| 38 | return value; |
| 39 | } |
| 40 | |
| 41 | return "auto"; |
| 42 | } |
| 43 | |
| 44 | export async function discoverServerConfig( |
| 45 | context: vscode.ExtensionContext |
no test coverage detected