Skip to content

Commit 70c2e1c

Browse files
committed
fix: fix nits from review
1 parent 484498c commit 70c2e1c

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

lang/lsp/handler.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ package lsp
1717
import (
1818
"container/list"
1919
"context"
20-
"fmt"
2120
"sync"
2221
"time"
2322

@@ -94,9 +93,9 @@ loop:
9493

9594
func (h *lspHandler) Handle(ctx context.Context, conn *jsonrpc2.Conn, req *jsonrpc2.Request) {
9695
// This method will be called for both requests and notifications
97-
log.Info("handle method: %s\n", req.Method)
96+
log.Debug("handle method: %s\n", req.Method)
9897
if req.Params != nil {
99-
log.Info("param: %s\n", string(*req.Params))
98+
log.Debug("param: %s\n", string(*req.Params))
10099
}
101100
if req.Notif {
102101
// This is a notification
@@ -129,7 +128,7 @@ func (h *lspHandler) handleNotification(ctx context.Context, conn *jsonrpc2.Conn
129128
switch req.Method {
130129
case "textDocument/publishDiagnostics":
131130
// 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))
131+
log.Debug("Received publishDiagnostics notification:\n%s\n", string(*req.Params))
133132
return
134133
// exit
135134
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)