You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
storeDiffContent,: Cached content remained in memory
- Without accepting/rejecting, in storeDiffContent, the cached before/after content remained in memory for the entire session.
1. Add document close listener in FcoTextDocumentContentProvider:
- Listen for vscode.workspace.onDidCloseTextDocument events
- Filter for fco-diff scheme URIs
- Extract file path from closed URIs and call cleanupFile()
2. Add tab close listener as backup:
- Listen for vscode.window.tabGroups.onDidChangeTabs events
- Detect when FCO diff tabs are closed
- Clean up associated content
3. Update provider registration:
- Register event listeners when provider is created
- Properly dispose listeners when provider is disposed
4. Add helper method:
- extractFilePathFromUri() to reverse-engineer file paths from hash-based URIs
- Handle edge cases where URI-to-file mapping is lost
0 commit comments