mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-18 15:55:59 +01:00
proposed api check.
This commit is contained in:
@@ -941,6 +941,9 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
},
|
||||
createTerminal(nameOrOptions?: vscode.TerminalOptions | vscode.ExtensionTerminalOptions | string, shellPath?: string, shellArgs?: readonly string[] | string): vscode.Terminal {
|
||||
if (typeof nameOrOptions === 'object') {
|
||||
if ('titleTemplate' in nameOrOptions && nameOrOptions.titleTemplate !== undefined) {
|
||||
checkProposedApiEnabled(extension, 'terminalTitle');
|
||||
}
|
||||
if ('pty' in nameOrOptions) {
|
||||
return extHostTerminalService.createExtensionTerminal(nameOrOptions);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user