дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-26 20:46:22 +02:00
clangd marks std and other standard-library namespaces with the defaultLibrary modifier, so the generic builtin (Predefined symbol) class overrode the Namespace colour. A C++ semantic hook drops the builtin class for namespace tokens only; other symbol kinds, modifiers and languages keep their styling. Fixes #6123 Co-authored-by: txdywmwddhxs <[email protected]>
13 рядки
521 B
TypeScript
13 рядки
521 B
TypeScript
import { expect, test } from "@playwright/test";
|
|
|
|
for (const mode of ["dark", "light"]) {
|
|
test(`C++ standard and user namespaces share the namespace colour (${mode})`, async ({ page }) => {
|
|
await page.goto(`/e2e/cppNamespaceStyle.html${mode === "light" ? "?light" : ""}`);
|
|
const namespaces = page.locator(".cm-sem-namespace");
|
|
await expect(namespaces).toHaveCount(2);
|
|
for (const namespace of await namespaces.all()) {
|
|
await expect(namespace).toHaveCSS("color", "rgb(68, 102, 136)");
|
|
}
|
|
});
|
|
}
|