mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-20 07:12:43 +01:00
@@ -117,7 +117,7 @@ export const enum TerminalSettingId {
|
||||
ShellIntegrationDecorationsEnabled = 'terminal.integrated.shellIntegration.decorationsEnabled',
|
||||
ShellIntegrationCommandHistory = 'terminal.integrated.shellIntegration.history',
|
||||
ShellIntegrationSuggestEnabled = 'terminal.integrated.shellIntegration.suggestEnabled',
|
||||
ExperimentalImageSupport = 'terminal.integrated.experimentalImageSupport',
|
||||
EnableImages = 'terminal.integrated.enableImages',
|
||||
SmoothScrolling = 'terminal.integrated.smoothScrolling'
|
||||
}
|
||||
|
||||
|
||||
@@ -577,7 +577,7 @@ export class XtermTerminal extends DisposableStore implements IXtermTerminal, II
|
||||
}
|
||||
|
||||
private async _refreshImageAddon(): Promise<void> {
|
||||
if (this._configHelper.config.experimentalImageSupport) {
|
||||
if (this._configHelper.config.enableImages) {
|
||||
if (!this._imageAddon) {
|
||||
const AddonCtor = await this._getImageAddonConstructor();
|
||||
this._imageAddon = new AddonCtor();
|
||||
|
||||
@@ -304,7 +304,7 @@ export interface ITerminalConfiguration {
|
||||
enabled: boolean;
|
||||
decorationsEnabled: boolean;
|
||||
};
|
||||
experimentalImageSupport: boolean;
|
||||
enableImages: boolean;
|
||||
smoothScrolling: boolean;
|
||||
}
|
||||
|
||||
|
||||
@@ -578,20 +578,18 @@ const terminalConfiguration: IConfigurationNode = {
|
||||
restricted: true,
|
||||
markdownDescription: localize('terminal.integrated.shellIntegration.suggestEnabled', "Enables experimental terminal Intellisense suggestions for supported shells when {0} is set to {1}. If shell integration is installed manually, {2} needs to be set to {3} before calling the script.", '`#terminal.integrated.shellIntegration.enabled#`', '`true`', '`VSCODE_SUGGEST`', '`1`'),
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
tags: ['experimental']
|
||||
default: false
|
||||
},
|
||||
[TerminalSettingId.SmoothScrolling]: {
|
||||
markdownDescription: localize('terminal.integrated.smoothScrolling', "Controls whether the terminal will scroll using an animation."),
|
||||
type: 'boolean',
|
||||
default: false
|
||||
},
|
||||
[TerminalSettingId.ExperimentalImageSupport]: {
|
||||
[TerminalSettingId.EnableImages]: {
|
||||
restricted: true,
|
||||
markdownDescription: localize('terminal.integrated.experimentalImageSupport', "Enables experimental image support in the terminal. Both sixel and iTerm's inline image protocol are supported on Linux and macOS, Windows support will light up automatically when ConPTY passes through the sequences. Images will not be retained currently between window reloads/reconnects."),
|
||||
markdownDescription: localize('terminal.integrated.enableImages', "Enables image support in the terminal. Both sixel and iTerm's inline image protocol are supported on Linux and macOS, Windows support will light up automatically when ConPTY passes through the sequences. Images will currently not be restored between window reloads/reconnects."),
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
tags: ['experimental']
|
||||
default: true
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user