22from .core .css import css
33from .core .logging import debug
44from .core .logging import notify
5- from .core .logging import notify_err
5+ from .core .logging import notify_error
66from .core .registry import windows
77from .core .sessions import get_plugin
88from .core .transports import create_transport
@@ -132,19 +132,19 @@ def run(self, base_package_name: str) -> None:
132132 try :
133133 urllib .parse .urlparse (base_url )
134134 except Exception :
135- msg = "The clipboard content must be a URL to a package.json file."
135+ message = "The clipboard content must be a URL to a package.json file."
136136 status = "Clipboard must be a URL to package.json"
137- notify_err (sublime .active_window (), msg , status )
137+ notify_error (sublime .active_window (), message , status )
138138 return
139139 if not base_url .endswith ("package.json" ):
140- msg = "URL must end with 'package.json'"
141- notify_err (sublime .active_window (), msg , msg )
140+ message = "URL must end with 'package.json'"
141+ notify_error (sublime .active_window (), message , message )
142142 return
143143 try :
144144 package = json .loads (urllib .request .urlopen (base_url ).read ().decode ("utf-8" ))
145145 except Exception as ex :
146- msg = f'Unable to load "{ base_url } ": { ex } '
147- notify_err (sublime .active_window (), msg , msg )
146+ message = f'Unable to load "{ base_url } ": { ex } '
147+ notify_error (sublime .active_window (), message , message )
148148 return
149149
150150 # There might be a translations file as well.
@@ -156,13 +156,13 @@ def run(self, base_package_name: str) -> None:
156156
157157 contributes = package .get ("contributes" )
158158 if not isinstance (contributes , dict ):
159- msg = 'No "contributes" key found!'
160- notify_err (sublime .active_window (), msg , msg )
159+ message = 'No "contributes" key found!'
160+ notify_error (sublime .active_window (), message , message )
161161 return
162162 configuration = contributes .get ("configuration" )
163163 if not isinstance (configuration , dict ) and not isinstance (configuration , list ):
164- msg = 'No "contributes.configuration" key found!'
165- notify_err (sublime .active_window (), msg , msg )
164+ message = 'No "contributes.configuration" key found!'
165+ notify_error (sublime .active_window (), message , message )
166166 return
167167 if isinstance (configuration , dict ):
168168 properties = configuration .get ("properties" )
@@ -171,8 +171,8 @@ def run(self, base_package_name: str) -> None:
171171 for configuration_item in configuration :
172172 properties .update (configuration_item .get ("properties" ))
173173 if not isinstance (properties , dict ):
174- msg = 'No "contributes.configuration.properties" key found!'
175- notify_err (sublime .active_window (), msg , msg )
174+ message = 'No "contributes.configuration.properties" key found!'
175+ notify_error (sublime .active_window (), message , message )
176176 return
177177
178178 # Process each key-value pair of the server settings.
@@ -312,8 +312,8 @@ def run(self) -> None:
312312 return
313313 view = wm .window .active_view ()
314314 if not view :
315- msg = 'Troubleshooting must be run with a file opened'
316- notify (self .window , msg , msg )
315+ message = 'Troubleshooting must be run with a file opened'
316+ notify (self .window , message , message )
317317 return
318318 active_view = view
319319 configs = wm .get_config_manager ().get_configs ()
@@ -467,9 +467,9 @@ def run(self, edit: sublime.Edit) -> None:
467467 return
468468 listener = wm .listener_for_view (self .view )
469469 if not listener or not any (listener .session_views_async ()):
470- msg = "There is no language server running for this view."
470+ message = "There is no language server running for this view."
471471 status = "No language server for this view"
472- notify_err (wm .window , msg , status )
472+ notify_error (wm .window , message , status )
473473 return
474474 v = wm .window .new_file ()
475475 v .set_scratch (True )
0 commit comments