Skip to content

Commit 817ed5c

Browse files
committed
refactor(inlay): adjust inlay component size and remove unused code
- Adjusted the size of inlay components in ComponentInlaysContainer. - Removed unused code related to inlay component sizing. - Updated the list of AI engines in Constants.kt to remove XingHuo. - Removed unused variables xingHuoApiSecrect and xingHuoApiKey in AutoDevSettingsState.kt. - Removed comate-spec-lang dependency in gradle/libs.versions.toml.
1 parent 4b427b4 commit 817ed5c

File tree

4 files changed

+2
-5
lines changed

4 files changed

+2
-5
lines changed

gradle/libs.versions.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ jackson-databind = "com.fasterxml.jackson.core:jackson-databind:2.14.2"
3737
okhttp = "com.squareup.okhttp3:okhttp:4.4.1"
3838
okhttp-sse = "com.squareup.okhttp3:okhttp-sse:4.4.1"
3939

40-
comate-spec-lang = "org.archguard.comate:spec-lang:0.2.0"
4140
json-pathkt = "com.nfeld.jsonpathkt:jsonpathkt:2.0.1"
4241

4342
# implementation("org.yaml:snakeyaml:2.2")

src/main/kotlin/cc/unitmesh/devti/settings/AutoDevSettingsState.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ class AutoDevSettingsState : PersistentStateComponent<AutoDevSettingsState> {
3535
var xingHuoApiSecrect = ""
3636
var xingHuoApiKey = ""
3737

38-
3938
/**
4039
* 自定义引擎返回的数据格式是否是 [SSE](https://www.ruanyifeng.com/blog/2017/05/server-sent_events.html) 格式
4140
*/

src/main/kotlin/cc/unitmesh/devti/settings/Constants.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
package cc.unitmesh.devti.settings
22

33
val OPENAI_MODEL = arrayOf("gpt-3.5-turbo", "gpt-3.5-turbo-16k", "gpt-4", "custom")
4-
val AI_ENGINES = arrayOf("OpenAI", "Custom", "Azure", "XingHuo")
4+
val AI_ENGINES = arrayOf("OpenAI", "Custom", "Azure")
55

66
enum class AIEngines {
7-
OpenAI, Custom, Azure, XingHuo
7+
OpenAI, Custom, Azure
88
}
99

1010
val GIT_TYPE = arrayOf("Github" , "Gitlab")

src/main/kotlin/com/intellij/temporary/inlay/ComponentInlaysContainer.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ internal class ComponentInlaysContainer(val editor: Editor) : JComponent() {
5454

5555
bounds = SwingUtilities.calculateInnerArea(content, null as Rectangle?)
5656
inlays.forEach {
57-
// it.renderer.component.setSize(bounds.width, it.renderer.inlaySize.height)
5857
it.renderer.component.size = it.renderer.inlaySize
5958
}
6059
}

0 commit comments

Comments
 (0)