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

Function liveShareRequest

src/liveShare/shareCommands.ts:147–161  ·  view source on GitHub ↗
(name: string, ...rest: unknown[])

Source from the content-addressed store, hash-verified

145}
146
147export function liveShareRequest(name: string, ...rest: unknown[]): unknown {
148 if (isGuest()) {
149 if (rest !== undefined) {
150 return (service as vsls.SharedServiceProxy).request(name, rest);
151 } else {
152 return (service as vsls.SharedServiceProxy).request(name, []);
153 }
154 } else {
155 if (rest !== undefined) {
156 return (service as vsls.SharedService).notify(name, { ...rest });
157 } else {
158 return (service as vsls.SharedService).notify(name, {});
159 }
160 }
161}

Callers 10

notifyWorkspaceMethod · 0.90
notifyRequestMethod · 0.90
notifyPlotMethod · 0.90
orderGuestDetachMethod · 0.90
requestAttachMethod · 0.90
requestRunTextInTermMethod · 0.90
requestFileContentMethod · 0.90
requestHelpContentMethod · 0.90
shareCommands.tsFile · 0.85

Calls 1

isGuestFunction · 0.85

Tested by

no test coverage detected