MCPcopy Create free account
hub / github.com/facebook/pyrefly / runAtCursor

Function runAtCursor

lsp/src/codeLens.ts:175–187  ·  view source on GitHub ↗
(
  uri: vscode.Uri,
  position: CodeLensPosition,
)

Source from the content-addressed store, hash-verified

173}
174
175async function runAtCursor(
176 uri: vscode.Uri,
177 position: CodeLensPosition,
178): Promise<void> {
179 const document = await vscode.workspace.openTextDocument(uri);
180 const editor = await vscode.window.showTextDocument(document, {
181 preview: false,
182 });
183 const cursor = new vscode.Position(position.line, position.character);
184 editor.selection = new vscode.Selection(cursor, cursor);
185 editor.revealRange(new vscode.Range(cursor, cursor));
186 await vscode.commands.executeCommand('testing.runAtCursor');
187}
188
189async function executeProcessTask(
190 uri: vscode.Uri,

Callers 1

runTestAtLocationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected