MCPcopy Create free account
hub / github.com/Snapchat/Valdi / launchTerminal

Function launchTerminal

valdi/vscode_debugger/src/ui/debugTerminalUI.ts:139–157  ·  view source on GitHub ↗

* See docblocks on DelegateLauncher for more information on * how this works.

(
    delegate: DelegateLauncherFactory,
    command?: string,
    workspaceFolder?: vscode.WorkspaceFolder,
    defaultConfig?: Partial<ITerminalLaunchConfiguration>,
  )

Source from the content-addressed store, hash-verified

137 * how this works.
138 */
139 function launchTerminal(
140 delegate: DelegateLauncherFactory,
141 command?: string,
142 workspaceFolder?: vscode.WorkspaceFolder,
143 defaultConfig?: Partial<ITerminalLaunchConfiguration>,
144 ) {
145 const launcher = new TerminalNodeLauncher(new NodeBinaryProvider(), new ProxyLogger(), fs);
146 launcher.onTerminalCreated(terminal => {
147 linkHandler.enableHandlingInTerminal(terminal);
148 });
149
150 launchVirtualTerminalParent(delegate, launcher, {
151 command,
152 ...defaultConfig,
153 __workspaceFolder: workspaceFolder?.uri.fsPath,
154 });
155
156 return Promise.resolve();
157 }
158
159 context.subscriptions.push(
160 registerCommand(vscode.commands, Commands.CreateDebuggerTerminal, (command, folder, config) =>

Callers 1

registerDebugTerminalUIFunction · 0.85

Calls 3

resolveMethod · 0.65

Tested by

no test coverage detected