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
@@ -133,6 +133,27 @@ tasks.compileJava{
133
133
options.encoding ="UTF-8"
134
134
}
135
135
136
+
tasks.register("lsp-develop"){
137
+
group ="processing"
138
+
// This task is used to run the LSP server when developing the LSP server itself
139
+
// to run the LSP server for end-users use `processing lsp` instead
140
+
dependencies.add("runtimeOnly", project(":java"))
141
+
142
+
// Usage: ./gradlew lsp-develop
143
+
// Make sure the cwd is set the project directory
144
+
// or use -p to set the project directory
145
+
146
+
// Modify run configuration to start the LSP server rather than the Processing IDE
147
+
val run = tasks.named<JavaExec>("run").get()
148
+
run.standardInput =System.`in`
149
+
run.standardOutput =System.out
150
+
dependsOn(run)
151
+
152
+
// 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