Interface TerminalServiceMain
interface TerminalServiceMain { $createTerminal(id,
options,
parentId?,
isPseudoTerminal?): Promise<string>; $dispose(id): void; $disposeByTerminalId(id,
waitOnExit?): void; $hide(id): void; $hideByTerminalId(id): void; $registerTerminalLinkProvider(providerId): Promise<void>; $registerTerminalObserver(id,
nrOfLinesToMatch,
outputMatcherRegex): unknown; $resize(id,
cols,
rows): void; $resizeByTerminalId(id,
cols,
rows): void; $sendText(id,
text,
shouldExecute?): void; $sendTextByTerminalId(id,
text,
addNewLine?): void; $setEnvironmentVariableCollection(persistent,
extensionIdentifier,
rootUri,
collection): void; $setName(id,
name): void; $setNameByTerminalId(id,
name): void; $show(id,
preserveFocus?): void; $showByTerminalId(id,
preserveFocus?): void; $unregisterTerminalLinkProvider(providerId): Promise<void>; $unregisterTerminalObserver(id): unknown; $write(id,
data): void; $writeByTerminalId(id,
data): void; } Methods
$createTerminal
- $createTerminal(id, options, parentId?, isPseudoTerminal?): Promise<string>
Parameters
- id: string
- options: TerminalOptions
Optional
parentId: stringOptional
isPseudoTerminal: boolean
Returns Promise<string>
$dispose
- $dispose(id): void
Returns void
$disposeByTerminalId
- $disposeByTerminalId(id, waitOnExit?): void
Parameters
- id: number
Optional
waitOnExit: string | boolean
Returns void
$hide
- $hide(id): void
Returns void
$hideByTerminalId
- $hideByTerminalId(id): void
Returns void
$registerTerminalLinkProvider
- $registerTerminalLinkProvider(providerId): Promise<void>
Returns Promise<void>
$registerTerminalObserver
- $registerTerminalObserver(id, nrOfLinesToMatch, outputMatcherRegex): unknown
Parameters
- id: string
- nrOfLinesToMatch: number
- outputMatcherRegex: string
Returns unknown
$resize
- $resize(id, cols, rows): void
Parameters
- id: string
- cols: number
- rows: number
Returns void
$resizeByTerminalId
- $resizeByTerminalId(id, cols, rows): void
Parameters
- id: number
- cols: number
- rows: number
Returns void
$sendText
- $sendText(id, text, shouldExecute?): void
Parameters
- id: string
- text: string
Optional
shouldExecute: boolean
Returns void
$sendTextByTerminalId
- $sendTextByTerminalId(id, text, addNewLine?): void
Parameters
- id: number
- text: string
Optional
addNewLine: boolean
Returns void
$setEnvironmentVariableCollection
- $setEnvironmentVariableCollection(persistent, extensionIdentifier, rootUri, collection): void
Parameters
- persistent: boolean
- extensionIdentifier: string
- rootUri: string
- collection: SerializableEnvironmentVariableCollection
Returns void
$setName
- $setName(id, name): void
Returns void
$setNameByTerminalId
- $setNameByTerminalId(id, name): void
Returns void
$show
- $show(id, preserveFocus?): void
Parameters
- id: string
Optional
preserveFocus: boolean
Returns void
$showByTerminalId
- $showByTerminalId(id, preserveFocus?): void
Parameters
- id: number
Optional
preserveFocus: boolean
Returns void
$unregisterTerminalLinkProvider
- $unregisterTerminalLinkProvider(providerId): Promise<void>
Returns Promise<void>
$unregisterTerminalObserver
- $unregisterTerminalObserver(id): unknown
Returns unknown
$write
- $write(id, data): void
Returns void
$writeByTerminalId
- $writeByTerminalId(id, data): void
Returns void
Create new Terminal with Terminal options.