#268 - Fix for panel not showing up after renaming

This commit is contained in:
Elio Struyf
2022-02-24 17:12:42 +01:00
parent 32dc63b62a
commit c1161b95ed
3 changed files with 9 additions and 2 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ export class ExplorerView implements WebviewViewProvider, Disposable {
webviewView.onDidChangeVisibility(() => {
if (this.visible) {
Telemetry.send(TelemetryEvent.openExplorerView);
// this.getFileData();
DataListener.getFileData();
}
});
+7 -1
View File
@@ -48,8 +48,14 @@ export default function useMessages() {
useEffect(() => {
setLoading(true);
// Show what you got after 5 seconds
window.setTimeout(() => {
setLoading(false);
}, 5000);
vscode.postMessage({ command: CommandToCode.getData });
}, ['']);
}, []);
return {
metadata,