提交 a2b1bf32 编写于 作者: D Daniel Imms

Add terminal.integrated.experimentalBufferImpl setting

Fixes #60155
上级 fd523059
......@@ -99,6 +99,7 @@ export interface ITerminalConfiguration {
windows: { [key: string]: string };
};
showExitAlert: boolean;
experimentalBufferImpl: 'JsArray' | 'TypedArray';
}
export interface ITerminalConfigHelper {
......
......@@ -372,7 +372,13 @@ configurationRegistry.registerConfiguration({
description: nls.localize('terminal.integrated.showExitAlert', "Controls whether to show the alert \"The terminal process terminated with exit code\" when exit code is non-zero."),
type: 'boolean',
default: true
}
},
'terminal.integrated.experimentalBufferImpl': {
description: nls.localize('terminal.integrated.experimentalBufferImpl', "Controls the terminal's internal buffer implementation. This setting is picked up on terminal creation and will not apply to existing terminals."),
type: 'string',
enum: ['JsArray', 'TypedArray'],
default: 'JsArray'
},
}
});
......
......@@ -302,7 +302,8 @@ export class TerminalInstance implements ITerminalInstance {
// TODO: Guess whether to use canvas or dom better
rendererType: config.rendererType === 'auto' ? 'canvas' : config.rendererType,
// TODO: Remove this once the setting is removed upstream
experimentalCharAtlas: 'dynamic'
experimentalCharAtlas: 'dynamic',
experimentalBufferLineImpl: config.experimentalBufferImpl
});
if (this._shellLaunchConfig.initialText) {
this._xterm.writeln(this._shellLaunchConfig.initialText);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册