Skip to content

Commit 2be71e8

Browse files
committed
Restore the Global enableRainbow after the write test
The leaked value made any rerun against the same profile fail the preview suite, which forced every local run to start from a wiped user-data directory.
1 parent 0d76551 commit 2be71e8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/test/suite/extension.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ const extensionName = "LineNumberDeco";
1313
suite('Extension Test Suite', () => {
1414
vscode.window.showInformationMessage('Start all tests.');
1515

16+
suiteTeardown(async () => {
17+
await vscode.workspace.getConfiguration(extensionName).update('enableRainbow', undefined, vsCodeGlobal);
18+
});
19+
1620
test('Sample test', () => {
1721
assert.strictEqual(-1, [1, 2, 3].indexOf(5));
1822
assert.strictEqual(-1, [1, 2, 3].indexOf(0));

0 commit comments

Comments
 (0)