Replace event listeners with react-use useEvent; fix bugs with task text truncation, stale effects, and 'visible' extension TypeError

This commit is contained in:
Saoud Rizwan
2024-07-23 06:29:37 -04:00
parent 30b39d6d76
commit 9e5a475a2a
7 changed files with 368 additions and 79 deletions

View File

@@ -44,7 +44,7 @@ export class SidebarProvider implements vscode.WebviewViewProvider {
// Listen for when the panel becomes visible
// https://github.com/microsoft/vscode-discussions/discussions/840
webviewView.onDidChangeVisibility((e: any) => {
if (e.visible) {
if (e && e.visible) {
// Your view is visible
this.postMessageToWebview({ type: "action", action: "didBecomeVisible" })
} else {