mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 03:29:00 +01:00
@@ -141,6 +141,7 @@ export class MainThreadTerminalService implements MainThreadTerminalServiceShape
|
||||
isFeatureTerminal: launchConfig.isFeatureTerminal,
|
||||
isExtensionOwnedTerminal: launchConfig.isExtensionOwnedTerminal,
|
||||
useShellEnvironment: launchConfig.useShellEnvironment,
|
||||
disablePersistence: launchConfig.disablePersistence
|
||||
};
|
||||
const terminal = Promises.withAsyncBody<ITerminalInstance>(async r => {
|
||||
const terminal = await this._terminalService.createTerminal({
|
||||
|
||||
@@ -486,6 +486,7 @@ export interface TerminalLaunchConfig {
|
||||
isExtensionOwnedTerminal?: boolean;
|
||||
useShellEnvironment?: boolean;
|
||||
location?: TerminalLocation | { viewColumn: number, preserveFocus?: boolean } | { parentTerminal: ExtHostTerminalIdentifier } | { splitActiveTerminal: boolean };
|
||||
disablePersistence?: boolean;
|
||||
}
|
||||
|
||||
export interface MainThreadTerminalServiceShape extends IDisposable {
|
||||
|
||||
@@ -152,7 +152,8 @@ export class ExtHostTerminal {
|
||||
isFeatureTerminal: withNullAsUndefined(internalOptions?.isFeatureTerminal),
|
||||
isExtensionOwnedTerminal: true,
|
||||
useShellEnvironment: withNullAsUndefined(internalOptions?.useShellEnvironment),
|
||||
location: internalOptions?.location || this._serializeParentTerminal(options.location, internalOptions?.resolvedExtHostIdentifier)
|
||||
location: internalOptions?.location || this._serializeParentTerminal(options.location, internalOptions?.resolvedExtHostIdentifier),
|
||||
disablePersistence: withNullAsUndefined(options.disablePersistence)
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user