Skip to content

Commit

Permalink
Merge pull request #198403 from rehmsen/hermetic-xterm-test
Browse files Browse the repository at this point in the history
Make xtermTerminal.test.ts hermetic.
  • Loading branch information
Tyriar committed Nov 17, 2023
2 parents 77da82c + 28a7bc4 commit 40648dd
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { IThemeService } from 'vs/platform/theme/common/themeService';
import { IViewDescriptor, IViewDescriptorService, ViewContainerLocation } from 'vs/workbench/common/views';
import { IEditorOptions } from 'vs/editor/common/config/editorOptions';
import { Emitter } from 'vs/base/common/event';
import { TERMINAL_BACKGROUND_COLOR, TERMINAL_FOREGROUND_COLOR, TERMINAL_CURSOR_FOREGROUND_COLOR, TERMINAL_CURSOR_BACKGROUND_COLOR, TERMINAL_SELECTION_BACKGROUND_COLOR, TERMINAL_SELECTION_FOREGROUND_COLOR, TERMINAL_INACTIVE_SELECTION_BACKGROUND_COLOR } from 'vs/workbench/contrib/terminal/common/terminalColorRegistry';
import { registerColors, TERMINAL_BACKGROUND_COLOR, TERMINAL_FOREGROUND_COLOR, TERMINAL_CURSOR_FOREGROUND_COLOR, TERMINAL_CURSOR_BACKGROUND_COLOR, TERMINAL_SELECTION_BACKGROUND_COLOR, TERMINAL_SELECTION_FOREGROUND_COLOR, TERMINAL_INACTIVE_SELECTION_BACKGROUND_COLOR } from 'vs/workbench/contrib/terminal/common/terminalColorRegistry';
import { PANEL_BACKGROUND, SIDE_BAR_BACKGROUND } from 'vs/workbench/common/theme';
import type { WebglAddon } from '@xterm/addon-webgl';
import { NullLogService } from 'vs/platform/log/common/log';
Expand All @@ -36,6 +36,8 @@ import { ITerminalLogService } from 'vs/platform/terminal/common/terminal';
import { ensureNoDisposablesAreLeakedInTestSuite } from 'vs/base/test/common/utils';
import { ILayoutService } from 'vs/platform/layout/browser/layoutService';

registerColors();

class TestWebglAddon implements WebglAddon {
static shouldThrow = false;
static isEnabled = false;
Expand Down

0 comments on commit 40648dd

Please sign in to comment.