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

Function setFocus

src/rTerminal.ts:300–305  ·  view source on GitHub ↗
(term: vscode.Terminal)

Source from the content-addressed store, hash-verified

298}
299
300function setFocus(term: vscode.Terminal) {
301 const focus: string = config().get('source.focus') || 'editor';
302 if (focus !== 'none') {
303 term.show(focus !== 'terminal');
304 }
305}
306
307export async function sendRangeToRepl(rng: vscode.Range): Promise<void> {
308 const editor = vscode.window.activeTextEditor;

Callers 1

runTextInTermFunction · 0.85

Calls 3

configFunction · 0.90
showMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected