* See docblocks on DelegateLauncher for more information on * how this works.
(
delegate: DelegateLauncherFactory,
command?: string,
workspaceFolder?: vscode.WorkspaceFolder,
defaultConfig?: Partial<ITerminalLaunchConfiguration>,
)
| 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) => |
no test coverage detected