Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/test/smoke/src/areas/terminal/terminal-helpers.ts
3520 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
import { Application } from '../../../../automation';
7
8
export async function setTerminalTestSettings(app: Application, additionalSettings: [key: string, value: string][] = []) {
9
await app.workbench.settingsEditor.addUserSettings([
10
// Work wrap is required when calling settingsEditor.addUserSetting multiple times or the
11
// click to focus will fail
12
['editor.wordWrap', '"on"'],
13
// Always show tabs to make getting terminal groups easier
14
['terminal.integrated.tabs.hideCondition', '"never"'],
15
// Use the DOM renderer for smoke tests so they can be inspected in the playwright trace
16
// viewer
17
['terminal.integrated.gpuAcceleration', '"off"'],
18
...additionalSettings
19
]);
20
21
// Close the settings editor
22
await app.workbench.quickaccess.runCommand('workbench.action.closeAllEditors');
23
}
24
25