Skip to content

Commit 27ff5a6

Browse files
committed
feat(goland): add Go language support
Add Go language support to the Goland project by modifying the build.gradle.kts file and the go.xml resource file. The Go language API is now included as a dependency and the project type is set to "GO". This enables the use of Go language features and plugins in the Goland IDE.
1 parent 584e6c5 commit 27ff5a6

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,9 @@ project(":csharp") {
588588
project(":goland") {
589589
intellij {
590590
version.set(golandVersion)
591+
type.set("GO")
592+
593+
// required if Go language API is needed:
591594
plugins.set(listOf("org.jetbrains.plugins.go"))
592595
}
593596
dependencies {

goland/src/main/kotlin/cc/unitmesh/go/context/GoMethodContextBuilder.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import cc.unitmesh.devti.context.MethodContext
44
import cc.unitmesh.devti.context.builder.MethodContextBuilder
55
import com.goide.psi.GoFunctionOrMethodDeclaration
66
import com.intellij.psi.PsiElement
7-
import com.intellij.psi.PsiNameIdentifierOwner
87

98
class GoMethodContextBuilder : MethodContextBuilder {
109
override fun getMethodContext(

goland/src/main/resources/cc.unitmesh.go.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
<!--suppress PluginXmlValidity -->
33
<dependencies>
44
<plugin id="org.jetbrains.plugins.go"/>
5+
<plugin id="com.intellij.modules.go-capable"/>
6+
<plugin id="com.intellij.modules.platform"/>
57
</dependencies>
68

79
<extensions defaultExtensionNs="cc.unitmesh">

0 commit comments

Comments
 (0)