Skip to content

Commit bd87e6c

Browse files
committed
Change to use upload-artifact@4
1 parent 35b24b4 commit bd87e6c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
# Collect Tests Result of failed tests
8484
- name: Collect Tests Result
8585
if: ${{ failure() }}
86-
uses: actions/upload-artifact@v3
86+
uses: actions/upload-artifact@v4
8787
with:
8888
name: tests-result
8989
path: ${{ github.workspace }}/build/reports/tests
@@ -130,7 +130,7 @@ jobs:
130130
131131
# Store already-built plugin as an artifact for downloading
132132
- name: Upload artifact
133-
uses: actions/upload-artifact@v3
133+
uses: actions/upload-artifact@v4
134134
with:
135135
name: ${{ steps.artifact.outputs.filename }}
136136
path: ./build/distributions/content/*/*

src/main/java/org/c3lang/intellij/C3ElementColorProvider.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,12 @@ class C3ElementColorProvider : ElementColorProvider
2525

2626
override fun setColorTo(element: PsiElement, color: Color)
2727
{
28+
// This workaround is due to https://youtrack.jetbrains.com/issue/IDEA-331607/JavaColorProvider-issues
29+
// remove when element actually always is the last element!
2830
if (lastElement == null || element.parent.parent != null) {
2931
lastElement = element
3032
}
33+
// Try to retain the original formatting (uppercase or lowercase hex)
3134
val upper = element.text.contains(Regex("[A-F]"))
3235
val str = if (element.text.length == 8) {
3336
String.format(if (upper) "0x%02X%02X%02X" else "0x%02x%02x%02x", color.red, color.green, color.blue)

0 commit comments

Comments
 (0)