Skip to content

Commit

Permalink
feat(harmonyos): add support for Android Studio platform
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
phodal committed Feb 23, 2024
1 parent 56f7a99 commit f611959
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -8,6 +8,7 @@ import com.intellij.psi.PsiFile
class AndroidPageToArkUiAction : ChatBaseIntention() {
override fun isAvailable(project: Project, editor: Editor?, file: PsiFile?): Boolean {
return System.getProperty("idea.platform.prefix", "idea") == "DevEcoStudio"
|| System.getProperty("idea.platform.prefix", "idea") == "AndroidStudio"
}

override fun priority(): Int = 900
Expand Down

0 comments on commit f611959

Please sign in to comment.