Skip to content

Commit

Permalink
* restart LSP server on preference update
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Clary authored and mrclary committed May 15, 2021
1 parent 63b7d0d commit d921a44
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,8 @@ def on_pythonpath_option_update(self, value):
self.update_lsp_configuration(python_only=True)

@on_conf_change(section='main_interpreter',
option=['default', 'custom_interpreter'])
option=['default', 'custom_interpreter',
'system_pythonpath'])
def on_main_interpreter_change(self, option, value):
if running_under_pytest():
if not os.environ.get('SPY_TEST_USE_INTROSPECTION'):
Expand Down
3 changes: 2 additions & 1 deletion spyder/plugins/maininterpreter/confpage.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ def setup_page(self):
_("Use system PYTHONPATH"),
'system_pythonpath',
msg_info=_("Please note that these changes will "
"be applied only to new consoles"),
"be applied only to new consoles but "
"and immediately to completions"),
tip=_("For standalone applications, use your system PYTHONPATH")
)
pyexec_layout.addWidget(system_pythonpath)
Expand Down
3 changes: 2 additions & 1 deletion spyder/plugins/maininterpreter/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ def setup(self):
def update_actions(self):
pass

@on_conf_change(option=['default', 'custom_interpreter', 'custom'])
@on_conf_change(option=['default', 'custom_interpreter', 'custom',
'system_pythonpath'])
def section_conf_update(self, option, value):
if option in ['default', 'custom_interpreter', 'custom'] and value:
self._update_status()
Expand Down

0 comments on commit d921a44

Please sign in to comment.