Skip to content

Commit

Permalink
Patch v0.5.3
Browse files Browse the repository at this point in the history
Prepare patch v0.5.3
  • Loading branch information
davelopez committed Jul 9, 2021
2 parents 5184522 + 01d1fd6 commit 817ab0c
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 16 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Basic support for `Cheetah` and `reStructuredText` syntax highlighting inside th

![Demo feature auto-generate tests](../assets/feature.generate.tests.gif)

After you define the `<inputs>` and `<outputs>` of the tool, you can press `Ctrl+Alt+t` (or `Cmd+Alt+t` in Mac) to create a `<tests>` section with a basic structure and some test cases. This is especially useful when using conditionals and other nested parameters since you can get right away most of the boilerplate XML.
After you define the `<inputs>` and `<outputs>` of the tool, you can press `Ctrl+Alt+t` (or `Cmd+Alt+t` in Mac) to create a `<tests>` section with a basic structure and some test cases. This is especially useful when using conditionals and other nested parameters since you can get right away most of the boilerplate XML. You can always change the key bindings to your personal preference, see [the documentation](https://code.visualstudio.com/docs/getstarted/keybindings).

## Auto-generate command section

Expand Down
10 changes: 10 additions & 0 deletions client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Galaxy Tools (VS Code Extension) Changelog

## [0.5.3] - 2021-07-09

### Fixed

- The `galaxy_root` setting validation now checks for the existence of `<galaxy_root>/lib/galaxy` instead of relying on how the root directory is named. ([#158](https://github.com/galaxyproject/galaxy-language-server/pull/158)).

### Changed

- Updated Galaxy Language Server [v0.5.3](./server/CHANGELOG.md#053)

## [0.5.2] - 2021-06-08

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ Basic support for `Cheetah` and `reStructuredText` syntax highlighting inside th

![Demo feature auto-generate tests](../assets/feature.generate.tests.gif)

After you define the `<inputs>` and `<outputs>` of the tool, you can press `Ctrl+Alt+t` (or `Cmd+Alt+t` in Mac) to create a `<tests>` section with a basic structure and some test cases. This is especially useful when using conditionals and other nested parameters since you can get right away most of the boilerplate XML.
After you define the `<inputs>` and `<outputs>` of the tool, you can press `Ctrl+Alt+t` (or `Cmd+Alt+t` in Mac) to create a `<tests>` section with a basic structure and some test cases. This is especially useful when using conditionals and other nested parameters since you can get right away most of the boilerplate XML. You can always change the key bindings to your personal preference, see [the documentation](https://code.visualstudio.com/docs/getstarted/keybindings).

## Auto-generate command section

Expand Down
8 changes: 4 additions & 4 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"author": "davelopez",
"publisher": "davelopez",
"license": "Apache-2.0",
"version": "0.5.2",
"version": "0.5.3",
"preview": true,
"repository": {
"type": "git",
Expand Down Expand Up @@ -281,8 +281,8 @@
"webpack-cli": "^4.7.0"
},
"dependencies": {
"iconv-lite": "^0.6.2",
"lookpath": "^1.2.0",
"iconv-lite": "^0.6.3",
"lookpath": "^1.2.1",
"tmp": "^0.2.1",
"vscode-languageclient": "^7.0.0",
"vscode-test-adapter-api": "^1.9.0",
Expand Down
2 changes: 1 addition & 1 deletion client/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export namespace Constants {
export const LS_VENV_NAME = "glsenv";
export const GALAXY_LS_PACKAGE = "galaxy-language-server";
export const GALAXY_LS = "galaxyls";
export const GALAXY_LS_VERSION = "0.5.2"
export const GALAXY_LS_VERSION = "0.5.3"
export const LANGUAGE_ID = "galaxytool"
export const TOOL_DOCUMENT_EXTENSION = "xml"

Expand Down
6 changes: 6 additions & 0 deletions server/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Galaxy Language Server Changelog

## [0.5.3] - 2021-07-09

### Fixed

- An error when generating tests from inputs that contained boolean values different than `true` or `false` like `True` or `False` ([#156](https://github.com/galaxyproject/galaxy-language-server/pull/156)).

## [0.5.2] - 2021-06-08

### Fixed
Expand Down
6 changes: 3 additions & 3 deletions server/galaxyls/services/completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,16 @@ def get_attribute_completion(self, context: XmlContext) -> CompletionList:
CompletionList: The completion item with the basic information
about the attributes.
"""
result = []
if (
context.is_empty
or context.is_content
or context.is_attribute_value
or context.is_closing_tag
or not context.node.name
):
return CompletionList(is_incomplete=False)
return CompletionList(items=result, is_incomplete=False)

result = []
if context.xsd_element:
existing_attr_names = context.node.get_attribute_names()
for attr_name in context.xsd_element.attributes:
Expand Down Expand Up @@ -143,7 +143,7 @@ def get_attribute_value_completion(self, context: XmlContext) -> CompletionList:
macro_names = self.definitions_provider.macro_definitions_provider.get_macro_names(context.xml_document)
result = [CompletionItem(label=item, kind=CompletionItemKind.Value) for item in macro_names]
return CompletionList(items=result, is_incomplete=False)
return CompletionList(is_incomplete=False)
return CompletionList(items=[], is_incomplete=False)

def get_auto_close_tag(self, context: XmlContext, trigger_character: str) -> Optional[AutoCloseTagResult]:
"""Gets the closing result for the currently opened tag in context.
Expand Down
4 changes: 2 additions & 2 deletions server/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pygls==0.10.3
pygls==0.11.1
lxml==4.6.3
anytree==2.8.0
galaxy-tool-util==21.1.1
galaxy-tool-util==21.1.2
pydantic==1.8.2
2 changes: 1 addition & 1 deletion server/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


PACKAGE_NAME = "galaxy-language-server"
VERSION = "0.5.2"
VERSION = "0.5.3"
AUTHOR = "David López"
AUTHOR_EMAIL = "[email protected]"
DESCRIPTION = "A language server for Galaxy (https://galaxyproject.org) tool wrappers"
Expand Down

0 comments on commit 817ab0c

Please sign in to comment.