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

Method toggle

src/liveShare/shareTree.ts:143–147  ·  view source on GitHub ↗
(treeProvider: LiveShareTreeProvider)

Source from the content-addressed store, hash-verified

141
142class PortNode extends ToggleNode {
143 toggle(treeProvider: LiveShareTreeProvider): void {
144 autoShareBrowser = !autoShareBrowser;
145 this.description = autoShareBrowser === true ? 'Enabled' : 'Disabled';
146 treeProvider.refresh();
147 }
148
149 public label: string = 'Auto share ports';
150 public tooltip: string = 'Whether opened R browsers should be shared with guests';

Callers 1

initLiveShareFunction · 0.45

Calls 1

refreshMethod · 0.65

Tested by

no test coverage detected