Skip to content

Commit

Permalink
# This is a combination of 2 commits.
Browse files Browse the repository at this point in the history
# This is the 1st commit message:

Add release scripts from GitGutter

# The commit message #2 will be skipped:
  • Loading branch information
rchl committed Jun 12, 2020
1 parent 95f8330 commit 029ae7f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
15 changes: 1 addition & 14 deletions plugin/core/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,16 +386,6 @@ def can_start(cls, window: sublime.Window, initiating_view: sublime.View,
"""
return None

@classmethod
def on_workspace_configuration(cls, params: Dict, configuration: Any) -> None:
"""
Override to augment returned configuration for workspace/configuration request.
:param params: A ConfigurationItem for which configuration is requested.
:param configuration: The resolved configuration for given params.
"""
pass

def __init__(self, weaksession: 'weakref.ref[Session]') -> None:
"""
Constructs a new instance.
Expand Down Expand Up @@ -602,10 +592,7 @@ def m_workspace_configuration(self, params: Dict[str, Any], request_id: Any) ->
items = [] # type: List[Any]
requested_items = params.get("items") or []
for requested_item in requested_items:
configuration = self.config.settings.get(requested_item.get('section') or None)
if self._plugin:
self._plugin.on_workspace_configuration(requested_item, configuration)
items.append(configuration)
items.append(self.config.settings.get(requested_item.get('section') or None))
self.send_response(Response(request_id, items))

def m_workspace_applyEdit(self, params: Any, request_id: Any) -> None:
Expand Down
2 changes: 1 addition & 1 deletion release.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def build_release():
print("Release %s created!" % version)


def publish_release(token):
def publish_release(token: str) -> None:
"""Publish the new release."""
version = get_message(os.path.join(PACKAGE_PATH, 'VERSION'))

Expand Down
1 change: 0 additions & 1 deletion unittesting.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"failfast": false,
"reload_package_on_testing": true,
"start_coverage_after_reload": false,
"pattern": "test_code_actions.py",
"show_reload_progress": false,
"output": null,
"generate_html_report": true
Expand Down

0 comments on commit 029ae7f

Please sign in to comment.