Skip to content

Update to pygls 2.0#498

Draft
Copilot wants to merge 5 commits intomainfrom
copilot/update-build-python-3-13-3-14
Draft

Update to pygls 2.0#498
Copilot wants to merge 5 commits intomainfrom
copilot/update-build-python-3-13-3-14

Conversation

Copy link
Contributor

Copilot AI commented Jan 27, 2026

Upgrades pygls from 1.3.1 to 2.0.1, which includes breaking API changes in import paths and method naming.

Dependencies

  • pygls: 1.3.1 → 2.0.1
  • lsprotocol: 2023.0.1 → 2025.0.0 (transitive dependency)

API Migration

Import path change:

# Before
from pygls import server, uris, workspace

# After  
from pygls import uris, workspace
from pygls.lsp import server

Method renames (7 call sites):

  • publish_diagnostics()text_document_publish_diagnostics()
  • get_document()get_text_document()

Type annotations (9 locations):

  • workspace.Documentworkspace.TextDocument

All changes maintain Python 3.9-3.14 compatibility.

Original prompt

let update the buid to test python 3.13 and 3.14 try to fix #479


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits January 27, 2026 17:37
Co-authored-by: bschnurr <1946977+bschnurr@users.noreply.github.com>
Co-authored-by: bschnurr <1946977+bschnurr@users.noreply.github.com>
Copilot AI changed the title [WIP] Update build to test Python 3.13 and 3.14 Add Python 3.13/3.14 support, fix ast.Str import error on Python 3.14 Jan 27, 2026
Copilot AI requested a review from bschnurr January 27, 2026 17:50
Copilot AI and others added 2 commits January 28, 2026 23:48
Co-authored-by: bschnurr <1946977+bschnurr@users.noreply.github.com>
Co-authored-by: bschnurr <1946977+bschnurr@users.noreply.github.com>
Copilot AI changed the title Add Python 3.13/3.14 support, fix ast.Str import error on Python 3.14 Update to pygls 2.0 Jan 28, 2026
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.

Python 3.14 sort is broken due to import

2 participants