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

Method resolveTask

src/tasks.ts:160–171  ·  view source on GitHub ↗
(task: vscode.Task)

Source from the content-addressed store, hash-verified

158 }
159
160 public async resolveTask(task: vscode.Task): Promise<vscode.Task> {
161 const taskInfo: RTaskInfo = {
162 definition: <RTaskDefinition>task.definition,
163 group: task.group,
164 name: task.name
165 };
166 const rPath = await getRpath(false);
167 if (!rPath) {
168 throw 'R path not set.';
169 }
170 return asRTask(rPath, vscode.TaskScope.Workspace, taskInfo);
171 }
172}

Callers

nothing calls this directly

Calls 2

getRpathFunction · 0.90
asRTaskFunction · 0.85

Tested by

no test coverage detected