Skip to content

Commit b3d6331

Browse files
committed
feat: ignore pystd if !NeedStdSymbols
1 parent 24b2188 commit b3d6331

1 file changed

Lines changed: 16 additions & 14 deletions

File tree

lang/collect/collect.go

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -109,20 +109,22 @@ func NewCollector(repo string, cli *LSPClient) *Collector {
109109

110110
func (c *Collector) Collect(ctx context.Context) error {
111111
// Example code to configure the LSP client
112-
// if c.Language == uniast.Python {
113-
// conf := map[string]interface{}{
114-
// "settings": map[string]interface{}{
115-
// "pylsp": map[string]interface{}{
116-
// "plugins": map[string]interface{}{
117-
// "jedi_definition": map[string]interface{}{
118-
// "follow_builtin_definitions": false,
119-
// },
120-
// },
121-
// },
122-
// },
123-
// }
124-
// c.cli.Notify(ctx, "workspace/didChangeConfiguration", conf)
125-
// }
112+
if !c.NeedStdSymbol {
113+
if c.Language == uniast.Python {
114+
conf := map[string]interface{}{
115+
"settings": map[string]interface{}{
116+
"pylsp": map[string]interface{}{
117+
"plugins": map[string]interface{}{
118+
"jedi_definition": map[string]interface{}{
119+
"follow_builtin_definitions": false,
120+
},
121+
},
122+
},
123+
},
124+
}
125+
c.cli.Notify(ctx, "workspace/didChangeConfiguration", conf)
126+
}
127+
}
126128

127129
excludes := make([]string, len(c.Excludes))
128130
for i, e := range c.Excludes {

0 commit comments

Comments
 (0)