| 86 | } |
| 87 | |
| 88 | createTerminal(options?: { |
| 89 | name?: string |
| 90 | shellPath?: string |
| 91 | shellArgs?: string[] |
| 92 | cwd?: string |
| 93 | env?: { [key: string]: string | null | undefined } |
| 94 | iconPath?: ThemeIcon |
| 95 | hideFromUser?: boolean |
| 96 | message?: string |
| 97 | strictEnv?: boolean |
| 98 | }): Terminal { |
| 99 | // Return a mock terminal object |
| 100 | return { |
| 101 | name: options?.name || "Terminal", |
| 102 | processId: Promise.resolve(undefined), |
| 103 | creationOptions: options || {}, |
| 104 | exitStatus: undefined, |
| 105 | state: { isInteractedWith: false }, |
| 106 | sendText: (text: string, _addNewLine?: boolean) => { |
| 107 | logs.debug(`Terminal sendText: ${text}`, "VSCode.Terminal") |
| 108 | }, |
| 109 | show: (_preserveFocus?: boolean) => { |
| 110 | logs.debug("Terminal show called", "VSCode.Terminal") |
| 111 | }, |
| 112 | hide: () => { |
| 113 | logs.debug("Terminal hide called", "VSCode.Terminal") |
| 114 | }, |
| 115 | dispose: () => { |
| 116 | logs.debug("Terminal disposed", "VSCode.Terminal") |
| 117 | }, |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | showInformationMessage(message: string, ..._items: string[]): Thenable<string | undefined> { |
| 122 | logs.info(message, "VSCode.Window") |