mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-19 16:18:58 +01:00
Re-enable regex highlight test (#244014)
* Re-enable regex highlight test
* 🤦♀️
This commit is contained in:
@@ -70,16 +70,17 @@ suite('colorization', () => {
|
||||
suiteSetup(async function () {
|
||||
originalSettingValues = [
|
||||
workspace.getConfiguration('editor.experimental').get('preferTreeSitter.typescript'),
|
||||
workspace.getConfiguration('editor.experimental').get('preferTreeSitter.regex'),
|
||||
workspace.getConfiguration('editor.experimental').get('preferTreeSitter.ini')
|
||||
];
|
||||
await workspace.getConfiguration('editor.experimental').update('preferTreeSitter.typescript', true, ConfigurationTarget.Global);
|
||||
await workspace.getConfiguration('editor.experimental').update('preferTreeSitter.ini', true, ConfigurationTarget.Global);
|
||||
await workspace.getConfiguration('editor.experimental').update('preferTreeSitter.regex', true, ConfigurationTarget.Global);
|
||||
await workspace.getConfiguration('editor.experimental').update('preferTreeSitter.ini', true, ConfigurationTarget.Global);
|
||||
});
|
||||
suiteTeardown(async function () {
|
||||
await workspace.getConfiguration('editor.experimental').update('preferTreeSitter.typescript', originalSettingValues[0], ConfigurationTarget.Global);
|
||||
await workspace.getConfiguration('editor.experimental').update('preferTreeSitter.ini', originalSettingValues[1], ConfigurationTarget.Global);
|
||||
await workspace.getConfiguration('editor.experimental').update('preferTreeSitter.regex', originalSettingValues[2], ConfigurationTarget.Global);
|
||||
await workspace.getConfiguration('editor.experimental').update('preferTreeSitter.regex', originalSettingValues[1], ConfigurationTarget.Global);
|
||||
await workspace.getConfiguration('editor.experimental').update('preferTreeSitter.ini', originalSettingValues[2], ConfigurationTarget.Global);
|
||||
});
|
||||
|
||||
for (const fixture of fs.readdirSync(fixturesPath)) {
|
||||
|
||||
Reference in New Issue
Block a user