Skip to content

Change pythonPath to pythonCommand in the pygls-playground extension#575

Merged
alcarney merged 5 commits into
openlawlibrary:mainfrom
alcarney:uv-ext
Sep 30, 2025
Merged

Change pythonPath to pythonCommand in the pygls-playground extension#575
alcarney merged 5 commits into
openlawlibrary:mainfrom
alcarney:uv-ext

Conversation

@alcarney

Copy link
Copy Markdown
Collaborator

Description

This allows the user to specify an arbitrary command to use when launching the python interpreter. When combined with tools like uv, this makes it trivial to switch between different versions of pygls!

For example

{
  "pygls.server.pythonCommand": ["uv", "run", "--no-project", "--prerelease=allow", "--with", "pygls==2.0a2", "python"]
}

Code review checklist (for code reviewer to complete)

  • Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)
  • Title summarizes what is changing
  • Commit messages are meaningful (see this for details)
  • Tests have been included and/or updated, as appropriate
  • Docstrings have been included and/or updated, as appropriate
  • Standalone docs have been updated accordingly

Automated linters

You can run the lints that are run on CI locally with:

uv run --all-extras poe lint

This allows the user to specify an arbitrary command to use when
launching the python interpreter. When combined with tools like `uv`,
this makes it trivial to switch between different versions of pygls!

For example

```json
{
  "pygls.server.pythonCommand": ["uv", "run", "--no-project", "--prerelease=allow", "--with", "pygls==2.0a2", "python"]
}
```
@alcarney alcarney requested a review from tombh September 30, 2025 19:03
@alcarney

Copy link
Copy Markdown
Collaborator Author

Thanks!

@alcarney alcarney merged commit 225a5e3 into openlawlibrary:main Sep 30, 2025
18 checks passed
@alcarney alcarney deleted the uv-ext branch September 30, 2025 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants