Skip to content

Commit

Permalink
Update on_workspace_configuration for sublimelsp/LSP#2132 (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
LDAP authored Dec 9, 2022
1 parent 09b0ca0 commit ad3cd2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def handle_no_library(self, params: Any, respond: Callable[[Any], None]) -> None
print('LSP-eslint: Failed resolving eslint library for {}'.format(params['source']['uri']))
respond(None)

def on_workspace_configuration(self, params: Any, configuration: Dict) -> None:
def on_workspace_configuration(self, params: Any, configuration: Dict) -> Dict:
session = self.weaksession()
if session:
scope_uri = params.get('scopeUri')
Expand All @@ -86,6 +86,7 @@ def on_workspace_configuration(self, params: Any, configuration: Dict) -> None:
else:
configuration['validate'] = 'on'
del configuration['probe']
return configuration

def resolve_working_directory(self, configuration: Dict, scope_uri: str,
workspace_folder: Optional[WorkspaceFolder]) -> None:
Expand Down

0 comments on commit ad3cd2f

Please sign in to comment.