Skip to content

Commit bd03dee

Browse files
authored
Merge branch 'main' into feature/view-autocompletion
2 parents 90823de + 86b24dd commit bd03dee

File tree

7 files changed

+44
-61
lines changed

7 files changed

+44
-61
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pluginVersion = 2025.0.5
1010
pluginSinceBuild = 251
1111

1212
# IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension
13-
platformType = IU
13+
platformType = PS
1414
platformVersion = 2025.1.1
1515

1616
# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html

src/main/kotlin/com/github/tempest/framework/TempestFrameworkUtil.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,12 @@ package com.github.tempest.framework
33
object TempestFrameworkUtil {
44
const val TEMPLATE_SUFFIX = ".view.php"
55
const val COMPONENT_NAME_PREFIX = "x-"
6+
7+
val BUILT_IN_DIRECTIVE_ATTRIBUTES = setOf(
8+
":if",
9+
":elseif",
10+
":else",
11+
":foreach",
12+
":forelse",
13+
)
614
}

src/main/kotlin/com/github/tempest/framework/views/references/ComponentReferenceContributor.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ class ComponentReferenceContributor : PsiReferenceContributor() {
7575
val attribute = element as? XmlAttribute ?: return emptyArray()
7676
val htmlTag = attribute.parent as? HtmlTag ?: return emptyArray()
7777

78+
if (attribute.name in TempestFrameworkUtil.BUILT_IN_DIRECTIVE_ATTRIBUTES) {
79+
return emptyArray()
80+
}
81+
7882
return arrayOf(TempestAttributeReference(element, htmlTag))
7983
// .apply { println("found references for ${element} ${this.joinToString { it.toString() }}") }
8084
}

src/main/resources/META-INF/plugin.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
<webSymbols.webTypes
2525
source="META-INF/webTypes.json"
2626
enableByDefault="true"/>
27+
<polySymbols.webTypes
28+
source="META-INF/webTypes.json"
29+
enableByDefault="true"/>
2730
<xml.tagNameProvider
2831
implementation="com.github.tempest.framework.ComponentTagNameProvider"/>
2932
<psi.referenceContributor

src/main/resources/META-INF/webTypes.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "Tempest",
44
"version": "1.0.0",
55
"description-markup": "markdown",
6-
"default-icon": "icon",
6+
"default-icon": "icons/tempest/icon.svg",
77
"contributions": {
88
"html": {
99
"elements": [
Lines changed: 27 additions & 22 deletions
Loading

src/main/resources/icons/tempest/icon_dark.svg

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)