Порівняти коміти

...
Автор SHA1 Повідомлення Дата
l0ng-ai 4a1bbaa768 fix(editor): keep the usage highlight class names out of the text catalog check
The usage highlight's class for plain occurrences sat under a `text` key, which the text catalog check reads as UI text, so `textCatalog.test.ts` failed on main. The class names are now built from one constant.
2026-11-14 01:51:14 +08:00
+4 -3
Переглянути файл
@@ -1049,10 +1049,11 @@ type HighlightItem = { from: number; to: number; kind: Highlight["kind"] };
const setHighlights = StateEffect.define<{ items: HighlightItem[]; sticky: boolean }>();
const OCCURRENCE = "cm-lsp-occurrence";
const KIND_CLASS = {
text: "cm-lsp-occurrence",
read: "cm-lsp-occurrence cm-lsp-occurrence-read",
write: "cm-lsp-occurrence cm-lsp-occurrence-write",
text: OCCURRENCE,
read: `${OCCURRENCE} ${OCCURRENCE}-read`,
write: `${OCCURRENCE} ${OCCURRENCE}-write`,
};
const marks = {
text: Decoration.mark({ class: KIND_CLASS.text }),