Skip to content

Commit

Permalink
refresh explorer when workspace folders change (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eskibear authored Jul 26, 2018
1 parent 8152415 commit d2f6e9c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
}
}
});

// workspace folder change listener
vscode.workspace.onDidChangeWorkspaceFolders( (_e: vscode.WorkspaceFoldersChangeEvent) => {
provider.refresh();
});
}

export function deactivate(): void {
Expand Down

0 comments on commit d2f6e9c

Please sign in to comment.