mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-07-05 17:31:22 +02:00
#268 - Fix for panel not showing up after renaming
This commit is contained in:
@@ -85,7 +85,7 @@ export class ExplorerView implements WebviewViewProvider, Disposable {
|
||||
webviewView.onDidChangeVisibility(() => {
|
||||
if (this.visible) {
|
||||
Telemetry.send(TelemetryEvent.openExplorerView);
|
||||
// this.getFileData();
|
||||
DataListener.getFileData();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user