Skip to content

Commit e095964

Browse files
committed
🎨 (plugin): 修复部分检查错误配置
1 parent 5c085d9 commit e095964

File tree

3 files changed

+33
-15
lines changed

3 files changed

+33
-15
lines changed

src/main/kotlin/irony/pycharm/qsseditor/QSSClient.kt

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@
1313
package irony.pycharm.qsseditor
1414
import com.intellij.openapi.diagnostic.logger
1515
import kotlinx.serialization.json.*
16-
import okhttp3.OkHttpClient
17-
import okhttp3.Request
18-
import okhttp3.WebSocket
19-
import okhttp3.WebSocketListener
16+
import okhttp3.*
2017
import java.util.concurrent.TimeUnit
2118

2219
private val Log = logger<QSSClient>()
@@ -37,14 +34,14 @@ class QSSClient : WebSocketListener() {
3734
}
3835

3936
override fun onOpen(
40-
webSocket: okhttp3.WebSocket,
41-
response: okhttp3.Response,
37+
webSocket: WebSocket,
38+
response: Response,
4239
) {
4340
Log.debug("onOpen")
4441
}
4542

4643
override fun onMessage(
47-
webSocket: okhttp3.WebSocket,
44+
webSocket: WebSocket,
4845
text: String,
4946
) {
5047
Log.debug("onMessage: $text")
@@ -65,7 +62,7 @@ class QSSClient : WebSocketListener() {
6562
}
6663

6764
override fun onClosing(
68-
webSocket: okhttp3.WebSocket,
65+
webSocket: WebSocket,
6966
code: Int,
7067
reason: String,
7168
) {
@@ -78,9 +75,9 @@ class QSSClient : WebSocketListener() {
7875
}
7976

8077
override fun onFailure(
81-
webSocket: okhttp3.WebSocket,
78+
webSocket: WebSocket,
8279
t: Throwable,
83-
response: okhttp3.Response?,
80+
response: Response?,
8481
) {
8582
Log.warn("onFailure, ${t.message}")
8683
if (done) {

src/main/kotlin/irony/pycharm/qsseditor/QSSStartup.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ package irony.pycharm.qsseditor
1212

1313
import com.intellij.openapi.diagnostic.logger
1414
import com.intellij.openapi.project.Project
15-
import com.intellij.openapi.startup.StartupActivity
15+
import com.intellij.openapi.startup.ProjectActivity
1616

1717
private val Log = logger<QSSStartup>()
1818

19-
internal class QSSStartup : StartupActivity {
20-
override fun runActivity(project: Project) {
19+
class QSSStartup : ProjectActivity {
20+
override suspend fun execute(project: Project) {
2121
// 启动客户端连接
2222
Log.info("project[${project.name}] opened")
2323
QSSClient.connect(QSSState.instance.host, QSSState.instance.port)

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

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,29 @@
1414
Simple HTML elements (text formatting, paragraphs, and lists) can be added inside of <![CDATA[ ]]> tag.
1515
Guidelines: https://plugins.jetbrains.com/docs/marketplace/plugin-overview-page.html#plugin-description -->
1616
<description><![CDATA[
17-
Enter short description for your plugin here.<br>
18-
<em>most HTML tags may be used</em>
17+
# QSSEditor
18+
19+
QSS Editor Proxy For Qt Designer
20+
21+
## QQ Group
22+
23+
[PyQt 学习](https://jq.qq.com/?_wv=1027&k=5QVVEdF)
24+
25+
## Notice
26+
27+
Must Install Proxy Server from [QSSEditor](https://github.com/PyQt5/QSSEditor/releases) first
28+
29+
## Configure
30+
31+
`vscode` Setting Panel, search `QSSEditor`
32+
33+
- auto apply
34+
- server host
35+
- server port
36+
37+
## Preview
38+
39+
![QSSEditor](https://github.com/PyQt5/QSSEditor/raw/main/QSSEditor.gif)
1940
]]></description>
2041

2142
<!-- Product and plugin compatibility requirements.

0 commit comments

Comments
 (0)