mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-31 09:10:30 -04:00
Merge from vscode 2e5312cd61ff99c570299ecc122c52584265eda2
This commit is contained in:
committed by
Anthony Dresser
parent
3603f55d97
commit
7f1d8fc32f
@@ -112,6 +112,13 @@ export interface ITerminalService {
|
||||
getActiveOrCreateInstance(): ITerminalInstance;
|
||||
splitInstance(instance: ITerminalInstance, shell?: IShellLaunchConfig): ITerminalInstance | null;
|
||||
|
||||
/**
|
||||
* Perform an action with the active terminal instance, if the terminal does
|
||||
* not exist the callback will not be called.
|
||||
* @param callback The callback that fires with the active terminal
|
||||
*/
|
||||
doWithActiveInstance<T>(callback: (terminal: ITerminalInstance) => T): T | void;
|
||||
|
||||
getActiveTab(): ITerminalTab | null;
|
||||
setActiveTabToNext(): void;
|
||||
setActiveTabToPrevious(): void;
|
||||
@@ -311,6 +318,11 @@ export interface ITerminalInstance {
|
||||
|
||||
readonly navigationMode: INavigationMode | undefined;
|
||||
|
||||
/**
|
||||
* Shows the environment information hover if the widget exists.
|
||||
*/
|
||||
showEnvironmentInfoHover(): void;
|
||||
|
||||
/**
|
||||
* Dispose the terminal instance, removing it from the panel/service and freeing up resources.
|
||||
*
|
||||
@@ -464,6 +476,12 @@ export interface ITerminalInstance {
|
||||
*/
|
||||
reuseTerminal(shell: IShellLaunchConfig): void;
|
||||
|
||||
/**
|
||||
* Relaunches the terminal, killing it and reusing the launch config used initially. Any
|
||||
* environment variable changes will be recalculated when this happens.
|
||||
*/
|
||||
relaunch(): void;
|
||||
|
||||
/**
|
||||
* Sets the title of the terminal instance.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user