mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
Re-enable regex highlight test (#244014)
* Re-enable regex highlight test
* 🤦♀️
This commit is contained in:
@@ -101,6 +101,9 @@ const vscodeResourceIncludes = [
|
||||
|
||||
// Tree Sitter highlights
|
||||
'out-build/vs/editor/common/languages/highlights/*.scm',
|
||||
|
||||
// Tree Sitter injection queries
|
||||
'out-build/vs/editor/common/languages/injections/*.scm',
|
||||
];
|
||||
|
||||
const vscodeResources = [
|
||||
|
||||
@@ -52,6 +52,9 @@ const vscodeWebResourceIncludes = [
|
||||
// Tree Sitter highlights
|
||||
'out-build/vs/editor/common/languages/highlights/*.scm',
|
||||
|
||||
// Tree Sitter injections
|
||||
'out-build/vs/editor/common/languages/injections/*.scm',
|
||||
|
||||
// Extension Host Worker
|
||||
'out-build/vs/workbench/services/extensions/worker/webWorkerExtensionHostIframe.html',
|
||||
];
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
const a = /\\\xFF/;
|
||||
const b = /[.*+\-?^${}()|[\]\\]/;
|
||||
const c = /\r\n|\r|\n/;
|
||||
const d = /\/\/# sourceMappingURL=[^ ]+$/;
|
||||
const e = /<%=\s*([^\s]+)\s*%>/;
|
||||
const f = /```suggestion(\u0020*(\r\n|\n))((?<suggestion>[\s\S]*?)(\r\n|\n))?```/;
|
||||
Reference in New Issue
Block a user