Skip to content

Commit 98911ef

Browse files
committed
fix: simply keep behavior of golang same as before
1 parent fdfd874 commit 98911ef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lang/lsp/client.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,9 @@ func initLSPClient(ctx context.Context, svr io.ReadWriteCloser, dir DocumentURI,
143143
},
144144
"textDocument": map[string]interface{}{
145145
"documentSymbol": map[string]interface{}{
146-
"hierarchicalDocumentSymbolSupport": (language != uniast.Java),
146+
// Java uses tree-sitter instead of hierarchical symbols
147+
// Golang stays the same as older versions. ABCoder do not use gopls, so don't play with it.
148+
"hierarchicalDocumentSymbolSupport": (language != uniast.Java && language != uniast.Golang),
147149
},
148150
},
149151
}

0 commit comments

Comments
 (0)