Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Python completions in Quarto #6471

Merged
merged 2 commits into from
Feb 25, 2025
Merged

Fix Python completions in Quarto #6471

merged 2 commits into from
Feb 25, 2025

Conversation

seeM
Copy link
Contributor

@seeM seeM commented Feb 25, 2025

Quarto converts ranges to/from the Python language server (source). The problem is that Quarto wasn't converting the vscode.CompletionItem.textEdit property if present, which we started using in #6002.

Quarto may want to also fix on their side to support textEdit. I think the reason they don't is because it's deprecated, but other language servers may use it too.

I've made the fix (#6471) on our side too since it is a deprecated property. Would've avoided using it to begin with, but there unfortunately wasn't any deprecation note in the Python completion type.

Addresses #6444.

Release Notes

New Features

  • N/A

Bug Fixes

@seeM seeM requested a review from petetronic February 25, 2025 15:09
Copy link

github-actions bot commented Feb 25, 2025

E2E Tests 🚀
This PR will run tests tagged with: @:critical

readme  valid tags

Copy link
Collaborator

@petetronic petetronic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed locally that Python code cells in .qmd files now return completions, including the case that the user reported issue noted in #6444

@seeM seeM merged commit d0bb620 into main Feb 25, 2025
30 checks passed
@seeM seeM deleted the bugfix/6444-quarto-completions branch February 25, 2025 16:51
@github-actions github-actions bot locked and limited conversation to collaborators Feb 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants