diff --git a/.vscode/extensions.json b/.vscode/extensions.json index e41e3004c..d795349ef 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -8,7 +8,8 @@ "streetsidesoftware.code-spell-checker", "YoavBls.pretty-ts-errors", "mxsdev.typescript-explorer", - "github.vscode-github-actions" + "github.vscode-github-actions", + "fabiospampinato.vscode-highlight" ], // List of extensions recommended by VS Code that should not be recommended for users of this workspace. "unwantedRecommendations": [ diff --git a/.vscode/settings.json b/.vscode/settings.json index 92fc6a2ac..32205694b 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -103,5 +103,44 @@ "**/start-server.js", "**/turbo/**" ], - "files.insertFinalNewline": true + "files.insertFinalNewline": true, + "highlight.regexes": { + "(import\\.meta\\.vitest\\?\\.test\\()[\"'`]([^\"'`]*)(.*)": [ + { + "isWholeLine": true, + "before": { + "contentText": "test>  ", + "color": "#008080", + "fontStyle": "italic" + }, + } + ], + "((?<=(?:import\\.meta\\.vitest\\?\\.test\\(.*\\n)(?:(?!(\\n\\}?\\);))[\\s\\S])*))\\n": [ + { + "isWholeLine": true, + "before": { + "contentText": "       ", + "color": "#008080", + "fontStyle": "italic" + }, + }, + ], + "(import\\.meta\\.vitest\\?\\.test\\([\\s\\S]*?(\\n\\}?\\);))": [ + {}, + { + "isWholeLine": true, + "before": { + "contentText": "       ", + "color": "#008080", + "fontStyle": "italic" + }, + }, + ], + + // disable the default TODO highlighting + "((?:| *\\*/| *!}| *--}}| *}}|(?= *(?:[^:]//|/\\*+|| *\\*/| *!}| *--}}| *}}|(?= *(?:[^:]//|/\\*+|| *\\*/| *!}| *--}}| *}}|(?= *(?:[^:]//|/\\*+|| *\\*/| *!}| *--}}| *}}|(?= *(?:[^:]//|/\\*+|