Skip to content

Commit 801e12b

Browse files
author
hongyu9
committed
2 parents f1ee6ee + b8ff068 commit 801e12b

File tree

6 files changed

+19
-15
lines changed

6 files changed

+19
-15
lines changed

jetbrains_plugin/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Plugin basic information
22
pluginGroup=com.sina.weibo.agent
3-
pluginVersion=0.2.1
3+
pluginVersion=0.2.2
44

55
# Platform basic information
66
platformVersion=2023.3

jetbrains_plugin/src/main/kotlin/com/sina/weibo/agent/actors/MainThreadWebviewsShape.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class MainThreadWebviews(val project: Project) : MainThreadWebviewsShape {
9595
override fun postMessage(handle: WebviewHandle, value: String): Boolean {
9696
// logger.info("Sending message to Webview: handle=$handle")
9797
if(value.contains("theme")) {
98-
logger.info("Sending theme message to Webview")
98+
logger.debug("Sending theme message to Webview")
9999
}
100100

101101
return try {

jetbrains_plugin/src/main/kotlin/com/sina/weibo/agent/ipc/proxy/RPCProtocol.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ class RPCProtocol(
206206
// This is the first request we've sent in a while
207207
// Mark this moment as the start of the unresponsive countdown
208208
unresponsiveTime = System.currentTimeMillis() + UNRESPONSIVE_TIME
209-
LOG.info("Set initial unresponsive check time, request ID: $req, unresponsive time: ${unresponsiveTime}ms")
209+
LOG.debug("Set initial unresponsive check time, request ID: $req, unresponsive time: ${unresponsiveTime}ms")
210210
}
211211
unacknowledgedCount++
212212

@@ -414,7 +414,7 @@ class RPCProtocol(
414414
if (isDisposed) {
415415
throw CanceledException()
416416
}
417-
LOG.info("remoteCall: $rpcId.$methodName.${lastMessageId+1}")
417+
LOG.debug("remoteCall: $rpcId.$methodName.${lastMessageId+1}")
418418

419419
// Check if the last argument is a cancellation token
420420
var cancellationToken: Any? = null
@@ -480,7 +480,7 @@ class RPCProtocol(
480480
val messageType = MessageType.fromValue(buff.readUInt8()) ?: return
481481
val req = buff.readUInt32()
482482

483-
LOG.info("receiveOneMessage: $messageType, req: $req, length: $msgLength")
483+
LOG.debug("receiveOneMessage: $messageType, req: $req, length: $msgLength")
484484
when (messageType) {
485485
MessageType.RequestJSONArgs, MessageType.RequestJSONArgsWithCancellation -> {
486486
val (rpcId, method, args) = MessageIO.deserializeRequestJSONArgs(buff)
@@ -555,7 +555,7 @@ class RPCProtocol(
555555
args: List<Any?>,
556556
usesCancellationToken: Boolean
557557
) {
558-
LOG.info("receiveRequest:$req.$rpcId.$method()")
558+
LOG.debug("receiveRequest:$req.$rpcId.$method()")
559559
logger?.logIncoming(
560560
msgLength,
561561
req,

jetbrains_plugin/src/main/kotlin/com/sina/weibo/agent/webview/WebViewManager.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@ class WebViewInstance(
792792
source: String?,
793793
line: Int
794794
): Boolean {
795-
logger.info("WebView console message: [$level] $message (line: $line, source: $source)")
795+
logger.debug("WebView console message: [$level] $message (line: $line, source: $source)")
796796
return true
797797
}
798798
}, browser.cefBrowser)
@@ -864,7 +864,7 @@ class WebViewInstance(
864864
requestInitiator: String?,
865865
disableDefaultHandling: BoolRef?
866866
): CefResourceRequestHandler? {
867-
logger.info("getResourceRequestHandler,fsPath:${fsPath}")
867+
logger.debug("getResourceRequestHandler,fsPath:${fsPath}")
868868
if (fsPath != null && request?.url?.contains("localhost")==true) {
869869
// Set resource root directory
870870
val path = Paths.get(fsPath)
@@ -910,7 +910,7 @@ class WebViewInstance(
910910
*/
911911
fun executeJavaScript(script: String) {
912912
if (!isDisposed) {
913-
logger.info("WebView executing JavaScript, script length: ${script.length}")
913+
logger.debug("WebView executing JavaScript, script length: ${script.length}")
914914
browser.cefBrowser.executeJavaScript(script, browser.cefBrowser.url, 0)
915915
}
916916
}

jetbrains_plugin/src/main/kotlin/com/sina/weibo/agent/workspace/WorkspaceFileChangeManager.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class WorkspaceFileChangeManager(val project: Project) : Disposable {
8181
* @param newPath New workspace directory path
8282
*/
8383
private fun triggerWorkspaceRootChangeEvent(project: Project, oldPath: String?, newPath: String) {
84-
logger.info("Trigger workspace root change event: ${project.name}, old path: $oldPath, new path: $newPath")
84+
logger.debug("Trigger workspace root change event: ${project.name}, old path: $oldPath, new path: $newPath")
8585

8686
// Create workspace root change data
8787
val workspaceChangeData = WorkspaceRootChangeData(project, oldPath, newPath)
@@ -97,7 +97,7 @@ class WorkspaceFileChangeManager(val project: Project) : Disposable {
9797

9898
extHostWorkspace?.let {
9999
if(workspaceData != null) {
100-
logger.info("Send workspace root change to extension process: ${workspaceData.name}, folders: ${workspaceData.folders.size}")
100+
logger.debug("Send workspace root change to extension process: ${workspaceData.name}, folders: ${workspaceData.folders.size}")
101101
it.acceptWorkspaceData(workspaceData)
102102
}
103103
}
@@ -218,7 +218,7 @@ class WorkspaceFileChangeManager(val project: Project) : Disposable {
218218
* @param fileChangeData File change data
219219
*/
220220
private fun triggerFileChangeEvent(fileChangeData: WorkspaceFileChangeData) {
221-
logger.info("File changed: ${fileChangeData.file.path}, type: ${fileChangeData.changeType}")
221+
logger.debug("File changed: ${fileChangeData.file.path}, type: ${fileChangeData.changeType}")
222222

223223
// Send single file change event via EventBus
224224
project.getService(ProjectEventBus::class.java).emitInApplication(WorkspaceFileChangeEvent, fileChangeData)
@@ -229,7 +229,7 @@ class WorkspaceFileChangeManager(val project: Project) : Disposable {
229229
* @param directoryChangeData Directory change data
230230
*/
231231
private fun triggerDirectoryChangeEvent(directoryChangeData: WorkspaceFileChangeData) {
232-
logger.info("Directory changed: ${directoryChangeData.file.path}, type: ${directoryChangeData.changeType}")
232+
logger.debug("Directory changed: ${directoryChangeData.file.path}, type: ${directoryChangeData.changeType}")
233233

234234
// Send single directory change event via EventBus
235235
project.getService(ProjectEventBus::class.java).emitInApplication(WorkspaceDirectoryChangeEvent, directoryChangeData)
@@ -240,7 +240,7 @@ class WorkspaceFileChangeManager(val project: Project) : Disposable {
240240
* @param fileChanges List of file changes
241241
*/
242242
private fun triggerBulkFileChangeEvent(fileChanges: List<WorkspaceFileChangeData>, project: Project) {
243-
logger.info("Bulk file change, total ${fileChanges.size} files")
243+
logger.debug("Bulk file change, total ${fileChanges.size} files")
244244

245245
val proxy = PluginContext.getInstance(project).getRPCProtocol()?.getProxy(ServiceProxyRegistry.ExtHostContext.ExtHostFileSystemEventService)
246246
proxy?.let {
@@ -281,7 +281,7 @@ class WorkspaceFileChangeManager(val project: Project) : Disposable {
281281
* @param directoryChanges List of directory changes
282282
*/
283283
private fun triggerBulkDirectoryChangeEvent(directoryChanges: List<WorkspaceFileChangeData>, project: Project) {
284-
logger.info("Bulk directory change, total ${directoryChanges.size} directories")
284+
logger.debug("Bulk directory change, total ${directoryChanges.size} directories")
285285

286286
val proxy = PluginContext.getInstance(project).getRPCProtocol()?.getProxy(ServiceProxyRegistry.ExtHostContext.ExtHostFileSystemEventService)
287287
proxy?.let {

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ SPDX-License-Identifier: Apache-2.0
6868

6969
<!-- Change notes for the plugin -->
7070
<change-notes><![CDATA[
71+
<h3>Version 0.2.2</h3>
72+
<ul>
73+
<li>Support Kilo Code</li>
74+
</ul>
7175
<h3>Version 0.2.1</h3>
7276
<ul>
7377
<li>Introduce specific context menus and operations for extension</li>

0 commit comments

Comments
 (0)