From 00570e8599c131362469a3d55ada7652d087c306 Mon Sep 17 00:00:00 2001 From: Maria Filipanova Date: Tue, 8 Jul 2025 16:39:53 +0200 Subject: [PATCH] IJPL-185506: add xml code style settings synchronizer GitOrigin-RevId: 38c28fe7780c143b7316e14582ce0f857c515c00 --- xml/impl/resources/intellij.xml.impl.xml | 1 + .../resources/intellij.xml.frontend.split.xml | 1 + .../XmlCodeStyleSettingsCustomDataSynchronizer.kt | 15 +++++++++++++++ 3 files changed, 17 insertions(+) create mode 100644 xml/xml-ui-common/src/com/intellij/xml/XmlCodeStyleSettingsCustomDataSynchronizer.kt diff --git a/xml/impl/resources/intellij.xml.impl.xml b/xml/impl/resources/intellij.xml.impl.xml index a2482050704a..95a522068d1f 100644 --- a/xml/impl/resources/intellij.xml.impl.xml +++ b/xml/impl/resources/intellij.xml.impl.xml @@ -445,5 +445,6 @@ toolShortName="HtmlUnknownTag"/> + \ No newline at end of file diff --git a/xml/xml-frontend-split/resources/intellij.xml.frontend.split.xml b/xml/xml-frontend-split/resources/intellij.xml.frontend.split.xml index 5679e7c9b588..2571df9618cb 100644 --- a/xml/xml-frontend-split/resources/intellij.xml.frontend.split.xml +++ b/xml/xml-frontend-split/resources/intellij.xml.frontend.split.xml @@ -10,6 +10,7 @@ + diff --git a/xml/xml-ui-common/src/com/intellij/xml/XmlCodeStyleSettingsCustomDataSynchronizer.kt b/xml/xml-ui-common/src/com/intellij/xml/XmlCodeStyleSettingsCustomDataSynchronizer.kt new file mode 100644 index 000000000000..b07866b1cf95 --- /dev/null +++ b/xml/xml-ui-common/src/com/intellij/xml/XmlCodeStyleSettingsCustomDataSynchronizer.kt @@ -0,0 +1,15 @@ +// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. +package com.intellij.xml + +import com.intellij.lang.Language +import com.intellij.lang.xml.XMLLanguage +import com.intellij.psi.codeStyle.CodeStyleSettingsCustomDataSynchronizer +import com.intellij.psi.formatter.xml.XmlCodeStyleSettings + +class XmlCodeStyleSettingsCustomDataSynchronizer : CodeStyleSettingsCustomDataSynchronizer() { + override val language: Language + get() = XMLLanguage.INSTANCE + + override val customCodeStyleSettingsClass: Class + get() = XmlCodeStyleSettings::class.java +} \ No newline at end of file