Finalize terminal color API (#130123)
* fix #128228 * Update src/vs/vscode.d.ts Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com> * Update src/vs/vscode.d.ts Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com> * redo commit * remove from proposed api * improve description Co-authored-by: Megan Rogge <meganrogge@Megans-MBP.lan> Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>
This commit is contained in:
parent
24dbdb2c5f
commit
72190f7c69
14
src/vs/vscode.d.ts
vendored
14
src/vs/vscode.d.ts
vendored
|
@ -9484,6 +9484,13 @@ declare module 'vscode' {
|
|||
* The icon path or {@link ThemeIcon} for the terminal.
|
||||
*/
|
||||
iconPath?: Uri | { light: Uri; dark: Uri } | ThemeIcon;
|
||||
|
||||
/**
|
||||
* The icon {@link ThemeColor} for the terminal.
|
||||
* The `terminal.ansi*` theme keys are
|
||||
* recommended for the best contrast and consistency across themes.
|
||||
*/
|
||||
color?: ThemeColor;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -9505,6 +9512,13 @@ declare module 'vscode' {
|
|||
* The icon path or {@link ThemeIcon} for the terminal.
|
||||
*/
|
||||
iconPath?: Uri | { light: Uri; dark: Uri } | ThemeIcon;
|
||||
|
||||
/**
|
||||
* The icon {@link ThemeColor} for the terminal.
|
||||
* The standard `terminal.ansi*` theme keys are
|
||||
* recommended for the best contrast and consistency across themes.
|
||||
*/
|
||||
color?: ThemeColor;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
16
src/vs/vscode.proposed.d.ts
vendored
16
src/vs/vscode.proposed.d.ts
vendored
|
@ -911,22 +911,6 @@ declare module 'vscode' {
|
|||
|
||||
//#endregion
|
||||
|
||||
//#region Terminal color support https://github.com/microsoft/vscode/issues/128228
|
||||
export interface TerminalOptions {
|
||||
/**
|
||||
* Supports all ThemeColor keys, terminal.ansi* is recommended for contrast/consistency
|
||||
*/
|
||||
color?: ThemeColor;
|
||||
}
|
||||
export interface ExtensionTerminalOptions {
|
||||
/**
|
||||
* Supports all ThemeColor keys, terminal.ansi* is recommended for contrast/consistency
|
||||
*/
|
||||
color?: ThemeColor;
|
||||
}
|
||||
|
||||
//#endregion
|
||||
|
||||
// eslint-disable-next-line vscode-dts-region-comments
|
||||
//#region @jrieken -> exclusive document filters
|
||||
|
||||
|
|
|
@ -642,9 +642,6 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
|||
},
|
||||
createTerminal(nameOrOptions?: vscode.TerminalOptions | vscode.ExtensionTerminalOptions | string, shellPath?: string, shellArgs?: string[] | string): vscode.Terminal {
|
||||
if (typeof nameOrOptions === 'object') {
|
||||
if (nameOrOptions.color) {
|
||||
checkProposedApiEnabled(extension);
|
||||
}
|
||||
if ('pty' in nameOrOptions) {
|
||||
return extHostTerminalService.createExtensionTerminal(nameOrOptions);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue