Skip to content

Commit

Permalink
Respect "enabled" key in plugin configuration (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
rchl authored Dec 1, 2020
1 parent 448501a commit 1cba719
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion st3/lsp_utils/_client_handler/abstract_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ def get_default_settings_schema(cls) -> Dict[str, Any]:
return {
'auto_complete_selector': '',
'command': [],
'enabled': True,
'env': {},
'experimental_capabilities': {},
'ignore_server_trigger_chars': False,
Expand All @@ -136,7 +137,6 @@ def get_default_settings_schema(cls) -> Dict[str, Any]:

@classmethod
def on_settings_read_internal(cls, settings: sublime.Settings) -> None:
settings.set('enabled', True)
languages = settings.get('languages', None) # type: Optional[List[LanguagesDict]]
if languages:
settings.set('languages', cls._upgrade_languages_list(languages))
Expand Down
1 change: 1 addition & 0 deletions st3/lsp_utils/_client_handler/language_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ def cleanup(cls) -> None:
def get_default_settings_schema(cls) -> Dict[str, Any]:
return {
'command': [],
'enabled': True,
'env': {},
'experimental_capabilities': {},
'initializationOptions': {},
Expand Down

0 comments on commit 1cba719

Please sign in to comment.