mirror of
https://github.com/Microsoft/vscode
synced 2024-10-12 06:17:18 +00:00
Allow terminal rendererType to be swapped out at runtime
Part of #53274 Fixes #55344
This commit is contained in:
parent
5af9847933
commit
7f5beafe6e
|
@ -50,7 +50,7 @@
|
|||
"vscode-nsfw": "1.0.17",
|
||||
"vscode-ripgrep": "^1.0.1",
|
||||
"vscode-textmate": "^4.0.1",
|
||||
"vscode-xterm": "3.6.0-beta7",
|
||||
"vscode-xterm": "3.6.0-beta11",
|
||||
"yauzl": "^2.9.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
@ -202,7 +202,7 @@ configurationRegistry.registerConfiguration({
|
|||
nls.localize('terminal.integrated.rendererType.dom', "Use the fallback DOM-based renderer.")
|
||||
],
|
||||
default: 'auto',
|
||||
description: nls.localize('terminal.integrated.rendererType', "Controls how the terminal is rendered. This setting needs VS Code to reload in order to take effect.")
|
||||
description: nls.localize('terminal.integrated.rendererType', "Controls how the terminal is rendered.")
|
||||
},
|
||||
'terminal.integrated.rightClickBehavior': {
|
||||
type: 'string',
|
||||
|
|
|
@ -481,7 +481,7 @@ export class TerminalInstance implements ITerminalInstance {
|
|||
label: nls.localize('yes', "Yes"),
|
||||
run: () => {
|
||||
this._configurationService.updateValue('terminal.integrated.rendererType', 'dom', ConfigurationTarget.USER).then(() => {
|
||||
this._notificationService.info(nls.localize('terminal.rendererInAllNewTerminals', "All newly created terminals will use the non-GPU renderer."));
|
||||
this._notificationService.info(nls.localize('terminal.rendererInAllNewTerminals', "The termnial is now using the fallback renderer."));
|
||||
});
|
||||
}
|
||||
} as IPromptChoice,
|
||||
|
@ -884,6 +884,7 @@ export class TerminalInstance implements ITerminalInstance {
|
|||
this._safeSetOption('macOptionIsMeta', config.macOptionIsMeta);
|
||||
this._safeSetOption('macOptionClickForcesSelection', config.macOptionClickForcesSelection);
|
||||
this._safeSetOption('rightClickSelectsWord', config.rightClickBehavior === 'selectWord');
|
||||
this._safeSetOption('rendererType', config.rendererType === 'auto' ? 'canvas' : config.rendererType);
|
||||
}
|
||||
|
||||
public updateAccessibilitySupport(): void {
|
||||
|
|
|
@ -6256,9 +6256,9 @@ vscode-textmate@^4.0.1:
|
|||
dependencies:
|
||||
oniguruma "^7.0.0"
|
||||
|
||||
vscode-xterm@3.6.0-beta7:
|
||||
version "3.6.0-beta7"
|
||||
resolved "https://registry.yarnpkg.com/vscode-xterm/-/vscode-xterm-3.6.0-beta7.tgz#c079061ec43cddc2f952c8075a388c25fb4ca2b0"
|
||||
vscode-xterm@3.6.0-beta11:
|
||||
version "3.6.0-beta11"
|
||||
resolved "https://registry.yarnpkg.com/vscode-xterm/-/vscode-xterm-3.6.0-beta11.tgz#d492ae1baf5cf9884f7b49a4fadc0c354248c830"
|
||||
|
||||
vso-node-api@^6.1.2-preview:
|
||||
version "6.1.2-preview"
|
||||
|
|
Loading…
Reference in a new issue