@@ -109,20 +109,22 @@ func NewCollector(repo string, cli *LSPClient) *Collector {
109109
110110func (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