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

Function runChunksInTerm

src/rTerminal.ts:251–263  ·  view source on GitHub ↗
(chunks: vscode.Range[])

Source from the content-addressed store, hash-verified

249}
250
251export async function runChunksInTerm(chunks: vscode.Range[]): Promise<void> {
252 const textEditor = vscode.window.activeTextEditor;
253 if (!textEditor) {
254 return;
255 }
256 const text = chunks
257 .map((chunk) => textEditor.document.getText(chunk).trim())
258 .filter((chunk) => chunk.length > 0)
259 .join('\n');
260 if (text.length > 0) {
261 return runTextInTerm(text);
262 }
263}
264
265export async function runTextInTerm(text: string, execute: boolean = true): Promise<void> {
266 if (isGuestSession) {

Callers 8

runCurrentChunkFunction · 0.90
runCurrentChunkAndMoveFunction · 0.90
runPreviousChunkFunction · 0.90
runNextChunkFunction · 0.90
runAboveChunksFunction · 0.90
runBelowChunksFunction · 0.90
runCurrentAndBelowChunksFunction · 0.90
runAllChunksFunction · 0.90

Calls 1

runTextInTermFunction · 0.85

Tested by

no test coverage detected