Skip to content

Commit 59d06f7

Browse files
authored
Merge pull request nametake#22 from tMinamiii/feature/add-didChangeConfiguration
fix: workspace/didChangeConfiguration error
2 parents bcc1b49 + d0ca632 commit 59d06f7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

handler.go

+6
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ func (h *langHandler) handle(ctx context.Context, conn *jsonrpc2.Conn, req *json
128128
return h.handleTextDocumentDidChange(ctx, conn, req)
129129
case "textDocument/didSave":
130130
return h.handleTextDocumentDidSave(ctx, conn, req)
131+
case "workspace/didChangeConfiguration":
132+
return h.handlerWorkspaceDidChangeConfiguration(ctx, conn, req)
131133
}
132134

133135
return nil, &jsonrpc2.Error{Code: jsonrpc2.CodeMethodNotFound, Message: fmt.Sprintf("method not supported: %s", req.Method)}
@@ -189,3 +191,7 @@ func (h *langHandler) handleTextDocumentDidSave(_ context.Context, _ *jsonrpc2.C
189191

190192
return nil, nil
191193
}
194+
195+
func (h *langHandler) handlerWorkspaceDidChangeConfiguration(_ context.Context, _ *jsonrpc2.Conn, req *jsonrpc2.Request) (result interface{}, err error) {
196+
return nil, nil
197+
}

0 commit comments

Comments
 (0)