Skip to content

Commit f72c309

Browse files
committed
fix: fix nits from review
1 parent 21b8965 commit f72c309

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

lang/lsp/handler.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ loop:
9494

9595
func (h *lspHandler) Handle(ctx context.Context, conn *jsonrpc2.Conn, req *jsonrpc2.Request) {
9696
// This method will be called for both requests and notifications
97-
log.Info("handle method: %s\n", req.Method)
97+
log.Debug("handle method: %s\n", req.Method)
9898
if req.Params != nil {
99-
log.Info("param: %s\n", string(*req.Params))
99+
log.Debug("param: %s\n", string(*req.Params))
100100
}
101101
if req.Notif {
102102
// This is a notification
@@ -129,7 +129,7 @@ func (h *lspHandler) handleNotification(ctx context.Context, conn *jsonrpc2.Conn
129129
switch req.Method {
130130
case "textDocument/publishDiagnostics":
131131
// This notification is sent from the server to the client to signal results of validation runs.
132-
fmt.Printf("Received publishDiagnostics notification:\n%s\n", string(*req.Params))
132+
log.Debug("Received publishDiagnostics notification:\n%s\n", string(*req.Params))
133133
return
134134
// exit
135135
case "exit":

script/run_all_testdata.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
#
44
# USAGE:
55
# 1. Save the uniast to out/
6-
# $ OUTDIR=out/ ./script/run_testdata.sh
6+
# $ OUTDIR=out/ ./script/run_all_testdata.sh
77
#
88
# 2. Save the uniast to out/ , colorize output for human readable terminal
9-
# OUTDIR=out/ PARALLEL_FLAGS=--ctag ./script/run_testdata.sh
9+
# OUTDIR=out/ PARALLEL_FLAGS=--ctag ./script/run_all_testdata.sh
1010
#
1111
# 3. Use a custom abcoder executable
12-
# OUTDIR=out/ ABCEXE="./other_abcoder" ./script/run_testdata.sh
12+
# OUTDIR=out/ ABCEXE="./other_abcoder" ./script/run_all_testdata.sh
1313

1414
SCRIPT_DIR=$(dirname "$(readlink -f "$0")")
1515
REPO_ROOT=$(realpath --relative-to=$(pwd) "$SCRIPT_DIR/..")

0 commit comments

Comments
 (0)