MCPcopy Index your code
hub / github.com/microsoft/vscode-js-debug / runScript

Function runScript

src/ui/debugNpmScript.ts:31–42  ·  view source on GitHub ↗
(script: IScript)

Source from the content-addressed store, hash-verified

29 }
30
31 const runScript = async (script: IScript) => {
32 const workspaceFolder = vscode.workspace.getWorkspaceFolder(
33 vscode.Uri.file(script.directory),
34 );
35 runCommand(
36 vscode.commands,
37 Commands.CreateDebuggerTerminal,
38 await getRunScriptCommand(script.name, workspaceFolder),
39 workspaceFolder,
40 { cwd: script.directory },
41 );
42 };
43
44 if (scripts.length === 1) {
45 return runScript(scripts[0]);

Callers 1

debugNpmScriptFunction · 0.85

Calls 2

runCommandFunction · 0.90
getRunScriptCommandFunction · 0.90

Tested by

no test coverage detected