You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/build.gradle.kts
+21Lines changed: 21 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -136,6 +136,27 @@ tasks.compileJava{
136
136
options.encoding ="UTF-8"
137
137
}
138
138
139
+
tasks.register("lsp-develop"){
140
+
group ="processing"
141
+
// This task is used to run the LSP server when developing the LSP server itself
142
+
// to run the LSP server for end-users use `processing lsp` instead
143
+
dependencies.add("runtimeOnly", project(":java"))
144
+
145
+
// Usage: ./gradlew lsp-develop
146
+
// Make sure the cwd is set to the project directory
147
+
// or use -p to set the project directory
148
+
149
+
// Modify run configuration to start the LSP server rather than the Processing IDE
150
+
val run = tasks.named<JavaExec>("run").get()
151
+
run.standardInput =System.`in`
152
+
run.standardOutput =System.out
153
+
dependsOn(run)
154
+
155
+
// TODO: Remove after command line is integrated, then add the `lsp` argument instead, `lsp-develop` can't be removed because we still need to pipe the input and output
0 commit comments