()
| 121 | } |
| 122 | |
| 123 | public async openUrl(): Promise<void> { |
| 124 | const clipText = await vscode.env.clipboard.readText(); |
| 125 | const val0 = clipText.trim().split(/[\n ]/)[0]; |
| 126 | const options: vscode.InputBoxOptions = { |
| 127 | value: val0, |
| 128 | prompt: 'Please enter the httpgd url' |
| 129 | }; |
| 130 | const urlString = await vscode.window.showInputBox(options); |
| 131 | if (urlString) { |
| 132 | await this.showViewer(urlString); |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | // generic command handler |
| 137 | public handleCommand(command: CommandName, hostOrWebviewUri?: string | vscode.Uri, ...args: any[]): void { |
no test coverage detected