mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-20 10:19:02 +00:00
Reset markdown scroll progress on resource change (#176437)
Reset scroll progress on resource change Fixes #164071
This commit is contained in:
@@ -28,6 +28,10 @@ const state = {
|
||||
...getData<any>('data-state')
|
||||
};
|
||||
|
||||
if (originalState.resource !== state.resource) {
|
||||
state.scrollProgress = undefined;
|
||||
}
|
||||
|
||||
// Make sure to sync VS Code state here
|
||||
vscode.setState(state);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user