Skip to content

Commit 26751c9

Browse files
committed
all: run gofumpt
Signed-off-by: Koichi Shiraishi <[email protected]>
1 parent fd763be commit 26751c9

File tree

5 files changed

+27
-15
lines changed

5 files changed

+27
-15
lines changed

basic.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -683,16 +683,16 @@ const (
683683
//
684684
// Here is an example how such a string can be constructed using JavaScript / TypeScript:
685685
//
686-
// let markdown: MarkdownContent = {
687-
// kind: MarkupKind.Markdown,
688-
// value: [
689-
// '# Header',
690-
// 'Some text',
691-
// '```typescript',
692-
// 'someCode();',
693-
// '```'
694-
// ].join('\n')
695-
// };
686+
// let markdown: MarkdownContent = {
687+
// kind: MarkupKind.Markdown,
688+
// value: [
689+
// '# Header',
690+
// 'Some text',
691+
// '```typescript',
692+
// 'someCode();',
693+
// '```'
694+
// ].join('\n')
695+
// };
696696
//
697697
// NOTE: clients might sanitize the return markdown. A client could decide to
698698
// remove HTML from the markdown to avoid script execution.

capabilities_client.go

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,13 +1021,20 @@ type GeneralClientCapabilities struct {
10211021
//
10221022
// The following features from the ECMAScript 2020 regular expression specification are NOT mandatory for a client:
10231023
//
1024-
// Assertions
1024+
// Assertions
1025+
//
10251026
// Lookahead assertion, Negative lookahead assertion, lookbehind assertion, negative lookbehind assertion.
1026-
// Character classes
1027+
//
1028+
// Character classes
1029+
//
10271030
// Matching control characters using caret notation (e.g. "\cX") and matching UTF-16 code units (e.g. "\uhhhh").
1028-
// Group and ranges
1031+
//
1032+
// Group and ranges
1033+
//
10291034
// Named capturing groups.
1030-
// Unicode property escapes
1035+
//
1036+
// Unicode property escapes
1037+
//
10311038
// None of the features needs to be supported.
10321039
//
10331040
// The only regular expression flag that a client needs to support is "i" to specify a case insensitive search.

client.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ func ClientHandler(client Client, handler jsonrpc2.Handler) jsonrpc2.Handler {
4545
}
4646

4747
// clientDispatch implements jsonrpc2.Handler.
48+
//
4849
//nolint:funlen,cyclop
4950
func clientDispatch(ctx context.Context, client Client, reply jsonrpc2.Replier, req jsonrpc2.Request) (handled bool, err error) {
5051
if ctx.Err() != nil {

language.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ const (
324324
)
325325

326326
// String implements fmt.Stringer.
327+
//
327328
//nolint:cyclop
328329
func (k CompletionItemKind) String() string {
329330
switch k {
@@ -730,6 +731,7 @@ const (
730731
)
731732

732733
// String implements fmt.Stringer.
734+
//
733735
//nolint:cyclop
734736
func (k SymbolKind) String() string {
735737
switch k {

server.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ func ServerDispatcher(conn jsonrpc2.Conn, logger *zap.Logger) Server {
2525
}
2626

2727
// ServerHandler jsonrpc2.Handler of Language Server Prococol Server.
28+
//
2829
//nolint:unparam
2930
func ServerHandler(server Server, handler jsonrpc2.Handler) jsonrpc2.Handler {
3031
h := func(ctx context.Context, reply jsonrpc2.Replier, req jsonrpc2.Request) error {
@@ -55,6 +56,7 @@ func ServerHandler(server Server, handler jsonrpc2.Handler) jsonrpc2.Handler {
5556
}
5657

5758
// serverDispatch implements jsonrpc2.Handler.
59+
//
5860
//nolint:gocognit,funlen,gocyclo,cyclop
5961
func serverDispatch(ctx context.Context, server Server, reply jsonrpc2.Replier, req jsonrpc2.Request) (handled bool, err error) {
6062
if ctx.Err() != nil {
@@ -1171,7 +1173,7 @@ func (s *server) CodeLensResolve(ctx context.Context, params *CodeLens) (_ *Code
11711173

11721174
// ColorPresentation sends the request from the client to the server to obtain a list of presentations for a color value at a given location.
11731175
//
1174-
// Clients can use the result to
1176+
// # Clients can use the result to
11751177
//
11761178
// - modify a color reference.
11771179
// - show in a color picker and let users pick one of the presentations.

0 commit comments

Comments
 (0)