Skip to content

Commit 73f8e81

Browse files
committed
final cleanups
1 parent e0a4f22 commit 73f8e81

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

modules/language-support/src/main/scala/playground/language/Feedback.scala

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ trait Feedback[F[_]] {
1414
msg: String
1515
): F[Unit]
1616

17+
// custom smithyql/showOutputPanel notification in the client
1718
def showOutputPanel: F[Unit]
1819

1920
def logOutput(

modules/lsp-kernel/src/main/scala/playground/lsp/LanguageServer.scala

+1
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ trait LanguageServer[F[_]] {
9191
arguments: List[Json],
9292
): F[Unit]
9393

94+
// custom smithyql/runQuery LSP request
9495
def runFile(
9596
params: RunFileParams
9697
): F[Unit]

modules/lsp/src/main/scala/playground/lsp/PlaygroundLanguageClient.scala

-12
This file was deleted.

modules/lsp/src/main/scala/playground/lsp/PlaygroundLanguageClientAdapter.scala

+9
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import cats.effect.kernel.Async
44
import cats.syntax.all.*
55
import com.google.gson.JsonElement
66
import org.eclipse.lsp4j
7+
import org.eclipse.lsp4j.jsonrpc.services.JsonNotification
78

89
import java.util.concurrent.CompletableFuture
910
import scala.jdk.CollectionConverters.*
@@ -65,3 +66,11 @@ object PlaygroundLanguageClientAdapter {
6566
}
6667

6768
}
69+
70+
trait PlaygroundLanguageClient extends lsp4j.services.LanguageClient {
71+
72+
@JsonNotification("smithyql/showOutputPanel")
73+
def showOutputPanel(
74+
): Unit
75+
76+
}

0 commit comments

Comments
 (0)