mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
Reset markdown scroll progress on resource change (#176437)
Reset scroll progress on resource change Fixes #164071
This commit is contained in:
parent
7b47a33073
commit
83c4e0f5c4
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue