MCPcopy Index your code
hub / github.com/REditorSupport/vscode-R / openUrl

Method openUrl

src/plotViewer/index.ts:123–134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 {

Callers 1

handleCommandMethod · 0.95

Calls 1

showViewerMethod · 0.95

Tested by

no test coverage detected