(scheme: string)
| 41 | } |
| 42 | |
| 43 | public getAdapter(scheme: string): Adapter { |
| 44 | if (!this.adaptersMap.has(scheme)) { |
| 45 | throw new Error(`Adapter with scheme '${scheme}' can not found.`); |
| 46 | } |
| 47 | return this.adaptersMap.get(scheme)!; |
| 48 | } |
| 49 | |
| 50 | public getCurrentScheme(): string { |
| 51 | return vscode.workspace.workspaceFolders?.[0]?.uri?.scheme || 'empty'; |
no outgoing calls
no test coverage detected