Skip to content

Commit

Permalink
Merge pull request #254 from galaxyproject/prepare_patch_0.12.1
Browse files Browse the repository at this point in the history
Prepare patch 0.12.1
  • Loading branch information
davelopez authored May 18, 2024
2 parents 14d8d61 + 38f69a0 commit c0a0f51
Show file tree
Hide file tree
Showing 19 changed files with 55 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/client-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
os: [ubuntu-latest]
python-version: ["3.8", "3.11"]
runs-on: ${{ matrix.os }}
defaults:
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ This project has the following main goals:
- [Improved macros support](#improved-macros-support)
- [Extract macro](#extract-macro)
- [Full Galaxy tool linter integration](#document-validation)
- [Document Outline](#document-outline) _New feature!_

# Getting Started

Expand Down Expand Up @@ -153,3 +154,9 @@ There are also a lot of features around macros auto-completion. You can now navi
You can select (a complete) XML element and then extract it to a local macro (directly in the tool wrapper) or into an external macro file. If there are several imported macro files, you can choose where to put them or if there is no imported file it will be created and imported directly.

![Demo feature expanded macros](../assets/feature.extract.macro.gif)

## Document Outline

You can now see a document outline of the currently opened tool document. This is especially useful when working with large tool documents. You can navigate to the different sections of the document in a quick and convenient way.

![Demo feature document outline](../assets/feature.document.outline.gif)
11 changes: 11 additions & 0 deletions client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Galaxy Tools (VS Code Extension) Changelog

## [0.12.1] - 2024-05-18

### Added

- Option to skip future server install confirmations ([#252](https://github.com/galaxyproject/galaxy-language-server/pull/252)).

### Changed

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


## [0.12.0] - 2023-10-14

### Added
Expand Down
4 changes: 2 additions & 2 deletions client/package-lock.json

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

2 changes: 1 addition & 1 deletion 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.12.0",
"version": "0.12.1",
"preview": true,
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion client/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,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.12.0";
export const GALAXY_LS_VERSION = "0.12.1";
export const LANGUAGE_ID = "galaxytool";
export const TOOL_DOCUMENT_EXTENSION = "xml";

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

## [0.12.1] - 2024-05-18

### Changed

- Update internal dependencies to support new Galaxy (24.0.2) XSD definitions.


## [0.12.0] - 2023-10-14

### Added
Expand Down
1 change: 1 addition & 0 deletions server/galaxyls/constants.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module contains definitions for constants used by the Galaxy Tools Language Server."""

from lsprotocol.types import (
Position,
Range,
Expand Down
3 changes: 2 additions & 1 deletion server/galaxyls/server.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Galaxy Tools Language Server implementation
"""

from typing import (
List,
Optional,
Expand Down Expand Up @@ -280,7 +281,7 @@ def generate_expanded_command(server: GalaxyToolsLanguageServer, parameters: Com
document = server.workspace.get_document(params.uri)
if document and DocumentValidator.is_tool_document(document):
return server.service.macro_expander.generate_expanded_from(document.path)
return GeneratedExpandedDocument(error_message=f"The document {document.filename} is not a valid Galaxy Tool wrapper.")
return GeneratedExpandedDocument(errorMessage=f"The document {document.filename} is not a valid Galaxy Tool wrapper.")


@language_server.command(Commands.DISCOVER_TESTS_IN_WORKSPACE)
Expand Down
2 changes: 1 addition & 1 deletion server/galaxyls/services/tools/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Optional,
)

from anytree import find
from anytree import find # type: ignore
from lsprotocol.types import (
Position,
Range,
Expand Down
2 changes: 1 addition & 1 deletion server/galaxyls/services/tools/generators/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Union,
)

from anytree import PreOrderIter
from anytree import PreOrderIter # type: ignore
from lsprotocol.types import (
Position,
Range,
Expand Down
2 changes: 1 addition & 1 deletion server/galaxyls/services/tools/generators/snippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def _get_expanded_tool_document(self, tool_document: GalaxyToolXmlDocument) -> G
try:
document = tool_document.document
expanded_tool_tree, _ = xml_macros.load_with_references(document.path)
expanded_tool_tree = cast(etree._ElementTree, expanded_tool_tree)
expanded_tool_tree = cast(etree._ElementTree, expanded_tool_tree) # type: ignore
expanded_source = etree.tostring(expanded_tool_tree, encoding=str)
expanded_document = Document(uri=document.uri, source=expanded_source, version=document.version)
return GalaxyToolXmlDocument(expanded_document)
Expand Down
2 changes: 1 addition & 1 deletion server/galaxyls/services/tools/inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Optional,
)

from anytree import (
from anytree import ( # type: ignore
find,
NodeMixin,
)
Expand Down
2 changes: 1 addition & 1 deletion server/galaxyls/services/xml/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Optional,
)

from anytree.search import findall
from anytree.search import findall # type: ignore
from galaxy.util import xml_macros
from lsprotocol.types import (
Position,
Expand Down
2 changes: 1 addition & 1 deletion server/galaxyls/services/xml/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
Tuple,
)

from anytree import NodeMixin
from anytree import NodeMixin # type: ignore

from galaxyls.services.xml.constants import UNDEFINED_OFFSET
from galaxyls.services.xml.types import NodeType
Expand Down
2 changes: 1 addition & 1 deletion server/galaxyls/services/xsd/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Optional,
)

from anytree import (
from anytree import ( # type: ignore
findall,
NodeMixin,
RenderTree,
Expand Down
2 changes: 1 addition & 1 deletion server/galaxyls/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
GLS_VERSION = "0.12.0"
GLS_VERSION = "0.12.1"
20 changes: 10 additions & 10 deletions server/requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
# But imports the runtime ones too
-r requirements.txt

black==22.12.0
flake8-bugbear==23.2.13
flake8==6.0.0
isort==5.12.0
lxml-stubs==0.4.0
mypy==1.0.1
pytest-cov==4.0.0
pytest-mock==3.10.0
pytest==7.2.1
types-setuptools==67.4.0.1
black==24.4.2
flake8-bugbear==24.4.26
flake8==7.0.0
isort==5.13.2
lxml-stubs==0.5.1
mypy==1.10.0
pytest-cov==5.0.0
pytest-mock==3.14.0
pytest==8.2.0
types-setuptools==69.5.0.20240518
8 changes: 4 additions & 4 deletions server/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pygls==1.1.1
lxml==4.9.3
anytree==2.10.0
galaxy-tool-util==23.0.5
pygls==1.3.1
lxml==5.2.2
anytree==2.12.1
galaxy-tool-util==24.0.2

0 comments on commit c0a0f51

Please sign in to comment.