MCPcopy
hub / github.com/PowerShell/vscode-powershell / launch

Method launch

src/features/PesterTests.ts:168–184  ·  view source on GitHub ↗
(
        launchConfig: vscode.DebugConfiguration,
    )

Source from the content-addressed store, hash-verified

166 }
167
168 private async launch(
169 launchConfig: vscode.DebugConfiguration,
170 ): Promise<boolean> {
171 // Create or show the interactive console
172 // TODO: #367 Check if "newSession" mode is configured
173 this.sessionManager.showDebugTerminal(true);
174
175 // Ensure the necessary script exists (for testing). The debugger will
176 // start regardless, but we also pass its success along.
177 return (
178 (await utils.checkIfFileExists(this.invokePesterStubScriptPath)) &&
179 vscode.debug.startDebugging(
180 await getChosenWorkspace(this.logger),
181 launchConfig,
182 )
183 );
184 }
185}

Callers 2

launchTestsMethod · 0.95

Calls 2

getChosenWorkspaceFunction · 0.90
showDebugTerminalMethod · 0.80

Tested by

no test coverage detected