Skip to content

Commit f611959

Browse files
committed
feat(harmonyos): add support for Android Studio platform
Add support for Android Studio platform in the `isAvailable` method of `AndroidPageToArkUiAction` class. - Check if the IDE platform prefix is either "DevEcoStudio" or "AndroidStudio". - Set the priority of the action to 900.
1 parent 56f7a99 commit f611959

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

exts/ext-harmonyos/src/main/kotlin/cc/unitmesh/harmonyos/actions/AndroidPageToArkUiAction.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import com.intellij.psi.PsiFile
88
class AndroidPageToArkUiAction : ChatBaseIntention() {
99
override fun isAvailable(project: Project, editor: Editor?, file: PsiFile?): Boolean {
1010
return System.getProperty("idea.platform.prefix", "idea") == "DevEcoStudio"
11+
|| System.getProperty("idea.platform.prefix", "idea") == "AndroidStudio"
1112
}
1213

1314
override fun priority(): Int = 900

0 commit comments

Comments
 (0)