MCPcopy Create free account
hub / github.com/REditorSupport/vscode-R / shareBrowser

Function shareBrowser

src/liveShare/shareSession.ts:257–264  ·  view source on GitHub ↗
(url: string, name: string, force: boolean = false)

Source from the content-addressed store, hash-verified

255// Automates sharing browser sessions through the
256// shareServer method
257export async function shareBrowser(url: string, name: string, force: boolean = false): Promise<void> {
258 if (autoShareBrowser || force) {
259 const _url = new URL(url);
260 const disposable = await shareServer(_url, name);
261 console.log(`[HostService] shared ${name} at ${url}`);
262 browserDisposables.push({ Disposable: disposable, url, name });
263 }
264}
265
266export function closeBrowser(url: string): void {
267 browserDisposables.find(

Callers 1

showBrowserFunction · 0.90

Calls 1

shareServerFunction · 0.85

Tested by

no test coverage detected