Skip to content

Commit 28a7bc4

Browse files
committed
Make xtermTerminal.test.ts hermetic.
With this change, it also passes when run alone. Fixes #198401
1 parent 6aa249d commit 28a7bc4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/vs/workbench/contrib/terminal/test/browser/xterm/xtermTerminal.test.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { IThemeService } from 'vs/platform/theme/common/themeService';
1616
import { IViewDescriptor, IViewDescriptorService, ViewContainerLocation } from 'vs/workbench/common/views';
1717
import { IEditorOptions } from 'vs/editor/common/config/editorOptions';
1818
import { Emitter } from 'vs/base/common/event';
19-
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';
19+
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';
2020
import { PANEL_BACKGROUND, SIDE_BAR_BACKGROUND } from 'vs/workbench/common/theme';
2121
import type { WebglAddon } from '@xterm/addon-webgl';
2222
import { NullLogService } from 'vs/platform/log/common/log';
@@ -36,6 +36,8 @@ import { ITerminalLogService } from 'vs/platform/terminal/common/terminal';
3636
import { ensureNoDisposablesAreLeakedInTestSuite } from 'vs/base/test/common/utils';
3737
import { ILayoutService } from 'vs/platform/layout/browser/layoutService';
3838

39+
registerColors();
40+
3941
class TestWebglAddon implements WebglAddon {
4042
static shouldThrow = false;
4143
static isEnabled = false;

0 commit comments

Comments
 (0)