|
@@ -20,7 +20,7 @@ const registerTerminalAction = (
|
|
|
) => {
|
|
) => {
|
|
|
context.subscriptions.push(
|
|
context.subscriptions.push(
|
|
|
vscode.commands.registerCommand(getTerminalCommand(command), async (args: any) => {
|
|
vscode.commands.registerCommand(getTerminalCommand(command), async (args: any) => {
|
|
|
- let content = args.selection
|
|
|
|
|
|
|
+ let content = args?.selection
|
|
|
|
|
|
|
|
if (!content || content === "") {
|
|
if (!content || content === "") {
|
|
|
content = await Terminal.getTerminalContents(promptType === "TERMINAL_ADD_TO_CONTEXT" ? -1 : 1)
|
|
content = await Terminal.getTerminalContents(promptType === "TERMINAL_ADD_TO_CONTEXT" ? -1 : 1)
|