remove file from in-memory cache on tab close
This commit is contained in:
@@ -70,6 +70,11 @@ public class IdeOpenTabsFileManager
|
|||||||
await SaveFileAsync(file);
|
await SaveFileAsync(file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void CloseFile(SharpIdeFile file)
|
||||||
|
{
|
||||||
|
_openFiles.TryRemove(file, out _);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma warning restore VSTHRD011
|
#pragma warning restore VSTHRD011
|
||||||
|
|||||||
@@ -126,6 +126,7 @@ public partial class SharpIdeCodeEdit : CodeEdit
|
|||||||
{
|
{
|
||||||
_currentFile?.FileContentsChangedExternally.Unsubscribe(OnFileChangedExternally);
|
_currentFile?.FileContentsChangedExternally.Unsubscribe(OnFileChangedExternally);
|
||||||
GlobalEvents.Instance.SolutionAltered.Unsubscribe(OnSolutionAltered);
|
GlobalEvents.Instance.SolutionAltered.Unsubscribe(OnSolutionAltered);
|
||||||
|
_openTabsFileManager.CloseFile(_currentFile!);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnBreakpointToggled(long line)
|
private void OnBreakpointToggled(long line)
|
||||||
|
|||||||
Reference in New Issue
Block a user