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

Support WorkspaceEditMetadata in workspace/applyEdit #1390

Merged
merged 5 commits into from
Jan 17, 2024

Conversation

debonte
Copy link
Contributor

@debonte debonte commented Dec 21, 2023

To fix microsoft/pylance-release#5217 (comment) in Pylance, I'd need the Workspace.applyEdit call in handleApplyWorkspaceEdit to pass { isRefactoring: true } as the second parameter.

Is it reasonable to add WorkspaceEditMetadata to workspace/applyEdit, so isRefactoring can be sent optionally via LSP?

@debonte
Copy link
Contributor Author

debonte commented Jan 11, 2024

@dbaeumer, I'm guessing that you missed this when you got back from vacation.

Copy link
Member

@dbaeumer dbaeumer left a comment

Choose a reason for hiding this comment

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

types/src/main.ts Show resolved Hide resolved
protocol/src/common/protocol.ts Show resolved Hide resolved
@dbaeumer dbaeumer enabled auto-merge (squash) January 17, 2024 17:46
@vscodenpa vscodenpa added this to the December / January 2024 milestone Jan 17, 2024
@dbaeumer dbaeumer merged commit 193b298 into microsoft:main Jan 17, 2024
6 checks passed
@debonte debonte deleted the applyEditMetadata branch January 17, 2024 18:00
@debonte
Copy link
Contributor Author

debonte commented Jan 30, 2024

@dbaeumer, thanks for taking this change. Any guess as to when your next release will be available?

@dbaeumer
Copy link
Member

I want to get the snippet support in as well before having a new release. This however requires the new VS Code release that is due this week. So a new LSP release will not arrive before next week.

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.

Respect files.refactoring.autoSave for move to file
4 participants