Skip to content

Commit 53ea8e9

Browse files
committed
feat(plugin): 升级插件版本并优化功能
- 更新插件版本至 1.1.0 - 兼容 IntelliJ IDEA 2024.2.5 - 移除 MyJavaExt 类 - 优化 MethodInlayProvider 中的提示位置和格式 - 更新 README 中的插件信息和安装指南
1 parent 7fba84e commit 53ea8e9

4 files changed

Lines changed: 10 additions & 22 deletions

File tree

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
IntelliJ IDEA / PhpStorm Hyperf Plugin
22
========================
3-
[toc]
43

54
| Key | Value |
65
|------------|-------------------------------------------|
7-
| Plugin Url | https://plugins.jetbrains.com/plugin/23007 |
6+
| Plugin Url | https://plugins.jetbrains.com/plugin/23164 |
87
| ID | `io.maliboot.www.hyperf` |
98
| Changelog | [CHANGELOG](CHANGELOG.md) |
109
<!-- Plugin description -->
@@ -14,11 +13,11 @@ This is a PHPStorm plugin that provides support for the hyperf framework/compone
1413
# 简介
1514
这是一个对`hyperf`框架/组件、或者依赖`hyperf组件`的第三方`vendor`扩展包,提供功能支持的`PHPStorm`插件。
1615

17-
[功能介绍](https://github.com/maliboot/idea-hyperf-plugin/blob/master/README.md)
16+
[功能介绍传送门](https://github.com/maliboot/idea-hyperf-plugin/blob/master/README.md)
1817
<!-- Plugin description end -->
1918

2019
# Install
21-
* 通过插件市场安装 [Hyperf Booster](https://plugins.jetbrains.com/plugin/23007) `Settings -> Plugins -> Browse repositories`
20+
* 通过插件市场安装 [Hyperf Booster](https://plugins.jetbrains.com/plugin/23164) `Settings -> Plugins -> Browse repositories`
2221
* 通过本地磁盘安装 [Hyperf Booster](https://github.com/maliboot/idea-hyperf-plugin/releases) `Settings -> Plugins -> Install Plugin from Disk...`,插件jar包可以在[release](https://github.com/maliboot/idea-hyperf-plugin/releases)页面找到
2322
* 预览版本只能通过[release](https://github.com/maliboot/idea-hyperf-plugin/releases)页面安装,里面包含了一些正在测试中的功能
2423

gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
pluginGroup = io.maliboot.devkit
22
pluginName = Hyperf Booster
3-
pluginVersion = 1.0.1
3+
pluginVersion = 1.1.0
44
pluginRepositoryUrl = https://github.com/maliboot/idea-hyperf-plugin
55

6-
pluginSinceBuild = 231
7-
pluginUntilBuild =
6+
pluginSinceBuild = 241.*
7+
pluginUntilBuild = 242.*
88

99
platformType = PS
1010
platformVersion = 2024.2.5

src/main/java/io/maliboot/devkit/hyperf/common/MyJavaExt.java

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

src/main/kotlin/io/maliboot/devkit/idea/lombok/codeInsight/MethodInlayProvider.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import com.intellij.openapi.editor.Editor
55
import com.intellij.psi.PsiElement
66
import com.intellij.psi.PsiFile
77
import com.intellij.psi.SmartPointerManager
8-
import com.intellij.refactoring.suggested.endOffset
8+
import com.intellij.psi.util.startOffset
99
import com.jetbrains.php.lang.psi.elements.PhpClass
1010
import io.maliboot.devkit.idea.common.LombokBundle
1111
import io.maliboot.devkit.idea.lombok.psi.FakePsiPhpMethod
@@ -34,9 +34,10 @@ class MethodInlayProvider : InlayHintsProvider {
3434
if (fakeMethodEntry.generatedByFQN != field.fqn) {
3535
continue
3636
}
37+
3738
sink.addPresentation(
38-
position = InlineInlayPosition(field.endOffset + 1, true),
39-
hasBackground = false
39+
position = InlineInlayPosition(field.startOffset + field.textLength + 1, true),
40+
hintFormat = HintFormat.default
4041
) {
4142
text(
4243
fakeMethodEntry.getFeatureName(),

0 commit comments

Comments
 (0)