Undo format

This commit is contained in:
Ayman Bagabas
2024-04-08 12:45:55 +03:00
parent ce9e92f8e5
commit 00514d41b6
4 changed files with 6 additions and 5 deletions
+2 -1
View File
@@ -18,6 +18,7 @@ import { clone } from 'common/Clone';
import { BufferService } from 'common/services/BufferService';
import { CoreService } from 'common/services/CoreService';
function getCursor(bufferService: IBufferService): number[] {
return [
bufferService.buffer.x,
@@ -1993,7 +1994,7 @@ describe('InputHandler', () => {
stack.length = 0;
// full ANSI table restore
await inputHandler.parseP('\x1b]104\x07');
assert.deepEqual(stack, [[{ type: ColorRequestType.RESTORE }]]);
assert.deepEqual(stack, [[{ type: ColorRequestType.RESTORE}]]);
});
it('10: FG set & query events', async () => {
+1
View File
@@ -447,6 +447,7 @@ export interface IColorRestoreRequest {
}
export type IColorEvent = (IColorReportRequest | IColorSetRequest | IColorRestoreRequest)[];
/**
* Calls the parser and handles actions generated by the parser.
*/
+1 -1
View File
@@ -169,7 +169,7 @@ export class OptionsService extends Disposable implements IOptionsService {
break;
case 'cursorWidth':
value = Math.floor(value);
// Fall through for bounds check
// Fall through for bounds check
case 'lineHeight':
case 'tabStopWidth':
if (value < 1) {
+2 -3
View File
@@ -74,10 +74,9 @@ export function getBrowserType(): playwright.BrowserType<playwright.WebKitBrowse
return browserType;
}
export function launchBrowser(opts?: playwright.LaunchOptions): Promise<playwright.Browser> {
export function launchBrowser(): Promise<playwright.Browser> {
const browserType = getBrowserType();
const options: playwright.LaunchOptions = {
...opts,
const options: Record<string, unknown> = {
headless: process.argv.includes('--headless')
};