#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
View File
@@ -28,6 +28,7 @@
- [#247](https://github.com/estruyf/vscode-front-matter/issues/247): Fix the front matter highlighting in markdown documents
- [#261](https://github.com/estruyf/vscode-front-matter/issues/261): Fix to allow that tag and category fields can be renamed
- [#264](https://github.com/estruyf/vscode-front-matter/issues/264): Fix for Windows paths on content folder registration
- [#268](https://github.com/estruyf/vscode-front-matter/issues/268): Fix for panel which only shows loading indicator
## [6.0.0] - 2022-01-25 - [Release Notes](https://beta.frontmatter.codes/updates/v6.0.0)
+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,