Move gpu acceleration clearing to before updateConfig

Part of #123077
This commit is contained in:
Daniel Imms 2021-07-16 07:04:16 -07:00
parent d9d118c7f7
commit 1141593f92

View file

@ -327,6 +327,9 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
});
this.addDisposable(this._configurationService.onDidChangeConfiguration(async e => {
if (e.affectsConfiguration(TerminalSettingId.GpuAcceleration)) {
this._storageService.remove(TerminalStorageKeys.SuggestedRendererType, StorageScope.GLOBAL);
}
if (e.affectsConfiguration('terminal.integrated') || e.affectsConfiguration('editor.fastScrollSensitivity') || e.affectsConfiguration('editor.mouseWheelScrollSensitivity') || e.affectsConfiguration('editor.multiCursorModifier')) {
this.updateConfig();
// HACK: Trigger another async layout to ensure xterm's CharMeasure is ready to use,
@ -352,9 +355,6 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
if (e.affectsConfiguration('editor.accessibilitySupport')) {
this.updateAccessibilitySupport();
}
if (e.affectsConfiguration(TerminalSettingId.GpuAcceleration)) {
this._storageService.remove(TerminalStorageKeys.SuggestedRendererType, StorageScope.GLOBAL);
}
}));
// Clear out initial data events after 10 seconds, hopefully extension hosts are up and