microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.13k stars 29.27k forks source link

Sticky scroll doesn't work with functions declared with const in Typescript #157323

Closed davidfilat closed 2 years ago

davidfilat commented 2 years ago

Type: Bug

The feature works perfectly with functions declared with the FUNCTION keyword, but if you declare a function by assigning an arrow function to a CONSTant, it will not work.

VS Code version: Code 1.70.0 (da76f93349a72022ca4670c1b84860304616aaa2, 2022-08-04T04:39:20.716Z) OS version: Darwin arm64 21.6.0 Modes:

System Info |Item|Value| |---|---| |CPUs|Apple M1 Pro (10 x 24)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled| |Load (avg)|6, 7, 5| |Memory (System)|32.00GB (1.68GB free)| |Process Argv|--crash-reporter-id 066e3510-c664-47fb-a486-8b2b39bd4900| |Screen Reader|yes| |VM|0%|
Extensions (119) Extension|Author (truncated)|Version ---|---|--- better-comments|aar|3.0.2 html-snippets|abu|0.2.1 Bookmarks|ale|13.3.1 project-manager|ale|12.6.1 vscode-erb-beautify|ali|0.3.5 vscode-color|ans|0.4.5 icons-carbon|ant|0.2.5 vscode-apollo|apo|1.19.11 vscode-zipfs|arc|3.0.0 gitlab-pipeline-monitor|bal|2.0.0 vscode-django|bat|1.10.0 toml|be5|0.6.0 django-html|bib|1.3.0 color-info|bie|0.7.0 vscode-intelephense-client|bme|1.8.2 vscode-tldr|bmu|1.0.0 better-toml|bun|0.3.2 npm-intellisense|chr|1.4.2 path-intellisense|chr|2.8.1 codestream|Cod|13.3.0 gitignore|cod|0.9.0 vscode-mocha|Com|0.1.1 vscode-github-actions|csc|0.24.2 vscode-markdownlint|Dav|0.47.0 vscode-eslint|dba|2.2.6 vscode-dash|dee|2.4.0 githistory|don|0.6.19 xml|Dot|2.5.1 gitlens|eam|12.1.2 vscode-html-css|ecm|1.13.1 EditorConfig|Edi|0.16.4 vscode-npm-script|eg2|0.3.28 vscode-great-icons|emm|2.1.86 vsc-material-theme|Equ|33.5.0 vsc-material-theme-icons|equ|2.3.1 prettier-vscode|esb|9.5.0 git-extensions-for-vs-code|for|1.1.3 code-runner|for|0.11.8 docker-explorer|for|0.1.7 shell-format|fox|7.2.2 vscode-yarn|gam|2.1.0 codespaces|Git|1.10.0 remotehub|Git|0.40.0 vscode-pull-request-github|Git|0.48.0 go|gol|0.35.1 vscode-graphql|Gra|0.7.1 vscode-graphql-syntax|Gra|1.0.4 todo-tree|Gru|0.0.215 haskell|has|2.2.0 haskell-linter|hoo|0.0.6 output-colorizer|IBM|0.1.2 search-node-modules|jas|1.3.0 commitji-vs|jma|1.1.0 language-haskell|jus|3.6.0 intellij-idea-keybindings|k--|1.5.2 vscode-ksdiff|kal|1.0.1 theme-karyfoundation-themes|kar|27.2.3 vscode-gutter-preview|kis|0.30.0 node-module-intellisense|lei|1.5.0 git-graph|mhu|1.30.0 fluent-icons|mig|0.0.18 dotenv|mik|1.0.1 file-downloader|min|1.0.12 HTMLHint|mka|0.10.0 theme-monokai-pro-vscode|mon|1.1.20 vscode-scss|mrm|0.10.0 python|ms-|2022.13.12161008 vscode-pylance|ms-|2022.8.10 jupyter|ms-|2022.7.1002181843 jupyter-keymap|ms-|1.0.0 jupyter-renderers|ms-|1.0.9 remote-containers|ms-|0.241.3 remote-ssh|ms-|0.84.0 remote-ssh-edit|ms-|0.80.0 github-issues-prs|ms-|0.9.3 live-server|ms-|0.2.13 makefile-tools|ms-|0.5.0 remote-repositories|ms-|0.18.0 test-adapter-converter|ms-|0.1.6 color-highlight|nau|2.5.0 autodocstring|njp|0.6.1 indent-rainbow|ode|8.3.1 docthis|oou|0.8.2 vscode-versionlens|pfl|1.0.10 vscode-gitignore-generator|pio|1.0.3 material-icon-theme|PKi|4.19.0 material-product-icons|PKi|1.3.0 vscode-css-peek|pra|4.2.0 java|red|1.9.0 vscode-yaml|red|1.9.1 shebang-snippets|rpi|0.1.4 rust|rus|0.7.8 vue-vscode-extensionpack|sdr|0.2.0 music-time|sof|2.2.39 swdc-vscode|sof|2.6.33 autoimport|ste|1.5.4 tabnine-vscode|Tab|3.6.9 ayu|tea|1.0.5 teamhub|Tea|15.0.11 vscode-readme-pattern|tho|1.3.0 vscode-status-bar-format-toggle|tom|3.1.1 hosts|tom|1.2.0 highlight-matching-tag|vin|0.10.1 vscodeintellicode|Vis|1.2.22 vscode-icons|vsc|11.14.0 nodejs-extension-pack|wad|0.1.9 vscode-wakatime|Wak|18.1.6 dingo-vscode|Wal|1.0.11 vscode-todo-highlight|way|1.0.5 vscode-ruby|win|0.28.0 fig|wit|0.0.6 vscode-import-cost|wix|3.3.0 change-case|wma|1.0.0 JavaScriptSnippets|xab|1.8.0 plsql-language|xyz|1.8.2 markdown-all-in-one|yzh|3.4.3 material-theme|zhu|3.15.2 html-css-class-completion|Zig|1.20.0 vitest-explorer|Zix|0.2.20 (17 theme extensions excluded)
davidfilat commented 2 years ago
CleanShot 2022-08-05 at 23 14 07@2x CleanShot 2022-08-05 at 23 14 08@2x
IllusionMH commented 2 years ago

/duplicate of #157308

vscodenpa commented 2 years ago

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.

Happy Coding!