Skip to content

Commit b08ccf9

Browse files
committed
refactor(project): remove local-bundle module and move related files #271
Deleted the `local-bundle` module and its associated files. Moved `LocalJsonTextProvider` to the core module and updated related configurations in `settings.gradle.kts`, `build.gradle.kts`, and plugin XML files.
1 parent 49d0bfe commit b08ccf9

File tree

8 files changed

+7
-33
lines changed

8 files changed

+7
-33
lines changed

build.gradle.kts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,6 @@ project(":") {
257257
pluginModule(implementation(project(":goland")))
258258
pluginModule(implementation(project(":rust")))
259259

260-
pluginModule(implementation(project(":local-bundle")))
261260
pluginModule(implementation(project(":exts:ext-database")))
262261
pluginModule(implementation(project(":exts:ext-git")))
263262
pluginModule(implementation(project(":exts:ext-http-client")))
@@ -282,7 +281,6 @@ project(":") {
282281
implementation(project(":goland"))
283282
implementation(project(":rust"))
284283

285-
implementation(project(":local-bundle"))
286284
implementation(project(":exts:ext-database"))
287285
implementation(project(":exts:ext-git"))
288286
implementation(project(":exts:ext-http-client"))
@@ -665,18 +663,6 @@ project(":exts:ext-endpoints") {
665663
implementation(project(":core"))
666664
}
667665
}
668-
669-
670-
project(":local-bundle") {
671-
dependencies {
672-
intellijPlatform {
673-
intellijIde(prop("ideaVersion"))
674-
}
675-
676-
implementation(project(":core"))
677-
}
678-
}
679-
680666
project(":exts:ext-terminal") {
681667
dependencies {
682668
intellijPlatform {
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
<!-- Defines IDEA IDE-specific contributions and implementations. -->
22
<idea-plugin>
3+
<extensions defaultExtensionNs="cc.unitmesh">
4+
<jsonTextProvider implementation="cc.unitmesh.devti.provider.local.LocalJsonTextProvider"/>
5+
</extensions>
36
</idea-plugin>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
<!-- Defines IDEA IDE-specific contributions and implementations. -->
22
<idea-plugin>
3+
<extensions defaultExtensionNs="cc.unitmesh">
4+
<jsonTextProvider implementation="cc.unitmesh.devti.provider.local.LocalJsonTextProvider"/>
5+
</extensions>
36
</idea-plugin>

local-bundle/src/main/kotlin/cc/unitmesh/local/provider/LocalJsonTextProvider.kt renamed to core/src/main/kotlin/cc/unitmesh/devti/provider/local/LocalJsonTextProvider.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
package cc.unitmesh.local.provider
1+
package cc.unitmesh.devti.provider.local
22

33
import cc.unitmesh.devti.custom.schema.CUSTOM_AGENT_FILE_NAME
4-
import cc.unitmesh.devti.provider.local.JsonTextProvider
54
import com.intellij.lang.Language
65
import com.intellij.openapi.editor.Document
76
import com.intellij.openapi.editor.colors.EditorColorsUtil

local-bundle/README.md

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

local-bundle/src/main/resources/cc.unitmesh.local.xml

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

settings.gradle.kts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ include(
1414
)
1515

1616
include(
17-
"local-bundle",
18-
1917
"exts:ext-database",
2018
"exts:ext-terminal",
2119
// git4idea is the git plugin for IntelliJ IDEA, so we rename it to `exts-git`

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
<module name="cc.unitmesh.go"/>
3030
<module name="cc.unitmesh.rust"/>
3131
<!-- <module name="cc.unitmesh.csharp"/>-->
32-
<module name="cc.unitmesh.local"/>
3332

3433
<!-- extension modules -->
3534
<module name="cc.unitmesh.database"/>

0 commit comments

Comments
 (0)