Repository: vscode
Issue: Outline does not track current position when "follow cursor" is on
Labels: bug,notebook-toc-outline

Type: <b>Bug</b>

No matter that "follow cursor" is switched on, the Outline doesn't track location. 

Here is the proof:
![image](https://github.com/microsoft/vscode/assets/8807043/c6a20104-23f1-4601-99c1-cf442ca94147)


![image](https://github.com/microsoft/vscode/assets/8807043/cab13d86-8139-476f-995c-454c7771b70e)

![image](https://github.com/microsoft/vscode/assets/8807043/aad55228-d3a6-4d1a-854e-e1aa0eef61cb)




VS Code version: Code 1.90.0 (89de5a8d4d6205e5b11647eb6a74844ca23d2573, 2024-06-04T19:43:07.605Z)
OS version: Linux x64 6.4.6-060406-generic
Modes:

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Xeon(R) CPU E5-2696 v4 @ 2.20GHz (88 x 1197)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: disabled_off<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_graphite: disabled_off<br>video_decode: enabled<br>video_encode: disabled_software<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: disabled_off|
|Load (avg)|1, 2, 2|
|Memory (System)|251.76GB (227.01GB free)|
|Process Argv|--crash-reporter-id 27d42247-63fb-4d9e-9cb0-87d9974843dc|
|Screen Reader|no|
|VM|50%|
|DESKTOP_SESSION|ubuntu-xorg|
|XDG_CURRENT_DESKTOP|Unity|
|XDG_SESSION_DESKTOP|ubuntu-xorg|
|XDG_SESSION_TYPE|x11|
</details><details><summary>Extensions (53)</summary>

Extension|Author (truncated)|Version
---|---|---
numbered-bookmarks|ale|8.4.0
project-manager|ale|12.8.0
zoomer|ant|0.3.1
vscode-django|bat|1.15.0
docs-view|bie|0.1.0
path-intellisense|chr|2.9.0
gitignore|cod|0.9.0
git-extension-pack|don|0.1.3
githistory|don|0.6.20
python-environment-manager|don|1.2.4
python-extension-pack|don|1.7.0
gitlens|eam|15.1.0
code-runner|for|0.12.2
vscode-edit-csv|jan|0.9.1
vscode-icon-theme|jtl|1.6.6
vsc-python-indent|Kev|1.18.0
vscode-checkpoints|mic|1.3.3
vscode-docker|ms-|1.29.1
csdevkit|ms-|1.6.8
csharp|ms-|2.31.19
vscode-dotnet-runtime|ms-|2.0.6
vscodeintellicode-csharp|ms-|2.1.11
black-formatter|ms-|2024.2.0
debugpy|ms-|2024.6.0
pylint|ms-|2023.10.1
python|ms-|2024.8.0
vscode-pylance|ms-|2024.6.1
datawrangler|ms-|1.2.0
jupyter|ms-|2024.5.0
jupyter-keymap|ms-|1.1.2
jupyter-renderers|ms-|1.0.18
vscode-jupyter-cell-tags|ms-|0.1.9
vscode-jupyter-slideshow|ms-|0.1.6
remote-containers|ms-|0.369.0
remote-ssh|ms-|0.110.1
remote-ssh-edit|ms-|0.86.0
remote-wsl|ms-|0.88.2
vscode-remote-extensionpack|ms-|0.25.0
remote-explorer|ms-|0.4.3
remote-server|ms-|1.5.1
vs-keybindings|ms-|0.2.1
one-dark-theme|msk|1.14.2
autodocstring|njp|0.6.1
git-file-history|pom|1.0.1
gpack|Sey|2.0.0
markdown-preview-enhanced|shd|0.8.13
intellicode-api-usage-examples|Vis|0.2.8
vscodeintellicode|Vis|1.3.1
vscode-conventional-commits|viv|1.25.0
jinja|who|0.0.8
markdown-all-in-one|yzh|3.6.2
material-theme|zhu|3.17.2
vscode-open-in-github|ziy|1.3.6

(12 theme extensions excluded)

</details><details>
<summary>A/B Experiments</summary>

```
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscoreces:30445986
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
2i9eh265:30646982
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pythonmypyd1:30879173
pythoncet0:30885854
h48ei257:31000450
pythontbext0:30879054
accentitlementst:30995554
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
jchc7451:31067544
chatpanelt:31048053
dsvsc021:30996838
9c06g630:31013171
pythoncenvpt:31062603
a69g1124:31058053
dvdeprecation:31068756
pythonprt:31056678
dwnewjupyter:31046869
26j00206:31048877

```

</details>

<!-- generated by issue reporter -->