10
10
import pluggy
11
11
from pluggy ._hooks import HookImpl
12
12
13
- from pylsp import utils , hookspecs , uris , PYLSP
13
+ from pylsp import _utils , hookspecs , uris , PYLSP
14
14
15
15
# See compatibility note on `group` keyword:
16
16
# https://docs.python.org/3/library/importlib.metadata.html#entry-points
@@ -94,11 +94,11 @@ def __init__(self, root_uri, init_opts, process_id, capabilities):
94
94
log .info ("Loaded pylsp plugin %s from %s" , name , plugin )
95
95
96
96
for plugin_conf in self ._pm .hook .pylsp_settings (config = self ):
97
- self ._plugin_settings = utils .merge_dicts (
97
+ self ._plugin_settings = _utils .merge_dicts (
98
98
self ._plugin_settings , plugin_conf
99
99
)
100
100
101
- self ._plugin_settings = utils .merge_dicts (
101
+ self ._plugin_settings = _utils .merge_dicts (
102
102
self ._plugin_settings , self ._init_opts .get ("pylsp" , {})
103
103
)
104
104
@@ -144,10 +144,10 @@ def settings(self, document_path=None):
144
144
sources = self ._settings .get ("configurationSources" , DEFAULT_CONFIG_SOURCES )
145
145
146
146
# Plugin configuration
147
- settings = utils .merge_dicts (settings , self ._plugin_settings )
147
+ settings = _utils .merge_dicts (settings , self ._plugin_settings )
148
148
149
149
# LSP configuration
150
- settings = utils .merge_dicts (settings , self ._settings )
150
+ settings = _utils .merge_dicts (settings , self ._settings )
151
151
152
152
# User configuration
153
153
for source_name in reversed (sources ):
@@ -158,7 +158,7 @@ def settings(self, document_path=None):
158
158
log .debug (
159
159
"Got user config from %s: %s" , source .__class__ .__name__ , source_conf
160
160
)
161
- settings = utils .merge_dicts (settings , source_conf )
161
+ settings = _utils .merge_dicts (settings , source_conf )
162
162
163
163
# Project configuration
164
164
for source_name in reversed (sources ):
@@ -169,15 +169,15 @@ def settings(self, document_path=None):
169
169
log .debug (
170
170
"Got project config from %s: %s" , source .__class__ .__name__ , source_conf
171
171
)
172
- settings = utils .merge_dicts (settings , source_conf )
172
+ settings = _utils .merge_dicts (settings , source_conf )
173
173
174
174
log .debug ("With configuration: %s" , settings )
175
175
176
176
return settings
177
177
178
178
def find_parents (self , path , names ):
179
179
root_path = uris .to_fs_path (self ._root_uri )
180
- return utils .find_parents (root_path , path , names )
180
+ return _utils .find_parents (root_path , path , names )
181
181
182
182
def plugin_settings (self , plugin , document_path = None ):
183
183
return (
0 commit comments