adjust API proposal to account for N files being created, moved, and deleted

This commit is contained in:
Johannes Rieken
2019-11-01 16:50:56 +01:00
parent 9f6518c533
commit 36c3e8756c
3 changed files with 14 additions and 16 deletions
@@ -57,7 +57,8 @@ class UpdateImportsOnFileRenameHandler extends Disposable {
) {
super();
this._register(vscode.workspace.onDidExecuteRenameFile(async ({ newUri, oldUri }) => {
this._register(vscode.workspace.onDidExecuteRenameFile(async (e) => {
const [{ newUri, oldUri }] = e.renamed;
const newFilePath = this.client.toPath(newUri);
if (!newFilePath) {
return;