mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-28 01:07:49 +08:00
Always render {type="narrow"} for "Attributes" sections
This commit is contained in:
parent
57c266aa52
commit
7190297c66
@ -255,7 +255,8 @@ fun StringBuilder.appendDefaultValue(defaultValue: String?) {
|
|||||||
fun StringBuilder.appendAttributes(attributeWrappers: List<AttributeWrapper>) {
|
fun StringBuilder.appendAttributes(attributeWrappers: List<AttributeWrapper>) {
|
||||||
val attributes = attributeWrappers.mapNotNull { it.attribute }
|
val attributes = attributeWrappers.mapNotNull { it.attribute }
|
||||||
if (attributes.isNotEmpty()) {
|
if (attributes.isNotEmpty()) {
|
||||||
appendLine("\n\nAttributes")
|
appendLine("\n\n{type=\"narrow\"}")
|
||||||
|
appendLine("Attributes")
|
||||||
appendLine(":")
|
appendLine(":")
|
||||||
for ((index, attribute) in attributes.withIndex()) {
|
for ((index, attribute) in attributes.withIndex()) {
|
||||||
appendAttribute(attribute, index == attributes.lastIndex)
|
appendAttribute(attribute, index == attributes.lastIndex)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<!-- Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
|
<!-- Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
|
||||||
|
|
||||||
# Plugin Configuration File
|
# Plugin Configuration File
|
||||||
|
|
||||||
@ -95,6 +95,7 @@ Required
|
|||||||
: **yes**
|
: **yes**
|
||||||
|
|
||||||
|
|
||||||
|
{type="narrow"}
|
||||||
Attributes
|
Attributes
|
||||||
:
|
:
|
||||||
- `url` _(optional; ignored in an [additional config file](#additional-plugin-configuration-files))_<br/>
|
- `url` _(optional; ignored in an [additional config file](#additional-plugin-configuration-files))_<br/>
|
||||||
@ -228,6 +229,7 @@ Required
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{type="narrow"}
|
||||||
Attributes
|
Attributes
|
||||||
:
|
:
|
||||||
- `code` _(**required**)_<br/>
|
- `code` _(**required**)_<br/>
|
||||||
@ -268,6 +270,7 @@ is enabled and configured.
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{type="narrow"}
|
||||||
Attributes
|
Attributes
|
||||||
:
|
:
|
||||||
- `since-build` _(**required**)_<br/>
|
- `since-build` _(**required**)_<br/>
|
||||||
@ -308,6 +311,7 @@ Required
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{type="narrow"}
|
||||||
Attributes
|
Attributes
|
||||||
:
|
:
|
||||||
- `url` _(optional)_<br/>
|
- `url` _(optional)_<br/>
|
||||||
@ -434,6 +438,7 @@ module is needed
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{type="narrow"}
|
||||||
Attributes
|
Attributes
|
||||||
:
|
:
|
||||||
- `optional` _(optional)_<br/>
|
- `optional` _(optional)_<br/>
|
||||||
@ -521,6 +526,7 @@ Required
|
|||||||
: no
|
: no
|
||||||
|
|
||||||
|
|
||||||
|
{type="narrow"}
|
||||||
Attributes
|
Attributes
|
||||||
:
|
:
|
||||||
- `defaultExtensionNs` _(optional)_<br/>
|
- `defaultExtensionNs` _(optional)_<br/>
|
||||||
@ -590,6 +596,7 @@ Required
|
|||||||
: no
|
: no
|
||||||
|
|
||||||
|
|
||||||
|
{type="narrow"}
|
||||||
Attributes
|
Attributes
|
||||||
:
|
:
|
||||||
- `name` _(`name` or `qualifiedName` is **required**)_<br/>
|
- `name` _(`name` or `qualifiedName` is **required**)_<br/>
|
||||||
@ -645,6 +652,7 @@ Required
|
|||||||
: no
|
: no
|
||||||
|
|
||||||
|
|
||||||
|
{type="narrow"}
|
||||||
Attributes
|
Attributes
|
||||||
:
|
:
|
||||||
- `tag` _(`tag` or `attribute` is **required**)_<br/>
|
- `tag` _(`tag` or `attribute` is **required**)_<br/>
|
||||||
@ -728,6 +736,7 @@ Required
|
|||||||
: no
|
: no
|
||||||
|
|
||||||
|
|
||||||
|
{type="narrow"}
|
||||||
Attributes
|
Attributes
|
||||||
:
|
:
|
||||||
- `resource-bundle` _(optional; available since 2020.1)_<br/>
|
- `resource-bundle` _(optional; available since 2020.1)_<br/>
|
||||||
@ -770,6 +779,7 @@ Required
|
|||||||
: no
|
: no
|
||||||
|
|
||||||
|
|
||||||
|
{type="narrow"}
|
||||||
Attributes
|
Attributes
|
||||||
:
|
:
|
||||||
- `id` _(**required**)_<br/>
|
- `id` _(**required**)_<br/>
|
||||||
@ -835,6 +845,7 @@ Required
|
|||||||
: no
|
: no
|
||||||
|
|
||||||
|
|
||||||
|
{type="narrow"}
|
||||||
Attributes
|
Attributes
|
||||||
:
|
:
|
||||||
- `group-id` _(**required**)_<br/>
|
- `group-id` _(**required**)_<br/>
|
||||||
@ -873,6 +884,7 @@ Required
|
|||||||
: no
|
: no
|
||||||
|
|
||||||
|
|
||||||
|
{type="narrow"}
|
||||||
Attributes
|
Attributes
|
||||||
:
|
:
|
||||||
- `keymap` _(**required**)_<br/>
|
- `keymap` _(**required**)_<br/>
|
||||||
@ -929,6 +941,7 @@ Required
|
|||||||
: no
|
: no
|
||||||
|
|
||||||
|
|
||||||
|
{type="narrow"}
|
||||||
Attributes
|
Attributes
|
||||||
:
|
:
|
||||||
- `keymap` _(**required**)_<br/>
|
- `keymap` _(**required**)_<br/>
|
||||||
@ -990,6 +1003,7 @@ Required
|
|||||||
: no
|
: no
|
||||||
|
|
||||||
|
|
||||||
|
{type="narrow"}
|
||||||
Attributes
|
Attributes
|
||||||
:
|
:
|
||||||
- `place` _(**required**)_<br/>
|
- `place` _(**required**)_<br/>
|
||||||
@ -1042,6 +1056,7 @@ Required
|
|||||||
: no
|
: no
|
||||||
|
|
||||||
|
|
||||||
|
{type="narrow"}
|
||||||
Attributes
|
Attributes
|
||||||
:
|
:
|
||||||
- `key` _(`key` or `text` is **required**)_<br/>
|
- `key` _(`key` or `text` is **required**)_<br/>
|
||||||
@ -1070,6 +1085,7 @@ Required
|
|||||||
: no
|
: no
|
||||||
|
|
||||||
|
|
||||||
|
{type="narrow"}
|
||||||
Attributes
|
Attributes
|
||||||
:
|
:
|
||||||
- `value` _(**required**)_<br/>
|
- `value` _(**required**)_<br/>
|
||||||
@ -1101,6 +1117,7 @@ Required
|
|||||||
: no
|
: no
|
||||||
|
|
||||||
|
|
||||||
|
{type="narrow"}
|
||||||
Attributes
|
Attributes
|
||||||
:
|
:
|
||||||
- `id` _(**required**)_<br/>
|
- `id` _(**required**)_<br/>
|
||||||
@ -1187,6 +1204,7 @@ Required
|
|||||||
: no
|
: no
|
||||||
|
|
||||||
|
|
||||||
|
{type="narrow"}
|
||||||
Attributes
|
Attributes
|
||||||
:
|
:
|
||||||
- `ref` _(**required**)_<br/>
|
- `ref` _(**required**)_<br/>
|
||||||
@ -1230,6 +1248,7 @@ Required
|
|||||||
: no
|
: no
|
||||||
|
|
||||||
|
|
||||||
|
{type="narrow"}
|
||||||
Attributes
|
Attributes
|
||||||
:
|
:
|
||||||
- `text` _(optional)_<br/>
|
- `text` _(optional)_<br/>
|
||||||
@ -1316,6 +1335,7 @@ Required
|
|||||||
: no
|
: no
|
||||||
|
|
||||||
|
|
||||||
|
{type="narrow"}
|
||||||
Attributes
|
Attributes
|
||||||
:
|
:
|
||||||
- `topic` _(**required**)_<br/>
|
- `topic` _(**required**)_<br/>
|
||||||
@ -1504,6 +1524,7 @@ Required
|
|||||||
: no
|
: no
|
||||||
|
|
||||||
|
|
||||||
|
{type="narrow"}
|
||||||
Attributes
|
Attributes
|
||||||
:
|
:
|
||||||
- `name` _(**required**)_<br/>
|
- `name` _(**required**)_<br/>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<!-- Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
|
<!-- Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
|
||||||
|
|
||||||
# Live Templates Configuration File
|
# Live Templates Configuration File
|
||||||
|
|
||||||
@ -38,6 +38,7 @@ Required
|
|||||||
: **yes**
|
: **yes**
|
||||||
|
|
||||||
|
|
||||||
|
{type="narrow"}
|
||||||
Attributes
|
Attributes
|
||||||
:
|
:
|
||||||
- `group` _(optional)_<br/>
|
- `group` _(optional)_<br/>
|
||||||
@ -62,6 +63,7 @@ Required
|
|||||||
: no
|
: no
|
||||||
|
|
||||||
|
|
||||||
|
{type="narrow"}
|
||||||
Attributes
|
Attributes
|
||||||
:
|
:
|
||||||
- `id` _(optional)_<br/>
|
- `id` _(optional)_<br/>
|
||||||
@ -133,6 +135,7 @@ Required
|
|||||||
: no
|
: no
|
||||||
|
|
||||||
|
|
||||||
|
{type="narrow"}
|
||||||
Attributes
|
Attributes
|
||||||
:
|
:
|
||||||
- `name` _(optional)_<br/>
|
- `name` _(optional)_<br/>
|
||||||
@ -222,6 +225,7 @@ Required
|
|||||||
: no
|
: no
|
||||||
|
|
||||||
|
|
||||||
|
{type="narrow"}
|
||||||
Attributes
|
Attributes
|
||||||
:
|
:
|
||||||
- `name` _(**required**)_<br/>
|
- `name` _(**required**)_<br/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user