KEMBAR78
Should send a single FileWillRenameEvent instead of separate events when moving multiple files at once · Issue #111867 · microsoft/vscode · GitHub
Skip to content

Should send a single FileWillRenameEvent instead of separate events when moving multiple files at once #111867

@testforstephen

Description

@testforstephen

Currently, if I drag and drop multiple files to a new location at once, the VS Code File Event API workspace.onWillRenameFiles will send a separate FileWillRenameEvent for each file to be moved. If i choose to use FileWillRenameEvent.waitUtil() to return the refactored edit, that means each event will return a separate edit and the client will call the applyEdit operation multiple times. This is inconvenient for undo operation.

It's better to send a single FileWillRenameEvent instead of separate events when moving multiple files at once.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions